Use C11-like atomics instead of plain memory accesses in x86 lock elision.
[platform/upstream/glibc.git] / ChangeLog
1 2016-12-05  Torvald Riegel  <triegel@redhat.com>
2
3         * include/atomic.h (__atomic_check_size_ls): New.
4         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
5         atomic_store_release): Use it.
6         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
7         (elision_adapt, ELIDE_LOCK): Use atomics.
8         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
9         atomics and improve code comments.
10         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
11         (__lll_trylock_elision): Likewise.
12
13 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14
15         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
16         programs.
17
18 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
19
20         [BZ #20916]
21         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
22         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
23         arguments to compute result.
24         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
25         1 for arguments (sNaN, 0) or (1, sNaN).
26         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
27         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
28
29         [BZ #20919]
30         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
31         NaN first argument when raised to power 0.
32         * math/w_pow.c (__pow): Do not check for NaN or zero results from
33         raising to power zero.
34         * math/w_powf.c (__powf): Likewise.
35         * math/w_powl.c (__powl): Likewise.
36         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
37         pow (0, 0) or pow (NaN, 0).
38
39 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
40
41         [BZ #20918]
42         * configure.ac: Test for static NSS cryptographic libraries and set
43         libc_cv_static_nss_crypt.
44         * configure: Regenerate.
45         * config.make.in (static-nss-crypt): Define.
46         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
47         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
48         (CFLAGS-tst-linkall-static.c): Define.
49         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
50         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
51         ($(objpfx)tst-linkall-static): Define.
52         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
53         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
54
55 2016-12-02  Florian Weimer  <fweimer@redhat.com>
56
57         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
58         (one-hundred, tst-tls-many-dynamic-modules): Define.
59         (modules-names): Add $(tst-tls-many-dynamic-modules).
60         (tst-tls-manydynamic%mod.os): Build with special preprocessor
61         macros.
62         (tst-tls-manydynamic): Link against libdl, libpthread.
63         (tst-tls-manydynamic.out): The test needs the test modules at run
64         time.
65         * elf/tst-tls-manydynamic.c: New file.
66         * elf/tst-tls-manydynamic.h: Likewise.
67         * elf/tst-tls-manydynamicmod.c: Likewise.
68
69 2016-12-02  Florian Weimer  <fweimer@redhat.com>
70
71         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
72         (TLS_DTV_UNALLOCATED): Add.
73         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
74         offsets.
75
76 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
77
78         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
79
80 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
81
82         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
83         Add -fno-optimize-sibling-calls.
84
85 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
86
87         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
88         New declaration.
89         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
90         macro.
91         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
92         New macro.
93         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
94         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
95         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
96         (llogbf): Likewise.
97         (llogbl): Likewise.
98         * math/Makefile (gen-libm-calls): Add w_llogbF.
99         (tests): Add test-fp-llogb-constants.
100         * math/w_llogb_template.c: New file.  Based on
101         math/w_ilogb_template.c.
102         * math/libm-test.inc (llogb_test_data): New array.
103         (llogb_test): New function.
104         (main): Call llogb_test.
105         * math/test-fp-llogb-constants.c: New file.  Based on
106         math/test-fp-ilogb-constants.c.
107         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
108         (do_test): Call check_return_llogb.
109         * math/test-tgmath.c (NCALLS): Increase to 126.
110         (F(compile_test)): Call llogb.
111         (F(llogb)): New function.
112         * manual/math.texi (Exponents and Logarithms): Document llogb,
113         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
114         * manual/libm-err-tab.pl (@all_functions): Add llogb.
115         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
116         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
117         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
118         (CFLAGS-nldbl-llogb.c): New variable.
119         * sysdeps/nacl/libm.abilist: Update.
120         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
121         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
122         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
123         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
124         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
125         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
126         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
127         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
128         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
129         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
130         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
131         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
133         Likewise.
134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
135         Likewise.
136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
137         Likewise.
138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
139         Likewise.
140         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
141         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
142         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
143         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
144         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
145         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
146         Likewise.
147         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
148         Likewise.
149         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
150         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
151         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
152
153 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
154
155         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
156         _Float128 instead of long double.
157         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
158
159         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
160         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
161         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
162         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
163         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
164         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
165         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
166         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
167         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
168         Likewise.
169
170 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
171
172         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
173         Remove redirection to __strrchr_ppc.
174
175 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
176
177         * sysdeps/powerpc/powerpc64/multiarch/Makefile
178         (sysdep_routines): Add strcmp_power9.
179         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
180         (strcmp): Add __strcmp_power9 to list of strcmp functions.
181         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
182         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
183         (strcmp): Add __strcmp_power9 to ifunc list.
184         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
185
186 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
187
188         * bits/fp-logb.h: New file.
189         * sysdeps/ia64/bits/fp-logb.h: Likewise.
190         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
191         * sysdeps/x86/bits/fp-logb.h: Likewise.
192         * math/Makefile (headers): Add bits/fp-logb.h.
193         * math/math.h: Include <bits/fp-logb.h>.
194         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
195         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
196         * bits/mathdef.h (FP_ILOGB0): Remove.
197         (FP_ILOGBNAN): Likewise.
198         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
199         (FP_ILOGBNAN): Likewise.
200         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
201         (FP_ILOGBNAN): Likewise.
202         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
203         (FP_ILOGBNAN): Likewise.
204         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
205         (FP_ILOGBNAN): Likewise.
206         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
207         (FP_ILOGBNAN): Likewise.
208         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
209         (FP_ILOGBNAN): Likewise.
210         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
211         (FP_ILOGBNAN): Likewise.
212         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
213         (FP_ILOGBNAN): Likewise.
214         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
215         (FP_ILOGBNAN): Likewise.
216
217         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
218         time module.
219         (Context.__init__): Initialize self.logsdir_old.
220         (Context.run_builds): Handle bot action.
221         (Context.bot_cycle): Copy logs directory before running builds.
222         (Context.bot_run_self): Take argument for whether to check
223         subprocess result.  Flush stdout before running subprocess.
224         (Context.bot): New function.
225         (get_parser): Allow bot action.
226
227 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
228
229         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
230         Import email.mime.text, email.utils and smtplib modules.
231         (Context.__init__): Initialize self.bot_config_json.
232         (Context.run_builds): Handle bot-cycle action.
233         (Context.load_bot_config_json): New function.
234         (Context.part_build_old): Likewise.
235         (Context.bot_cycle): Likewise.
236         (Context.bot_build_mail): Likewise.
237         (Context.bot_run_self): Likewise.
238         (get_parser): Allow bot-cycle action.
239
240 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
241
242         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
243         Remove redirection to __stpcpy_ppc.
244
245 2016-11-30  Florian Weimer  <fweimer@redhat.com>
246
247         Remove __libc_memalign from ld.so because it is unused.
248         * elf/dl-minimal.c: Update comment on the malloc implementation.
249         (malloc): Renamed from __libc_memalign, replacing the original
250         malloc implementation.  Replace the align parameter with
251         MALLOC_ALIGNMENT.
252         * elf/Versions (ld): Update comment and remove __libc_memalign.
253         * sysdeps/nacl/ld.abilist: Likewise.
254         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
255         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
256         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
257         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
258         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
259         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
260         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
261         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
262         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
263         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
264         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
265         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
266         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
270         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
271         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
272         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
273         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
274         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
275         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
277         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
278         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
279         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
280         * sysdeps/generic/localplt.data (ld.so): Likewise.
281         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
282         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
283         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
284         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
285         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
286         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
287         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
288         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
289         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
291         (ld.so): Likewise.
292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
293         (ld.so): Likewise.
294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
295         Likewise.
296         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
297         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
298         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
299         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
300         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
301
302 2016-11-30  Florian Weimer  <fweimer@redhat.com>
303
304         [BZ #16628]
305         Implement _dl_catch_error, _dl_signal_error in libc.so.
306         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
307         (catch_hook): Define as thread-local or regular variable,
308         depending on DL_ERROR_BOOTSTRAP.
309         (CATCH_HOOK): Remove.
310         (dl_signal_error, _dl_catch_error): Use
311         catch_hook.  Add hidden definition for libc.
312         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
313         for DL_ERROR_BOOTSTRAP only.
314         * elf/dl-error.c: New file.
315         * elf/dl-error-minimal.c: Likewise.
316         * elf/tst-latepthread.c: Likewise.
317         * elf/tst-latepthreadmod.c: Likewise.
318         * elf/Makefile (routines): Add dl-error.
319         (dl-routines): Remove dl-error.
320         (rtld-routines): Add dl-error-minimal.
321         [build-shared] (tests): Add tst-latepthread.
322         (module-names): Add tst-latepthreadmod.
323         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
324         symbol.
325         (tst-latepthreadmod.so): Link against libpthread.
326         (tst-latepthread): Link against libdbl.
327         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
328         _dl_catch_error.
329         [ld] (GLIBC_PRIVATE): Likewise.
330         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
331         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
332         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
333         directly.
334         * elf/dl-tsd.c: Remove file.
335         * elf/rtld.c (_rtld_global_ro): Remove initializers for
336         _dl_catch_error, _dl_signal_error.
337         (_dl_initial_error_catch_tsd): Remove definition.
338         (do_preload): Remove initialization of dl_error_catch_tsd.
339         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
340         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
341         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
342         * dlfcn/dlopen.c (dlopen_doit): Likewise.
343         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
344         set dl_error_catch_tsd.
345         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
346         _dl_error_catch_tsd member.
347         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
348         members.
349         (_dl_initial_error_catch_tsd): Remove declaration.
350         (_dl_dprintf): Provide definition for use outside of ld.so.
351         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
352         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
353         prototype for libc.
354         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
355         _dl_catch_error.
356         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
357         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
358         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
359         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
360         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
361         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
362         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
363         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
364         Likewise.
365         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
367         (ld.so): Likewise.
368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
369         (ld.so): Likewise.
370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
371         Likewise.
372         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
373         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
374         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
375         Likewise.
376         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
377         Likewise.
378         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
379
380 2016-11-30  Florian Weimer  <fweimer@redhat.com>
381
382         [BZ #4099]
383         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
384         _IO_BUFSIZ (8192).
385
386 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
387
388         * PROJECTS: Remove file.
389
390 2016-11-29  Florian Weimer  <fweimer@redhat.com>
391
392         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
393
394 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
395             Steve Ellcey  <sellcey@caviumnetworks.com>
396
397         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
398         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
399         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
400         fxstatat.
401         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
402         lxstat.
403         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
404         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
405         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
406         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
407         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
408         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
409         __xstat.
410
411 2016-11-29  Florian Weimer  <fweimer@redhat.com>
412
413         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
414         Define.
415         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
416         definition.
417
418 2016-11-29  Florian Weimer  <fweimer@redhat.com>
419
420         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
421         version and turn into strong alias.  Remove compat symbol.
422
423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
424         (__longjmp): Remove.
425
426 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
427
428         * bits/fp-fast.h: New file.
429         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
430         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
431         * math/Makefile (headers): Add bits/fp-fast.h.
432         * math/math.h: Include <bits/fp-fast.h>.
433         * bits/mathdef.h (FP_FAST_FMA): Remove.
434         (FP_FAST_FMAF): Likewise.
435         (FP_FAST_FMAL): Likewise.
436         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
437         (FP_FAST_FMAF): Likewise.
438         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
439         (FP_FAST_FMAF): Likewise.
440         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
441         (FP_FAST_FMAF): Likewise.
442         (FP_FAST_FMAL): Likewise.
443         * sysdeps/arm/bits/mathdef.h: Remove file.
444         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
445         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
446         * sysdeps/tile/bits/mathdef.h: Likewise.
447
448 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
449
450         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
451         * math/w_ilogb.c: Remove.
452         * math/w_ilogbf.c: Likewise.
453         * math/w_ilogbl.c: Likewise.
454         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
455         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
456         * math/Makefile (gen-libm-calls): Add w_ilogbF.
457         (libm-calls): Remove w_ilogbF.
458         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
459         (LDOUBLE_ilogbl_libm_version): New macro.
460
461         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
462
463         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
464         [!__STRICT_ANSI__ && !__cplusplus].
465
466 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
467
468         [BZ #20750]
469         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
470         of PIC.
471
472 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
473             Yury Norov  <ynorov@caviumnetworks.com>
474             Steve Ellcey  <sellcey@caviumnetworks.com>
475
476         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
477         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
478         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
479         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
480         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
481         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
482         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
483         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
484         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
485         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
486         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
487         to get correct reg name for ILP32.
488         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
489         (RELA_SIZE): New Macro.
490         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
491         to support ILP32.
492         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
493         cast for ILP32 mode.
494         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
495         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
496         * sysdeps/aarch64/memset.S (__memset): Ditto.
497         * sysdeps/aarch64/strchr.S (strchr): Ditto.
498         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
499         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
500         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
501         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
502         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
503         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
504         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
505         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
506         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
507         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
508         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
509         change PTR_MANGLE call to use register numbers instead of names.
510         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
511         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
512         ILP32 mode, change PTR_MANGLE calls to use register numbers.
513         * sysdeps/aarch64/start.S (_start): Ditto.
514         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
515         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
516         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
517         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
518         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
519         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
520         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
521         Make defined values dependent on __ILP32__.
522         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
523         (sem_t): Change __align type.
524         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
525         PTR_SIZE): New Macros.
526         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
527         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
528         Set when in ILP32 mode.
529         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
530         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
531         Set elf flags for ILP32.
532         (add_system_dir): Set ILP32 library directories.
533         * sysdeps/unix/sysv/linux/aarch64/init-first.c
534         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
535         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
536         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
537         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
538         New Macros.
539         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
540
541 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
542
543         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
544         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
545         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
546
547 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
548
549         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
550         <asm/cachectl.h>.
551
552 2016-11-27  Zack Weinberg  <zackw@panix.com>
553
554         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
555         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
556
557 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
558
559         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
560         error_t to fix usage in C++ programs.
561
562 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
563
564         * scripts/build-many-glibcs.py: Import datetime module.
565         (Context.__init__): Load JSON build state.  Initialize list of
566         status logs.
567         (Context.run_builds): Update saved build state.
568         (Context.add_makefile_cmdlist): Update list of status logs.
569         (Context.load_build_state_json): New function.
570         (Context.store_build_state_json): Likewise.
571         (Context.clear_last_build_state): Likewise.
572         (Context.update_build_state): Likewise.
573         (CommandList.status_logs): Likewise.
574
575 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
576
577         * scripts/build-many-glibcs.py (Context.__init__): Save text of
578         script being executed.
579         (Context.get_script_text): New function.
580         (Context.exec_self): Likewise.
581         (Context.checkout): Re-exec script if changed by checkout process.
582
583 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
584
585         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
586         (setpayloadsig): New declaration.
587         * math/Versions (setpayloadsig): New libm symbol at version
588         GLIBC_2.25.
589         (setpayloadsigf): Likewise.
590         (setpayloadsigl): Likewise.
591         * math/Makefile (libm-calls): Add s_setpayloadsigF.
592         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
593         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
594         (setpayloadsig_test_data): New array.
595         (setpayloadsig_test): New function.
596         (main): Call setpayloadsig_test.
597         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
598         setpayloadsigf and setpayloadsigl.
599         * manual/libm-err-tab.pl: Update comment on interfaces without
600         ulps tabulated.
601         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
602         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
603         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
604         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
605         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
606         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
607         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
608         setpayloadsig.
609         (CFLAGS-nldbl-setpayloadsig.c): New variable.
610         * sysdeps/nacl/libm.abilist: Update.
611         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
612         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
613         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
614         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
615         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
616         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
617         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
618         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
619         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
620         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
621         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
622         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
624         Likewise.
625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
626         Likewise.
627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
628         Likewise.
629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
630         Likewise.
631         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
632         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
633         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
634         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
635         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
636         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
637         Likewise.
638         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
639         Likewise.
640         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
641         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
642         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
643
644         * scripts/build-many-glibcs.py: Import json module.
645         (Context.__init__): Take replace_sources argument.  Load
646         versions.json.
647         (Context.load_versions_json): New function.
648         (Context.store_json): Likewise.
649         (Context.store_versions_json): Likewise.
650         (Context.set_component_version): Likewise.
651         (Context.checkout): Update versions.json.  Check for and handle
652         changes of version.  Prefer previously explicitly specified
653         version to default version.
654         (Context.checkout_vcs): Return a revision identifier.
655         (Context.git_checkout): Likewise.
656         (Context.gcc_checkout): Likewise.
657         (get_parser): Add --replace-sources option.
658         (main): Pass replace_sources argument to Context call.
659
660 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
661
662         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
663         * nptl/allocatestack.c (allocate_stack): Likewise.
664         (__reclaim_stacks): Likewise.
665         (setxid_signal_thread): Obtain pid through syscall.
666         * nptl/nptl-init.c (sigcancel_handler): Likewise.
667         (sighandle_setxid): Likewise.
668         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
669         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
670         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
671         Likewise.
672         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
673         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
674         comment.
675         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
676         * nptl/descr.h (struct pthread): Change comment about pid value.
677         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
678         pid assert.
679         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
680         Do not set pid value.
681         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
682         pid cache check.
683         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
684         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
685         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
686         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
687         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
688         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
689         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
690         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
691         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
692         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
693         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
694         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
695         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
696         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
697         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
698         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
699         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
700         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
701         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
702         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
703         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
704         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
705         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
706         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
707         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
710         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
711         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
712         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
713         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
714         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
715         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
716         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
717         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
718         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
719         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
720         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
721         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
722         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
723         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
724         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
725         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
728         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
729         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
730         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
731         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
732         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
733         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
734         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
735         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
736         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
737         struct access.
738         (clone_test): Remove function.
739         (do_test): Rewrite to take in consideration pid is not cached anymore.
740
741 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
742
743         * bits/flt-eval-method.h: New file.
744         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
745         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
746         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
747         * math/Makefile (headers): Add bits/flt-eval-method.h.
748         * math/math.h: Include <bits/flt-eval-method.h>.
749         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
750         [__USE_ISOC99] (double_t): Likewise.
751         * bits/mathdef.h (float_t): Remove.
752         (double_t): Likewise.
753         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
754         (double_t): Likewise.
755         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
756         (double_t): Likewise.
757         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
758         (double_t): Likewise.
759         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
760         (double_t): Likewise.
761         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
762         (double_t): Likewise.
763         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
764         (double_t): Likewise.
765         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
766         (double_t): Likewise.
767         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
768         (double_t): Likewise.
769         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
770         (double_t): Likewise.
771         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
772         (double_t): Likewise.
773         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
774         (double_t): Likewise.
775         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
776         (double_t): Likewise.
777         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
778         (double_t): Likewise.
779
780 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
781
782         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
783         instead of PIC.
784
785 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
786
787         [BZ #20859]
788         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
789         (-0x7fffffff) instead of 0x80000001.
790         * math/test-fp-ilogb-constants.c: New file.
791         * math/Makefile (tests): Add test-fp-ilogb-constants.
792
793 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
794
795         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
796         (_init): Use it in place of hardcoded R_MIPS_JALR.
797         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
798         (_init): Use it in place of hardcoded R_MIPS_JALR.
799         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
800         (_init): Use it in place of hardcoded R_MIPS_JALR.
801
802 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
803
804         [BZ #20787]
805         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
806         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
807         (double_t): Do not define to double if [__x86_64__] when
808         __FLT_EVAL_METHOD__ is nonzero.
809         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
810         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
811         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
812         test-flt-eval-method-387 and test-flt-eval-method-sse.
813         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
814         variable.
815         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
816
817 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
818
819         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
820         use of -fno-isolate-erroneous-paths options for tilepro.
821
822 2016-11-23  Florian Weimer  <fweimer@redhat.com>
823
824         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
825         structure initialization is no longer needed.
826
827 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
828
829         [BZ #20855]
830         * bits/mathdef.h (float_t): Define to float.
831         * math/test-flt-eval-method.c: New file.
832         * math/Makefile (tests): Add test-flt-eval-method.
833         (CFLAGS-test-flt-eval-method.c): New variable.
834
835 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
836
837         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
838         and __fstatfs.  Make them aliases of __fstatfs64 if
839         STATFS_IS_STATFS64 is set to non-zero.
840         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
841         and __statfs64.
842         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
843         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
844         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
845         for __statfs and statfs.
846         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
847         to 0.
848         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
849         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
850         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
851         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
852         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
853         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
856         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
857         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
858         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
859         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
860
861 2016-11-22  Andreas Schwab  <schwab@suse.de>
862
863         * misc/mkstemp.c: Include <fcntl.h>.
864         * misc/mkstemps.c: Likewise.
865         * misc/mkostemp.c: Likewise.
866         * misc/mkostemps.c: Likewise.
867
868 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
869
870         [BZ #20847]
871         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
872         array bounds.
873         (__execvpe): Likewise.
874
875 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
876
877         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
878         -fno-isolate-erroneous-paths options for tilepro.
879
880 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
881
882         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
883         to 0 when in 32 bit mode.
884         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
885         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
886         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
887         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
889         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
890         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
891         XSTAT_IS_XSTAT64 test.
892         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
893         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
894         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
895         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
896         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
897         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
898         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
899         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
900         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
901         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
902         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
903
904 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
905
906         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
907         (setpayload): New declaration.
908         * math/Versions (setpayload): New libm symbol at version
909         GLIBC_2.25.
910         (setpayloadf): Likewise.
911         (setpayloadl): Likewise.
912         * math/Makefile (libm-calls): Add s_setpayloadF.
913         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
914         test_Ff_b1_data.
915         (RUN_TEST_Ff_b1): New macro.
916         (RUN_TEST_LOOP_Ff_b1): Likewise.
917         (canonicalize_test_data): Update type.
918         (setpayload_test_data): New array.
919         (setpayload_test): New function.
920         (main): Call setpayload_test.
921         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
922         setpayloadf and setpayloadl.
923         * manual/libm-err-tab.pl: Update comment on interfaces without
924         ulps tabulated.
925         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
926         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
927         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
928         Likewise.
929         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
930         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
931         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
932         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
933         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
934         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
935         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
936         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
937         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
938         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
939         setpayload.
940         (CFLAGS-nldbl-setpayload.c): New variable.
941         * sysdeps/nacl/libm.abilist: Update.
942         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
943         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
944         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
945         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
946         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
947         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
948         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
949         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
950         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
951         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
952         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
953         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
955         Likewise.
956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
957         Likewise.
958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
959         Likewise.
960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
961         Likewise.
962         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
963         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
964         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
965         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
966         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
967         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
968         Likewise.
969         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
970         Likewise.
971         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
972         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
973         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
974
975 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
976
977         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
978         * include/unistd.h: Extend comment about __access_noerrno return
979         semantics.
980         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
981         (access_common): Correct typo for EACCES.
982
983 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
984
985         * sysdeps/tile/math-tests.h: New file.
986
987         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
988         (__old_set_dataplane): Rename from set_dataplane and make a
989         compatibility symbol.
990         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
991         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
992         sys/dataplane.h.
993
994 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
995
996         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
997         script quote words in command output to log suitably for input to
998         the shell.
999
1000 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
1001             Maciej W. Rozycki  <macro@imgtec.com>
1002
1003         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
1004         `.Lno_weak_fn' label.
1005         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
1006         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
1007
1008 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1009             Yury Norov  <ynorov@caviumnetworks.com>
1010
1011         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
1012         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
1013         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1014         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
1015         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1016         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
1017         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1018         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1019         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1020         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
1021         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1022         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
1023         (sysdep_routines): Remove oldgetrlimit64.
1024         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
1025         (sysdep_routines): Likewise.
1026         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
1027         (sysdep_routines): Likewise.
1028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1029         [$(subdir) = resource] (sysdep_routines): Likewise.
1030         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1031         [$(subdir) = resource] (sysdep_routines): Likewise.
1032         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
1033         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
1034         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
1035         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
1036         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
1037         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
1038         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
1039         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
1040         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
1041         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
1042         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
1043         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
1044         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
1045         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
1046         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
1047         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
1048         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
1049         setrlimit and getrlimit.
1050         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1051         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
1052         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
1053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1055         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
1056         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1057         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1058         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1059         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
1060         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
1061         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
1062         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
1063         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
1064         (__old_getrlimit64): Add compatibility symbol.
1065         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
1066
1067 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
1068
1069         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
1070         newly built gmp, mpfr and mpc.
1071
1072         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
1073
1074 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1075
1076         * conform/Makefile (linknamespace-libs): Rename to
1077         linknamespace-libs-thr.
1078         (linknamespace-libs-posix): New variable.
1079         (linknamespace-libs-xsi): Likewise.
1080         (linknamespace-libs-XPG3): Include libcrypt.a.
1081         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
1082         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
1083         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
1084         (linknamespace-libs-XOPEN2K): Likewise.
1085         (linknamespace-libs-XOPEN2K8): Likewise.
1086         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
1087
1088         [BZ #20829]
1089         * stdio-common/Versions (__snprintf): Add to version
1090         GLIBC_PRIVATE.
1091         * include/stdio.h (__snprintf): Use libc_hidden_proto.
1092         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
1093         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
1094         of snprintf.
1095         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
1096
1097 2016-11-16  Zack Weinberg  <zackw@panix.com>
1098
1099         * string/string.h: Remove obsolete comment stating that
1100         strcoll_l and strxfrm_l have not yet been standardized.
1101
1102 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1103
1104         * hurd/hurd.h (__hurd_fail_noerrno): New function.
1105         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
1106         __access_noerrno.
1107         * io/access.c (__access_noerrno): New function.
1108         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
1109         (hurd_fail_seterrno): Likewise.
1110         (access_common): Likewise.
1111         (__access_noerrno): Likewise.
1112         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
1113         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
1114         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
1115         macro.
1116
1117 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1118
1119         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
1120         Only declare fpregs if [__SH_FPU_ANY__].
1121
1122 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
1123
1124         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
1125         Make code unconditional.
1126         [!(__SH4__ || __SH4A__)]: Remove conditional code.
1127
1128 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
1129
1130         * manual/sysinfo.texi (S_APPEND): Delete.
1131         (S_IMMUTABLE): Likewise.
1132
1133 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
1134             Magnus Granberg  <zorry@gentoo.org>
1135             Mike Frysinger  <vapier@gentoo.org>
1136
1137         [BZ #20662]
1138         * configure.ac (libc_cv_predef_stack_protector): Also check for
1139         __stack_chk_fail_local symbols.
1140         * configure: Regenerated.
1141
1142 2016-11-15  Florian Weimer  <fweimer@redhat.com>
1143
1144         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1145         (libc_hidden_def): Remove redefinition.
1146         (__sigsetjmp): Add hidden definition.
1147         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1148         (libc_hidden_def): Remove redefinition.
1149         (__sigsetjmp): Add hidden definition.
1150
1151 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
1152
1153         * scripts/build-many-glibcs.py (os.path): Do not import.
1154         (Context): Inherit explicitly from object.  Remove blank line
1155         between class and docstring.
1156         (Config): Likewise.
1157         (Glibc): Likewise.
1158         (Command): Likewise.
1159         (CommandList): Likewise.
1160         (Context.write_files): Store chmod mode in a variable.
1161
1162         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
1163         LIBC_SLIBDIR_RTLDDIR for tilegx32.
1164         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
1165
1166 2016-11-14  Zack Weinberg  <zackw@panix.com>
1167
1168         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
1169         creating or re-creating it.
1170
1171         * string/bits/string2.h: Fix typo in comment.
1172
1173 2016-11-14  Zack Weinberg  <zackw@panix.com>
1174
1175         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
1176         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
1177         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
1178         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
1179         of redirected function names.
1180
1181         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
1182         as well.  Document that MESSAGE must be a single string literal.
1183
1184 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
1185
1186         * scripts/build-many-glibcs.py: New file.
1187
1188         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
1189         (do_test): Disable -Wmaybe-uninitialized around uses of
1190         except_mask.
1191
1192         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
1193
1194 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
1195
1196         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
1197         (atomic_store_release): Provide tilepro-specific implementations.
1198
1199 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
1200
1201         * math/math.h (__MATH_TG): New macro.
1202         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
1203         [__USE_ISOC99] (signbit): Likewise.
1204         [__USE_ISOC99] (isfinite): Likewise.
1205         [__USE_ISOC99] (isnan): Likewise.
1206         [__USE_ISOC99] (isinf): Likewise.
1207         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
1208         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
1209         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
1210         __MATH_TG and __MATH_EVAL_FMT2.
1211         * sysdeps/generic/math_private.h (fabs_tg): Define using
1212         __MATH_TG.
1213         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
1214         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
1215         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
1216         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
1217         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
1218         macro.
1219         (__iscanonical): Likewise.
1220         (iscanonical): Define using __MATH_TG.
1221
1222 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1223
1224         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
1225         guards.
1226
1227         * sysdeps/unix/sysv/linux/access.c: New file.
1228         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
1229
1230 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
1231
1232         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
1233         and __WORDSIZE32_PTRDIFF_LONG.
1234
1235 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1236
1237         * sysdeps/aarch64/libm-test-ulps: Regenerated.
1238
1239 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1240
1241         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
1242         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
1243         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
1244         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
1245         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
1246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
1247         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
1248         * sysdeps/unix/sysv/linux/truncate.c: New file.
1249         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
1250         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1251         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
1252         Remove.
1253         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
1254         Likewise.
1255
1256         * posix/tst-truncate-common.c: New file.
1257         * posix/tst-truncate.c: Use tst-truncate-common.c.
1258         * posix/tst-truncate64.c: Likewise and add LFS tests.
1259         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
1260         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
1261         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
1262         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
1263         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
1264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
1265         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
1266         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
1267         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
1268         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1269         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
1270         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
1271         Remove.
1272         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
1273         Likewise.
1274
1275 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
1276
1277         [BZ #20790]
1278         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
1279         to MAXLINESIZE.
1280         * sunrpc/bug20790.x: New file.
1281         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
1282         variable.
1283         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
1284         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
1285
1286         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
1287
1288         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
1289
1290         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
1291         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
1292         calloc, realloc, free, memalign and __libc_memalign rather than
1293         making them optional.
1294
1295         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
1296         for libc.so.
1297
1298 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1299
1300         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
1301         ptw-lseek64.
1302         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
1303         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
1304         Likewise.
1305         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
1306         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
1307         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
1308         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
1309         * sysdeps/unix/sysv/linux/lseek.c: New file.
1310         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
1311         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
1312         __libc_lseek64 from auto-generation.
1313         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1314         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
1315
1316 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1317
1318         * nptl/tst-basic1.c (tf, do_test): Use write_message.
1319         * nptl/tst-cleanup1.c (do_test): Likewise.
1320         * nptl/tst-cleanup3.c (do_test): Likewise.
1321         * nptl/tst-key1.c (do_test): Likewise.
1322         * nptl/tst-key2.c (tf, do_test): Likewise.
1323         * nptl/tst-key3.c (tf, do_test): Likewise.
1324         * nptl/tst-stdio1.c (do_test): Likewise.
1325         * nptl/tst-stdio2.c (do_test): Likewise.
1326
1327         * nptl/tst-kill3.c (handler): Use write_message in place of write.
1328         * nptl/tst-kill6.c (handler): Likewise.
1329         * nptl/tst-tls2.c (CB): Likewise.
1330         * nptl/tst-tls3.c (CB): Likewise.
1331
1332 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
1333
1334         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
1335
1336 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
1337             Steve Ellcey  <sellcey@caviumnetworks.com>
1338
1339         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
1340           __ASSUME_ST_INO_64_BIT as 0
1341         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
1342         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
1343           over the code where __ASSUME_ST_INO_64_BIT is used.
1344         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1345         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1346         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1347
1348 2016-11-07  Florian Weimer  <fweimer@redhat.com>
1349
1350         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1351         Document ABI exposure of the __kind offset.
1352         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1353         Mention reason for the __kind offset exposure in the ABI.
1354         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1355         Likewise.
1356         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1357         Likewise.
1358         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1359         Likewise.
1360         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
1361         (struct __pthread_mutex_s): Likewise.
1362         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1363         Likewise.
1364         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1365         Likewise.
1366         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1367         Likewise.
1368         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1369         Likewise.
1370         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1371         Likewise.
1372         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1373         Likewise.
1374         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
1375         (struct __pthread_mutex_s): Likewise.
1376         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
1377         (struct __pthread_mutex_s): Likewise.
1378         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
1379         Likewise.
1380
1381 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
1382
1383         * test-skeleton.c: Document do_test usage.
1384
1385 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
1386
1387         * iconv/gconv.h (__gconv_info): Define __data element using a
1388         zero-length array.
1389
1390 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
1391
1392         * math/test-tgmath2.c: Split up test function.
1393
1394 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1395
1396         * Rules (tests-expected): New variable, depending on
1397         $(run-built-tests).
1398         (tests): Pass $(tests-expected) to merge-test-results.sh, not
1399         $(tests).
1400
1401         * Rules [$(run-built-tests) = no] (tests): Do not depend on
1402         $(tests-unsupported).
1403
1404 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1405
1406         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
1407         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
1408
1409 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1410
1411         [BZ #20768]
1412         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
1413         __fegetenv instead of fegetenv.
1414
1415         [BZ #14139]
1416         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
1417         (find_files): Obtain platform name from libm-test-ulps-name and
1418         store in %pplatforms.
1419         (canonicalize_platform): Remove.
1420         (print_platforms): Use $pplatforms directly.
1421         (by_platforms): Do not allow for platforms missing from
1422         %pplatforms.
1423         * sysdeps/aarch64/libm-test-ulps-name: New file.
1424         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
1425         * sysdeps/arm/libm-test-ulps-name: Likewise.
1426         * sysdeps/generic/libm-test-ulps-name: Likewise.
1427         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
1428         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
1429         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
1430         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
1431         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
1432         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
1433         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
1434         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
1435         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
1436         * sysdeps/nios2/libm-test-ulps-name: Likewise.
1437         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
1438         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
1439         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
1440         * sysdeps/sh/libm-test-ulps-name: Likewise.
1441         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
1442         * sysdeps/tile/libm-test-ulps-name: Likewise.
1443         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
1444
1445         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
1446
1447         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
1448         (test-xfail-check-execstack): New variable.
1449
1450         * sysdeps/mips/localplt.data: New file.
1451
1452 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
1453             Steve Ellcey  <sellcey@caviumnetworks.com>
1454
1455         * bits/wordsize.h: Add documentation.
1456         * sysdeps/aarch64/bits/wordsize.h : New file
1457         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
1458         definitions.
1459         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
1460         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
1461         with #if instead of #ifdef.
1462         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
1463         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
1464         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
1465         Add or change defines.
1466         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
1467         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1468         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
1469         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
1470         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1471         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1472         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
1473         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
1474         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
1475         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1476         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
1477         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
1478         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
1479         * sysdeps/x86/bits/wordsize.h: Likewise.
1480
1481 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
1482             Kevin Petit  <kevin.petit@arm.com>
1483
1484         * sysdeps/aarch64/memchr.S (__memchr): New file.
1485
1486 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1487
1488         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
1489
1490 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
1491
1492         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
1493         $(linknamespace-symlists-tests).
1494
1495 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
1496
1497         * time/tst-strptime2.c: Ignore -Wformat-length warning.
1498
1499 2016-11-02  Florian Weimer  <fweimer@redhat.com>
1500             Carlos O'Donell  <carlos@redhat.com>
1501
1502         [Bug #20729]
1503         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
1504         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
1505         for -Os related change.
1506
1507 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
1508
1509         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
1510
1511 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
1512
1513         [BZ #19673]
1514         * manual/math.texi (Exponents and Logarithms): Correct description
1515         of clog10.
1516
1517 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
1518
1519         [Bz #20729]
1520         * locale/weight.h: Include libc-internal.h.
1521         * locale/weightwc.h: Likewise.
1522         * nptl/nptl_dbP.h: Likewise.
1523
1524 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
1525
1526         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
1527         when it is MACH_PORT_NULL.
1528
1529 2016-10-31  Andreas Schwab  <schwab@suse.de>
1530
1531         [BZ #20707]
1532         * posix/glob.c (glob): Initialize pglob before checking for
1533         GLOB_BRACE.  Don't call glob recursively if pattern contains no
1534         valid brace expression despite GLOB_BRACE.
1535         * posix/globtest.sh: Test it.
1536
1537 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1538
1539         [BZ #20729]
1540         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
1541         Define.
1542         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
1543         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
1544         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
1545         for seq2.back_us and seq1.back_us only for -Os compiles.
1546         * locale/weightwc.h (findix): Likewise.
1547         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
1548         DB_GET_FIELD_ADDRESS only for -Os compiles.
1549         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
1550         for slen only for -Os compiles.
1551         * string/strcoll_l.c (get_next_seq): Ignore
1552         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
1553         for -Os compiles.
1554
1555         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
1556         * include/crypt.h: New file.
1557
1558 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1559
1560         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
1561         from test-skeleton.c.
1562         (statclass): Replace calls to write with calls to write_message.
1563
1564 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
1565
1566         * math/math.h
1567         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
1568         New macro.
1569         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
1570         Likewise.
1571         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
1572         Likewise.
1573         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
1574         SNANL.
1575         * math/test-double.h (snan_value_MACRO): New macro.
1576         * math/test-float.h (snan_value_MACRO): Likewise.
1577         * math/test-ldouble.h (snan_value_MACRO): Likewise.
1578         * math/libm-test.inc (issignaling_test_data): Add tests of
1579         snan_value_MACRO.
1580
1581 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1582
1583         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
1584         behavior when eliding a lock not held by the current thread.
1585         * sysdeps/powerpc/nptl/elide.h: Likewise.
1586
1587 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1588
1589         [BZ #20728]
1590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
1591         branch to _exit() by a function call.
1592
1593 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1594
1595         * malloc/malloc.c: Update chunk layout comments.
1596         (chunk_main_arena): Update comment.
1597
1598 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1599
1600         * crypt/sha256.c, crypt/sha256-block.c,
1601         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
1602         sha256_process_block to __sha256_process_block.
1603         * crypt/sha512.c, crypt/sha512-block.c,
1604         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
1605         sha512_process_block to __sha512_process_block.
1606
1607 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1608
1609         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
1610
1611         * math/test-nan-overflow.c: Include stdlib.h for malloc.
1612
1613 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
1614
1615         [BZ #20019]
1616         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
1617         definition in unrelocated shared library.
1618         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1619
1620 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1621
1622         [BZ #20729]
1623         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
1624         * sysdeps/unix/sysv/linux/i386/Makefile
1625         (uses-6-syscall-arguments): Define.
1626         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
1627         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
1628         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
1629         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
1630         Likewise.
1631         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
1632         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
1633         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
1634         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
1635         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
1636         (CFLAGS-fallocate64.os): Likewise.
1637         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
1638         (CFLAGS-pthread_rwlock_timedrdlock.os)
1639         (CFLAGS-pthread_rwlock_timedwrlock.o)
1640         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
1641         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
1642         (CFLAGS-sem_timedwait.os): Likewise.
1643
1644 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1645
1646         * elf/tst-linkall-static.c: New file.
1647         * elf/Makefile (tests-static): Add tst-linkall-static.
1648         (tst-linkall-static): Link against static libraries.
1649
1650 2016-10-27  Florian Weimer  <fweimer@redhat.com>
1651
1652         * malloc/malloc.c (sysmalloc): Initialize previous size field of
1653         mmaped chunks.
1654
1655 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1656
1657         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
1658         members to mchunk_prev_size, mchunk_size.
1659         (chunk_main_arena): Reverse sense and rename from
1660         chunk_non_main_arena.
1661         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
1662         mchunk_size instead of size.
1663         (set_non_main_arena): Define.
1664         (chunksize): Use chunksize_nomask instead of direct member access.
1665         (chunksize_nomask): Define.
1666         (next_chunk): Use chunksize instead of direct member access.
1667         (prev_size, set_prev_size): Define.
1668         (prev_chunk): Use prev_size instead of direct member access.
1669         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
1670         (inuse_bit_at_offset, set_inuse_bit_at_offset)
1671         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
1672         (mchunk_prev_size, mchunk_size): Poison tokens.
1673         (unlink): Use chunksize_nomask, prev_size accessors.
1674         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
1675         (do_check_free_chunk): Use prev_size accessor.
1676         (sysmalloc): Use set_prev_size, set_head accessors.
1677         (munmap_chunk, mremap_chunk): Use prev_size accessor.
1678         (__libc_free): Use chunksize_nomask accessor.
1679         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
1680         chunk_main_arena accessors.
1681         (_int_free): Use chunksize_nomask, prev_size accessors.
1682         (malloc_consolidate): Use chunksize, prev_size accessors.
1683         (_int_realloc): Use chunksize_nomask accessor.
1684         (_int_memalign): Use set_prev_size accessor.
1685         (__malloc_info): Use chunksize_nomask accessor.
1686         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
1687         accessors.
1688         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
1689         (heap_trim): Use chunksize_nomask, prev_size accessors.
1690
1691 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
1692
1693         [BZ #19380]
1694         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
1695         for inexact results.
1696         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
1697         of inexact result where mpfr_subnormalize is the only inexact
1698         step.
1699         * stdlib/tst-strtod-round-data.h: Regenerated.
1700         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
1701         Define to 0.
1702         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
1703
1704 2016-10-27  David S. Miller  <davem@davemloft.net>
1705
1706         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
1707
1708 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1709
1710         * malloc/malloc.c (do_set_mallopt_check): New function.
1711         (do_set_mmap_threshold): Likewise.
1712         (do_set_mmaps_max): Likewise.
1713         (do_set_top_pad): Likewise.
1714         (do_set_perturb_byte): Likewise.
1715         (do_set_trim_threshold): Likewise.
1716         (do_set_arena_max): Likewise.
1717         (do_set_arena_test): Likewise.
1718         (__libc_mallopt): Use them.
1719
1720 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
1721
1722         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1723         (canonicalize): New declaration.
1724         * math/Versions (canonicalize): New libm symbol at version
1725         GLIBC_2.25.
1726         (canonicalizef): Likewise.
1727         (canonicalizel): Likewise.
1728         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
1729         * math/s_canonicalize_template.c: New file.
1730         * math/libm-test.inc: Update comment on functions tested and
1731         testing of NaN payloads.
1732         (TEST_NAN_PAYLOAD): New macro.
1733         (NO_TEST_INLINE): Update value.
1734         (XFAIL_TEST): Likewise.
1735         (ERRNO_UNCHANGED): Likewise.
1736         (ERRNO_EDOM): Likewise.
1737         (ERRNO_ERANGE): Likewise.
1738         (IGNORE_RESULT): Likewise.
1739         (NON_FINITE): Likewise.
1740         (TEST_SNAN): Likewise.
1741         (NO_TEST_MATHVEC): Likewise.
1742         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
1743         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
1744         (struct test_Ffp_b1_data): New type.
1745         (RUN_TEST_Ffp_b1): New macro.
1746         (RUN_TEST_LOOP_Ffp_b1): Likewise.
1747         (canonicalize_test_data): New array.
1748         (canonicalize_test): New function.
1749         (main): Call canonicalize_test.
1750         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
1751         canonicalizef and canonicalizel.
1752         * manual/libm-err-tab.pl: Update comment on interfaces without
1753         ulps tabulated.
1754         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
1755         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
1756         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1757         canonicalize.
1758         (CFLAGS-nldbl-canonicalize.c): New variable.
1759         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
1760         to ...
1761         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
1762         ... here.
1763         (do_test): Also test canonicalizel.
1764         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
1765         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
1766         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
1767         file.
1768         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
1769         Use libm_hidden_def.
1770         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
1771         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
1772         (do_test): Also test canonicalizel.
1773         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
1774         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
1775         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
1776         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
1777         libm_hidden_def.
1778         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
1779         macro.
1780         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
1781         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
1782         * sysdeps/nacl/libm.abilist: Update.
1783         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1784         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1785         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1786         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1787         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1788         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1789         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1790         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1791         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1792         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1793         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1794         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1796         Likewise.
1797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1798         Likewise.
1799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1800         Likewise.
1801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1802         Likewise.
1803         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1804         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1805         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1806         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1807         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1808         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1809         Likewise.
1810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1811         Likewise.
1812         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1813         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1814         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1815
1816         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
1817         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1818         getpayload.
1819         (CFLAGS-nldbl-getpayload.c): New variable.
1820
1821 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1822
1823         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
1824         integer from the format string.
1825
1826 2016-10-26  Florian Weimer  <fweimer@redhat.com>
1827
1828         [BZ #19473]
1829         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
1830         declarations.
1831         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
1832         weak aliases.
1833         * malloc/hooks.c (__malloc_get_state): Remove definition.
1834         (malloc_get_state): New stub implementation as
1835         compatibility symbol.
1836         (malloc_set_state): Rename from __malloc_set_state.  Turn into
1837         compat symbol.
1838         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
1839         malloc_set_state.
1840         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
1841
1842 2016-10-26  Florian Weimer  <fweimer@redhat.com>
1843
1844         * iconvdata/iso646.c (enum variant): Drop illegal_var.
1845         (names): Turn into concatenation of strings.
1846         (gconv_init): Adapt iteration over names.
1847
1848 2016-10-26  Florian Weimer  <fweimer@redhat.com>
1849
1850         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
1851         make const.
1852         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
1853         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
1854         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
1855         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
1856         character in sbconv.
1857         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
1858         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
1859         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
1860
1861 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1862
1863         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
1864
1865         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
1866         (M_TRIM_THRESHOLD): Likewise.
1867
1868         * manual/memory.texi (M_ARENA_TEST): Add documentation.
1869         (M_ARENA_MAX): Likewise.
1870         * malloc/malloc.c: Remove obsolete comment.
1871
1872         * manual/memory.texi: Add environment variable alternatives to
1873         setting mallopt parameters.
1874
1875 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
1876
1877         * include/atomic.h
1878         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
1879         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
1880
1881 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1882
1883         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
1884         * stdlib/tst-strfrom.h: New file.
1885         * stdlib/tst-strfrom.c: New file.
1886         * stdlib/tst-strfrom-locale.c: New file.
1887
1888         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
1889         * stdlib/bug-strtod2.c: Likewise.
1890         * stdlib/tst-strtod-round-skeleton.c: Likewise.
1891         * stdlib/tst-strtod6.c: Likewise.
1892         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
1893
1894 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1895
1896         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
1897         * manual/arith.texi: Document strfromd, strfromf, strfroml.
1898         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
1899         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
1900         * stdlib/stdlib.h (strfromd): New declaration.
1901         (strfromf): Likewise.
1902         (strfroml): Likewise.
1903         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
1904         strfrom.
1905         * stdlib/strfromd.c: New file.
1906         * stdlib/strfromf.c: Likewise.
1907         * stdlib/strfroml.c: Likewise.
1908         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
1909         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
1910         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
1911         * sysdeps/arm/nacl/libc.abilist: Update.
1912         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
1913         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1914         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1915         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1916         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1917         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1918         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1919         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1920         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1921         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1922         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1923         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1924         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1925         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
1927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1930         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1931         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1932         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1933         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1934         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1935         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1936         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1937         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1938         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1939         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1940
1941 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
1942
1943         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
1944         instead of cmpli.
1945         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
1946         instead of cmpli.
1947
1948 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
1949
1950         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
1951         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1952         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
1953         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1954         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1955         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1956
1957 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1958
1959         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
1960         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
1961         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
1962         SYSCALL_LL64_PRW.
1963         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
1964         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
1965         __ASSUME_PRW_DUMMY_ARG.
1966         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
1967         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
1968         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
1969         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
1970         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
1971         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
1972
1973 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
1974
1975         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
1976
1977 2016-10-22  Florian Weimer  <fweimer@redhat.com>
1978
1979         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
1980         "C++", to override a potential extern "C" directive around the
1981         header file inclusion.
1982
1983 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
1984
1985         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
1986
1987 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1988
1989         * sysdeps/powerpc/fpu/fenv_private.h:
1990         (_FPU_MASK_ALL): Rename to...
1991         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
1992         XE FPSCR bits.
1993
1994         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
1995
1996         (_FPU_MASK_ROUNDING): Rename to...
1997         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
1998         NI bits.
1999
2000         (_FPU_MASK_EXCEPT_ROUND): Rename to...
2001         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
2002         bits and rounding bits.
2003
2004         (__libc_feholdbits_ppc): New inline function to mask, set,
2005         and pontentially clear FSPCR bits, and change MSR[FE] bits.
2006         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
2007         (libc_feholdexcept_setround_ppc): Likewise.
2008
2009         (__libc_femergeenv_ppc): New function to dynamically mask both
2010         old and new FP environments and merge.
2011         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
2012         (libc_feresetround_ppc): Likewise.
2013         (libc_feupdateenv_test_ppc): Likewise.
2014         (libc_feupdateenv_ppc): Likewise.
2015
2016         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
2017         of ISA RN bits, and update macro names.
2018         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
2019         effectively the same as the previously mentioned function.
2020
2021         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
2022         usage with fe_resetround_ppc.
2023
2024         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
2025         to be used.
2026         (libc_feholdexcept_setround_ctxf): Likewise.
2027         (libc_feholdexcept_setround_ctxl): Likewise.
2028
2029 2016-10-21  Florian Weimer  <fweimer@redhat.com>
2030
2031         [BZ #20715]
2032         * math/math.h [__cplusplus] (iszero): Define as function template.
2033         * math/Makefile [CXX] (tests): Add test-math-iszero.
2034         (CFLAGS-test-math-iszero.cc): Set.
2035         * math/test-math-iszero.cc: New file.
2036
2037 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
2038
2039         [BZ #20660]
2040         * sysdeps/arm/e_sqrt.c: New file.
2041         * sysdeps/arm/e_sqrtf.c: Likewise.
2042
2043 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
2044
2045         [BZ #20718]
2046         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
2047         not use floating-point comparisons to test sign.
2048         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
2049         Likewise.
2050
2051         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2052         (getpayload): New declaration.
2053         * math/Versions (getpayload): New libm symbol at version
2054         GLIBC_2.25.
2055         (getpayloadf): Likewise.
2056         (getpayloadl): Likewise.
2057         * math/Makefile (libm-calls): Add s_getpayloadF.
2058         * math/libm-test.inc: Include <nan-high-order-bit.h>.
2059         (struct test_f_f_data): Add comment.
2060         (RUN_TEST_fp_f): New macro.
2061         (RUN_TEST_LOOP_fp_f): Likewise.
2062         (getpayload_test_data): New array.
2063         (getpayload_test): New function.
2064         (main): Call getpayload_test.
2065         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
2066         descriptor.
2067         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
2068         getpayloadf and getpayloadl.
2069         * manual/libm-err-tab.pl: Update comment on interfaces without
2070         ulps tabulated.
2071         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
2072         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
2073         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
2074         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
2075         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
2076         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
2077         * sysdeps/nacl/libm.abilist: Update.
2078         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2079         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2080         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2081         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2082         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2083         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2084         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2085         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2086         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2087         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2088         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2089         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2091         Likewise.
2092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2093         Likewise.
2094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2095         Likewise.
2096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2097         Likewise.
2098         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2099         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2100         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2101         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2102         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2103         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2104         Likewise.
2105         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2106         Likewise.
2107         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2108         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2109         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2110
2111 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2112
2113         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
2114         tst-fallocate{64}.
2115         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
2116         on syscall return.
2117
2118 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
2119
2120         [BZ #20689]
2121         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
2122         usable.
2123
2124 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
2125
2126         * sysdeps/generic/nan-high-order-bit.h: New file.
2127         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
2128         * sysdeps/mips/nan-high-order-bit.h: Likewise.
2129         * sysdeps/hppa/math_private.h: Remove file.
2130         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
2131         not define here.
2132         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
2133         <nan-high-order-bit.h>.
2134         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2135         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
2136         <nan-high-order-bit.h>.
2137         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2138         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
2139         <nan-high-order-bit.h>.
2140         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2141         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
2142         <nan-high-order-bit.h>.
2143         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2144         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
2145         <nan-high-order-bit.h>.
2146         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2147         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
2148         <nan-high-order-bit.h>.
2149         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2150         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
2151         <nan-high-order-bit.h>.
2152         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2153         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
2154         <nan-high-order-bit.h>.
2155         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2156         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
2157         <nan-high-order-bit.h>.
2158         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2159         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
2160         <nan-high-order-bit.h>.
2161         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2162         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2163         <nan-high-order-bit.h>.
2164         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2165         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2166         <nan-high-order-bit.h>.
2167         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2168         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
2169         <nan-high-order-bit.h>.
2170         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2171         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
2172         <nan-high-order-bit.h>.
2173         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2174         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
2175         <nan-high-order-bit.h>.
2176         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2177         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
2178         <nan-high-order-bit.h>.
2179         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2180         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2181         <nan-high-order-bit.h>.
2182         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2183         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2184         <nan-high-order-bit.h>.
2185         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2186
2187 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2188
2189         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
2190
2191 2016-09-22  John David Anglin  <dave.anglin@bell.net>
2192
2193         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
2194         abort-instr.h.
2195         (EFAULT): Remove conditional define.
2196         (ENOSYS): Likewise.
2197         (atomic_compare_and_exchange_val_acq): Use instruction nullification
2198         instead of conditional branch instructions.
2199
2200 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
2201
2202         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2203         (totalordermag): New declaration.
2204         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
2205         New macro.
2206         * math/Versions (totalordermag): New libm symbol at version
2207         GLIBC_2.25.
2208         (totalordermagf): Likewise.
2209         (totalordermagl): Likewise.
2210         * math/Makefile (libm-calls): Add s_totalordermagF.
2211         * math/libm-test.inc (totalordermag_test_data): New array.
2212         (totalordermag_test): New function.
2213         (main): Call totalordermag_test.
2214         * math/test-tgmath.c (NCALLS): Increase to 125.
2215         (F(compile_test)): Call totalordermag.
2216         (F(totalordermag)): New function.
2217         * manual/arith.texi (FP Comparison Functions): Document
2218         totalordermag, totalordermagf and totalordermagl.
2219         * manual/libm-err-tab.pl: Update comment on interfaces without
2220         ulps tabulated.
2221         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
2222         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
2223         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
2224         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
2225         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
2226         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
2227         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
2228         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2229         totalordermag.
2230         (CFLAGS-nldbl-totalordermag.c): New variable.
2231         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
2232         (do_test): Also test totalordermagl.
2233         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
2234         Likewise.
2235         * sysdeps/nacl/libm.abilist: Update.
2236         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2237         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2238         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2239         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2240         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2241         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2242         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2243         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2244         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2245         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2246         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2247         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2249         Likewise.
2250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2251         Likewise.
2252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2253         Likewise.
2254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2255         Likewise.
2256         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2257         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2258         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2259         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2260         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2261         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2262         Likewise.
2263         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2264         Likewise.
2265         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2266         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2267         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2268
2269 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
2270
2271         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
2272         boolean.
2273
2274 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
2275
2276         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
2277         raising FE_INVALID with feraisexcept in case where part of
2278         argument is infinite, subtract that part of argument from itself.
2279         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
2280         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
2281         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2282
2283 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2284
2285         * math/libm-test.inc (totalorder_test_data): Add more tests.
2286
2287 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
2288
2289         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
2290         Undefine weak_alias and add a comment why mips64 require
2291         versioning.
2292
2293 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2294
2295         [BZ #20647]
2296         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
2297         maximum CPUID level is less than 2.
2298
2299 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2300
2301         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2302         (totalorder): New declaration.
2303         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
2304         New macro.
2305         * math/Versions (totalorder): New libm symbol at version
2306         GLIBC_2.25.
2307         (totalorderf): Likewise.
2308         (totalorderl): Likewise.
2309         * math/Makefile (libm-calls): Add s_totalorderF.
2310         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
2311         string.
2312         * math/libm-test.inc (PAYLOAD_DIG): New macro.
2313         (qnan_value_pl): Likewise.
2314         (snan_value_pl): Likewise.
2315         (qnan_value): Define using qnan_value_pl.
2316         (snan_value): Define using snan_value_pl.
2317         (struct test_ff_i_data): Add comment about which tests use this
2318         structure.
2319         (RUN_TEST_ff_b): New macro.
2320         (RUN_TEST_LOOP_ff_b): Likewise.
2321         (totalorder_test_data): New array.
2322         (totalorder_test): New function.
2323         (main): Call totalorder_test.
2324         * math/test-tgmath.c (NCALLS): Increase to 122.
2325         (F(compile_test)): Call totalorder.
2326         (F(totalorder)): New function.
2327         * manual/arith.texi (FP Comparison Functions): Document
2328         totalorder, totalorderf and totalorderl.
2329         * manual/libm-err-tab.pl: Update comment on interfaces without
2330         ulps tabulated.
2331         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
2332         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
2333         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
2334         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
2335         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
2336         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
2337         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
2338         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2339         totalorder.
2340         (CFLAGS-nldbl-totalorder.c): New variable.
2341         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
2342         file.
2343         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
2344         Add test-totalorderl-ldbl-128ibm.
2345         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
2346         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
2347         test-totalorderl-ldbl-96.
2348         * sysdeps/nacl/libm.abilist: Update.
2349         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2350         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2351         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2352         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2353         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2354         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2355         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2356         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2357         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2358         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2359         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2360         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2362         Likewise.
2363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2364         Likewise.
2365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2366         Likewise.
2367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2368         Likewise.
2369         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2370         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2371         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2372         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2373         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2374         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2375         Likewise.
2376         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2377         Likewise.
2378         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2379         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2380         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2381
2382 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2383
2384         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
2385         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
2386         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
2387         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
2388         remove ENOSYS implementation.
2389         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
2390         Consolidate all Linux implementations.
2391
2392 2016-10-11  Florian Weimer  <fweimer@redhat.com>
2393
2394         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
2395         * resolv/herror.c (herror): Cast away const-ness.
2396         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
2397         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
2398
2399 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
2400
2401         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
2402         instead of M_NAN + M_NAN.
2403         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2404
2405 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2406
2407         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
2408         unused variable 'p'.
2409
2410 2016-10-09  Alan Modra  <amodra@gmail.com>
2411             Andreas Schwab  <schwab@linux-m68k.org>
2412
2413         [BZ #20554]
2414         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
2415         [PIC && !SHARED]: Set up PIC register for PLT call.
2416
2417 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
2418
2419         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
2420         conditional on value of [__FLT_EVAL_METHOD__].
2421         * math/test-iseqsig-excess-precision.c: New file.
2422         * math/Makefile (tests): Add test-iseqsig-excess-precision.
2423
2424 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2425
2426         * math/s_iseqsig_template.c: Include math-private.h.
2427
2428         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
2429         * posix/tst-posix_fadvise.c: New file.
2430         * posix/tst-posix_fadvise64.c: Likewise.
2431         * posix/tst-posix_fadvise-common.c: Likewise.
2432         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2433         (__ASSUME_FADVISE64_64_6ARG): Define.
2434         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2435         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
2436         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2437         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
2438         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
2439         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
2440         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
2441         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
2442         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
2443         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
2444         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
2445         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
2446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
2447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
2448         Likewise.
2449         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
2450         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
2451         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
2452         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2453         Alias to __posix_fadvise64_l32.
2454         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
2455         Add compat definition to posix_fadvise64.
2456         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2457         Add versioned definition to posix_fadvise64.
2458         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
2459         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
2460         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
2461         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
2462         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
2463
2464         * io/Makefile (tests): Add tst-posix_fallocate and
2465         tst-posix_fallocate64.
2466         * io/tst-posix_fallocate-common.c: New file.
2467         * io/tst-posix_fallocate.c: Likewise.
2468         * io/tst-posix_fallocate64.c: Likewise.
2469         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
2470         file.
2471         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
2472         Likewise.
2473         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
2474         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
2475         Likewise.
2476         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
2477         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
2478         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
2479         SYSCALL_LL to pass both offset and len arguments.
2480         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
2481         Likewise.
2482         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
2483         __libc_pwrite64 alias used by posix_fallocate64.
2484
2485         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2486         tst-fallocate64.
2487         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2488         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2489         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2490         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2491         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2492         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2493         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2494         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2495         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2496         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2497         macro on offset argument.
2498         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2499         SYSCALL_LL64 on offset argument.
2500
2501         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2502         tst-fallocate64.
2503         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2504         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2505         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2506         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2507         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2508         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2509         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2510         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2511         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2512         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2513         macro on offset argument.
2514         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2515         SYSCALL_LL64 on offset argument.
2516         * test-skeleton.c (FAIL_RET): Add macro.
2517         (FAIL_EXIT): Likewise.
2518         (FAIL_EXIT1): Likewise.
2519         (_FAIL): Likewise.
2520
2521 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2522
2523         [BZ #20629]
2524         resolv: Remove RES_USEBSTRING and its implementation.
2525         * resolv/resolv.h (RES_USEBSTRING): Remove.
2526         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
2527         (digitvalue, encode_bitstring, decode_bitstring): Remove.
2528         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
2529         (labellen): Remove extended label types support.
2530         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
2531         * resolv/res_init.c (res_setoptions): Likewise.
2532         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2533
2534 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2535
2536         resolv: Remove RES_NOIP6DOTINT and its implementation.
2537         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
2538         (RES_NOIP6DOTINT): Remove.
2539         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
2540         handling.
2541         * resolv/res_debug.c (p_option): Likewise.
2542         * resolv/res_init.c (res_setoptions): Likewise.
2543         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2544
2545 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2546
2547         resolv: Deprecate unimplemented flags.
2548         * misc/sys/cdefs.h (__glibc_macro_warning1)
2549         (__glibc_macro_warning): Define.
2550         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
2551         (RES_KEEPTSIG): Mark as deprecated.
2552         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
2553         RES_NOCHECKNAME, RES_KEEPTSIG.
2554         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
2555
2556 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2557
2558         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
2559         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
2560         Use strong_alias to create symbols for glibc verison 2.19.
2561
2562 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2563
2564         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
2565
2566 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2567
2568         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
2569
2570 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2571
2572         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
2573
2574 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2575
2576         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2577         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
2578         in header for using it as type for ifunc function because __GI_* symbols
2579         for ppc32 do not target the ifunc symbols.
2580         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
2581
2582 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2583
2584         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
2585         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
2586         libc_ifunc_hidden_def.
2587         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
2588         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
2589         Redirect ifunced function in header for using it as type of ifunc'ed
2590         function. Redefine libc_hidden_def to use fallback non ifunc'ed
2591         function for __GI_* symbol.
2592         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
2593         * include/libc-symbols.h
2594         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
2595
2596 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2597
2598         [BZ #20478]
2599         * sysdeps/s390/multiarch/ifunc-resolve.h
2600         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
2601         to create ifunc symbols.
2602         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
2603         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
2604         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
2605         for using it as type for ifunc function.
2606         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2607         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
2608         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
2609         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
2610         * sysdeps/s390/multiarch/strcat.c: Likewise.
2611         * sysdeps/s390/multiarch/strchr.c: Likewise.
2612         * sysdeps/s390/multiarch/strcmp.c: Likewise.
2613         * sysdeps/s390/multiarch/strcpy.c: Likewise.
2614         * sysdeps/s390/multiarch/strcspn.c: Likewise.
2615         * sysdeps/s390/multiarch/strlen.c: Likewise.
2616         * sysdeps/s390/multiarch/strncmp.c: Likewise.
2617         * sysdeps/s390/multiarch/strncpy.c: Likewise.
2618         * sysdeps/s390/multiarch/strnlen.c: Likewise.
2619         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
2620         * sysdeps/s390/multiarch/strrchr.c: Likewise.
2621         * sysdeps/s390/multiarch/strspn.c: Likewise.
2622         * sysdeps/s390/multiarch/wcschr.c: Likewise.
2623         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
2624         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
2625         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
2626         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
2627         * sysdeps/s390/multiarch/wmemset.c: Likewise.
2628         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
2629         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
2630         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
2631         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
2632         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
2633         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
2634
2635 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2636
2637         * include/libc-symbols.h (__ifunc_resolver):
2638         New macro is used by __ifunc* macros.
2639         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
2640         depending on HAVE_GCC_IFUNC.
2641         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
2642         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
2643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
2644         Redirect ifunced function in header for using as type for ifunc function.
2645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
2646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
2647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
2648         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
2649         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
2650         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
2651         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
2652         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
2653         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
2654         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
2655         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
2656         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
2657         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
2658         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
2659         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
2660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
2661         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
2662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
2663         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
2664         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
2665         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
2666         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
2667         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
2668         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
2669         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
2670         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
2671         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
2672         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
2673         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
2674         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
2675         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
2676         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
2677         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2678         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
2679         Add libc_hidden_def() and use libc_ifunc_hidden() macro
2680         instead of libc_ifunc() macro.
2681         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
2682         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
2683
2684 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2685
2686         * config.h.in (HAVE_GCC_IFUNC): New undef.
2687         * configure.ac: Add check if gcc supports attribute ifunc feature.
2688         * configure: Regenerated.
2689         * manual/install.texi: Add recommendation for gcc with
2690         indirect-function support.
2691         * INSTALL: Regenerated.
2692
2693 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
2694
2695         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
2696         macro.
2697         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2698         (__iseqsig): New declaration.
2699         * math/s_iseqsig_template.c: New file.
2700         * math/Versions (__iseqsigf): New libm symbol at version
2701         GLIBC_2.25.
2702         (__iseqsig): Likewise.
2703         (__iseqsigl): Likewise.
2704         * math/libm-test.inc (iseqsig_test_data): New array.
2705         (iseqsig_test): New function.
2706         (main): Call iseqsig_test.
2707         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
2708         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
2709         * manual/libm-err-tab.pl: Update comment on interfaces without
2710         ulps tabulated.
2711         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
2712         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
2713         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
2714         * sysdeps/nacl/libm.abilist: Update.
2715         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2716         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2717         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2718         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2719         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2720         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2721         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2722         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2723         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2724         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2725         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2726         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2728         Likewise.
2729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2730         Likewise.
2731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2732         Likewise.
2733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2734         Likewise.
2735         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2736         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2737         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2738         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2739         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2741         Likewise.
2742         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2743         Likewise.
2744         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2745         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2746         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2747
2748 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2749
2750         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
2751         do_sincos_2, sloww, sloww1): Update comments.
2752
2753         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
2754         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
2755
2756         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
2757         K boolean and rename it.
2758         (__sin): Adjust.
2759         (__cos): Adjust.
2760
2761 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
2762             Siddhesh Poyarekar  <siddhesh@sourceware.org>
2763
2764         * manual/nss.texi: Fix typos in the manual.
2765
2766 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
2767
2768         * manual/contrib.texi: Fix typos in the manual.
2769
2770         * manual/maint.texi: Fix typos in the manual.
2771
2772         * manual/install.texi: Fix typos in the manual.
2773         * INSTALL: Regenerated.
2774
2775         * manual/lang.texi: Fix typos in the manual.
2776
2777         * manual/probes.texi: Fix typos in the manual.
2778
2779         * manual/threads.texi: Fix typos in the manual.
2780
2781         * manual/debug.texi: Fix typos in the manual.
2782
2783         * manual/crypt.texi: Fix typos in the manual.
2784
2785         * manual/conf.texi: Fix typos in the manual.
2786
2787         * manual/sysinfo.texi: Fix typos in the manual.
2788
2789         * manual/users.texi: Fix typos in the manual.
2790
2791         * manual/job.texi: Fix typos in the manual.
2792
2793         * manual/process.texi: Fix typos in the manual.
2794
2795         * manual/argp.texi: Fix typos in the manual.
2796         * manual/getopt.texi: Likewise.
2797         * manual/startup.texi: Likewise.
2798
2799         * manual/signal.texi: Fix typos in the manual.
2800
2801         * manual/setjmp.texi: Fix typos in the manual.
2802
2803         * manual/resource.texi: Fix typos in the manual.
2804
2805         * manual/time.texi: Fix typos in the manual.
2806
2807         * manual/arith.texi: Fix typos in the manual.
2808
2809         * manual/math.texi: Fix typos in the manual.
2810
2811         * manual/syslog.texi: Fix typos in the manual.
2812
2813         * manual/terminal.texi: Fix typos in the manual.
2814
2815         * manual/socket.texi: Fix typos in the manual.
2816
2817         * manual/filesys.texi: Fix typos in the manual.
2818
2819         * manual/llio.texi: Fix typos in the manual.
2820
2821         * manual/stdio.text: Fix typos in the manual.
2822
2823 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2824
2825         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
2826         instead of K1.
2827
2828         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
2829         SHIFT_QUADRANT and make it bool.
2830         (do_sincos_2): Likewise.
2831         (sloww): Likewise.
2832         (sloww1): Likewise.
2833         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
2834         (__cos): Likewise.
2835
2836 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2837
2838         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
2839
2840 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
2841
2842         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
2843         Define to __WORDSIZE, not conditional on [LONG_MAX ==
2844         0x7fffffffL].
2845         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
2846
2847 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2848
2849         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
2850         inline by __inline__.
2851         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
2852         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
2853         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
2854         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
2855         sigset_t from signal.h.
2856         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
2857         which is already required.
2858
2859 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
2860
2861         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2862
2863 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
2864
2865         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
2866         (struct tcp_repair_window): New type.
2867
2868 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2869
2870         * libio/tst-memstream3.c: Include string.h.
2871
2872 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2873
2874         [BZ #18241]
2875         [BZ #20181]
2876         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
2877         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
2878         write position is at the end the buffer.
2879         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
2880         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
2881         (_IO_str_seekoff): Set correct offset from negative displacement and
2882         set EINVAL for invalid ones.
2883         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
2884         buffer length.
2885         (_IO_wstr_switch_to_get_mode): New function.
2886         (_IO_wstr_seekoff): Set correct offset from negative displacement and
2887         set EINVAL for invalid ones.
2888         * libio/tst-memstream3.c: New file.
2889         * libio/tst-wmemstream3.c: Likewise.
2890         * manual/examples/memstrm.c: Remove warning when priting size_t.
2891
2892 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
2893
2894         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
2895         macro to use __builtin_fma.
2896         * sysdeps/x86_64/fpu/dla.h: Remove file.
2897
2898         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
2899         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
2900         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
2901
2902 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
2903
2904         [BZ #20292]
2905         * elf/Makefile (routines): Add dl-addr-obj.
2906         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
2907         tst-_dl_addr_inside_object.
2908         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
2909         [ifeq (yesyes,$(have-fpie)$(build-shared))]
2910         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
2911         [ifeq (yesyes,$(have-fpie)$(build-shared))]
2912         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
2913         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
2914         * elf/dl-open.c: Likewise.
2915         * elf/dl-addr-obj.c: New file.
2916         * elf/tst-_dl_addr_inside_object.c: New file.
2917
2918 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
2919
2920         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
2921         <bits/iscanonical.h>.
2922         * bits/iscanonical.h: New file.
2923         * math/s_iscanonicall.c: Likewise.
2924         * math/Versions (__iscanonicall): New libm symbol at version
2925         GLIBC_2.25.
2926         * math/libm-test.inc (iscanonical_test_data): New array.
2927         (iscanonical_test): New function.
2928         (main): Call iscanonical_test.
2929         * math/Makefile (headers): Add bits/iscanonical.h.
2930         (type-ldouble-routines): Add s_iscanonicall.
2931         * manual/arith.texi (Floating Point Classes): Document
2932         iscanonical.
2933         * manual/libm-err-tab.pl: Update comment on interfaces without
2934         ulps tabulated.
2935         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
2936         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
2937         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
2938         Likewise.
2939         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
2940         test-iscanonical-ldbl-128ibm.
2941         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
2942         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
2943         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
2944         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
2945         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
2946         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2947         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2949         Likewise.
2950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2951         Likewise.
2952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2953         Likewise.
2954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2955         Likewise.
2956         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2957         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2958
2959 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2960
2961         * string/bits/string3.h: Remove C++ style comments.
2962
2963 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2964
2965         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
2966         instead of ternary condition.
2967         (do_sincos_2): Likewise.
2968         (__sin): Likewise.
2969         (__cos): Likewise.
2970         (slow): Likewise.
2971         (sloww): Likewise.
2972         (sloww1): Likewise.
2973         (bsloww): Likewise.
2974         (bsloww1): Likewise.
2975
2976         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
2977         instead of ternary condition.
2978         (do_sin_slow): Likewise.
2979         (do_sincos_1): Likewise.
2980         (do_sincos_2): Likewise.
2981         (__cos): Likewise.
2982         (sloww): Likewise.
2983         (sloww1): Likewise.
2984         (sloww2): Likewise.
2985         (bsloww): Likewise.
2986         (bsloww1): Likewise.
2987         (bsloww2): Likewise.
2988
2989         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
2990         check from here...
2991         (slow2): ... and here...
2992         (__sin): ... to here.
2993
2994 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
2995
2996         * math/math.h
2997         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
2998         Cast argument to its own type.
2999         * math/test-iszero-excess-precision.c: New file.
3000         * math/Makefile (tests): Add test-iszero-excess-precision.
3001         (CFLAGS-test-iszero-excess-precision.c): New variable.
3002
3003 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
3004
3005         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
3006         field, add err field.
3007         (__spawni_child): Report error through err member instead of pipe.
3008         (__spawnix): Likewise.
3009
3010 2016-09-28  Zack Weinberg  <zackw@panix.com>
3011
3012         * scripts/check-installed-headers.sh: Generalize treatment of
3013         sys/elf.h to all target architectures.
3014
3015         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
3016         deleted typedef ucontext_t.
3017
3018 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3019
3020         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
3021         (__INTERNAL_SYSCALL1): Likewise.
3022         (__INTERNAL_SYSCALL2): Likewise.
3023         (__INTERNAL_SYSCALL3): Likewise.
3024         (__INTERNAL_SYSCALL4): Likewise.
3025         (__INTERNAL_SYSCALL5): Likewise.
3026         (__INTERNAL_SYSCALL6): Likewise.
3027         (__INTERNAL_SYSCALL7): Likewise.
3028         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
3029         (__INTERNAL_SYSCALL_NARGS): Likewise.
3030         (__INTERNAL_SYSCALL_DISP): Likewise.
3031         (INTERNAL_SYSCALL_CALL): Likewise.
3032         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
3033         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
3034         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
3035         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
3036         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
3037         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
3038         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
3039         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
3040         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
3041         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
3042         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
3043         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
3044         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
3045
3046 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
3047
3048         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
3049         macro.
3050         * math/libm-test.inc (iszero_test_data): New array.
3051         (iszero_test): New function.
3052         (main): Call iszero_test.
3053         * manual/arith.texi (Floating Point Classes): Document iszero.
3054         * manual/libm-err-tab.pl: Update comment on interfaces without
3055         ulps tabulated.
3056
3057 2016-09-23  Zack Weinberg  <zackw@panix.com>
3058
3059         * scripts/check-installed-headers.sh: New script.
3060         * Rules: In each directory that defines header files to be installed,
3061         run check-installed-headers.sh on them as a special test.
3062         * Makefile: Likewise for the headers installed at top level.
3063
3064         * include/aliases.h, include/alloca.h, include/argz.h
3065         * include/arpa/nameser.h, include/arpa/nameser_compat.h
3066         * include/elf.h, include/envz.h, include/err.h
3067         * include/execinfo.h, include/fpu_control.h, include/getopt.h
3068         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
3069         * include/link.h, include/malloc.h, include/mcheck.h
3070         * include/mntent.h, include/netinet/ether.h
3071         * include/nss.h, include/obstack.h, include/printf.h
3072         * include/pty.h, include/resolv.h, include/rpc/auth.h
3073         * include/rpc/auth_des.h, include/rpc/auth_unix.h
3074         * include/rpc/clnt.h, include/rpc/des_crypt.h
3075         * include/rpc/key_prot.h, include/rpc/netdb.h
3076         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
3077         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
3078         * include/rpc/rpc_msg.h, include/rpc/svc.h
3079         * include/rpc/svc_auth.h, include/rpc/xdr.h
3080         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
3081         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
3082         * include/rpcsvc/ypupd.h, include/shadow.h
3083         * include/stdio_ext.h, include/sys/epoll.h
3084         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
3085         * include/sys/prctl.h, include/sys/profil.h
3086         * include/sys/statfs.h, include/sys/sysctl.h
3087         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
3088         * sysdeps/arm/nacl/include/bits/setjmp.h
3089         * sysdeps/mips/include/sys/asm.h
3090         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
3091         * sysdeps/unix/sysv/linux/include/sys/timex.h
3092         * sysdeps/x86/fpu/include/bits/fenv.h:
3093         Add #ifndef _ISOMAC guard around internal declarations.
3094         Add multiple-inclusion guard if not already present.
3095
3096 2016-09-23  Zack Weinberg  <zackw@panix.com>
3097
3098         * sysdeps/generic/sys/ucontext.h
3099         * sysdeps/arm/sys/ucontext.h
3100         * sysdeps/i386/sys/ucontext.h
3101         * sysdeps/m68k/sys/ucontext.h
3102         * sysdeps/mips/sys/ucontext.h
3103         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
3104         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
3105         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
3106         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
3107         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
3108         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
3109         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
3110         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
3111         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
3112         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
3113         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
3114         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
3115         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
3116         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
3117         Include both bits/sigcontext.h and bits/sigstack.h.
3118         Fix grammar error in comment, if present.
3119
3120         * bits/sigstack.h
3121         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
3122         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
3123         * sysdeps/unix/sysv/linux/bits/sigstack.h
3124         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
3125         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
3126         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
3127         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
3128         * bits/sigcontext.h
3129         * sysdeps/mach/hurd/i386/bits/sigcontext.h
3130         * sysdeps/unix/sysv/linux/bits/sigcontext.h
3131         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
3132         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
3133         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
3134         as well as signal.h, if this was not already allowed.  Request
3135         definition of size_t if necessary.  Minimize semantically-null
3136         differences across files.
3137
3138 2016-09-23  Zack Weinberg  <zackw@panix.com>
3139
3140         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
3141         Remove all logic conditional on __need macros.  Move all the
3142         conditionally defined types to their own headers...
3143         * time/bits/types/clock_t.h: Define clock_t here.
3144         * time/bits/types/clockid_t.h: Define clockid_t here.
3145         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
3146         * time/bits/types/struct_timespec.h: Define struct timespec here.
3147         * time/bits/types/struct_timeval.h: Define struct timeval here.
3148         * time/bits/types/struct_tm.h: Define struct tm here.
3149         * time/bits/types/time_t.h: Define time_t here.
3150         * time/bits/types/timer_t.h: Define timer_t here.
3151         * time/Makefile: Install the new headers.
3152
3153         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
3154         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
3155         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
3156         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
3157         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
3158         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
3159         * sysdeps/unix/sysv/linux/bits/resource.h
3160         * sysdeps/unix/sysv/linux/bits/timex.h
3161         * sysdeps/unix/sysv/linux/mips/bits/resource.h
3162         * sysdeps/unix/sysv/linux/net/ppp_defs.h
3163         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
3164         * sysdeps/unix/sysv/linux/sys/acct.h
3165         * sysdeps/unix/sysv/linux/sys/timerfd.h
3166         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
3167         * time/sys/time.h, time/sys/timeb.h
3168         Use the new bits/types headers.
3169
3170         * include/time.h: Remove __need logic.
3171         * include/bits/time.h
3172         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
3173         * include/bits/types/time_t.h, include/bits/types/timer_t.h
3174         * include/bits/types/struct_itimerspec.h
3175         * include/bits/types/struct_timespec.h
3176         * include/bits/types/struct_timeval.h
3177         * include/bits/types/struct_tm.h:
3178         New wrapper headers.
3179
3180 2016-09-23  Zack Weinberg  <zackw@panix.com>
3181
3182         * sysdeps/mach/hurd/net/if_ppp.h
3183         * sysdeps/unix/sysv/linux/net/if_ppp.h:
3184         Only define struct ifpppstatsreq and struct ifpppcstatsreq
3185         if __USE_MISC is defined, to ensure struct ifreq is declared.
3186
3187         * inet/netinet/ether.h: Condition all function prototypes
3188         on __USE_MISC, to ensure struct ether_addr is declared.
3189
3190         * socket/bits/types/struct_osockaddr.h: New header.
3191         * include/bits/types/struct_osockaddr.h: New wrapper.
3192         * socket/Makefile: Install the new header.
3193         * socket/sys/socket.h, inet/protocols/talkd.h:
3194         Refer to bits/types/struct_osockaddr.h for the definition of
3195         struct osockaddr.
3196
3197 2016-09-23  Zack Weinberg  <zackw@panix.com>
3198
3199         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
3200         * inet/protocols/routed.h, inet/protocols/talkd.h
3201         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
3202         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
3203         * sysdeps/generic/netinet/if_ether.h
3204         * sysdeps/generic/netinet/in_systm.h
3205         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
3206         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3207         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
3208         * sysdeps/mach/hurd/net/if_arp.h
3209         * sysdeps/mach/hurd/net/if_ppp.h
3210         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
3211         * sysdeps/unix/sysv/linux/bits/in.h
3212         * sysdeps/unix/sysv/linux/net/ethernet.h
3213         * sysdeps/unix/sysv/linux/net/if_arp.h
3214         * sysdeps/unix/sysv/linux/net/if_ppp.h
3215         * sysdeps/unix/sysv/linux/net/if_shaper.h
3216         * sysdeps/unix/sysv/linux/net/route.h
3217         * sysdeps/unix/sysv/linux/netinet/if_ether.h
3218         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3219         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3220         * sysdeps/unix/sysv/linux/netipx/ipx.h
3221         * sysdeps/unix/sysv/linux/sys/acct.h
3222         * include/arpa/nameser.h, include/resolv.h:
3223         Change all uses of u_char to unsigned char,
3224         u_short and ushort to unsigned short, u_int and uint to unsigned int,
3225         u_long and ulong to unsigned long, u_int8_t to uint8_t,
3226         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
3227         and u_int64_t and u_quad_t to uint64_t.
3228
3229         * mach/sys/reboot.h: Remove two casts of integer literals
3230         to the types they already have.
3231
3232         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
3233         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3234         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
3235         from referring to 'unsigned char' to 'uint8_t' for consistency with
3236         the macro definition below.
3237
3238         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
3239         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
3240         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
3241         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
3242         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
3243         * sysdeps/unix/sysv/linux/sys/acct.h
3244         * include/arpa/nameser.h, include/resolv.h:
3245         Fix indentation disrupted by mechanical edits.
3246
3247         * inet/protocols/talkd.h, resolv/arpa/nameser.h
3248         * sysdeps/generic/netinet/in_systm.h
3249         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3250         * sysdeps/gnu/netinet/udp.h
3251         * sysdeps/unix/sysv/linux/net/ethernet.h
3252         * sysdeps/unix/sysv/linux/net/if_arp.h
3253         * sysdeps/unix/sysv/linux/net/if_ppp.h
3254         * sysdeps/unix/sysv/linux/net/if_shaper.h
3255         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3256         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3257         * sysdeps/unix/sysv/linux/netipx/ipx.h
3258         * sysdeps/unix/sysv/linux/sys/acct.h
3259         Include stdint.h for uintNN_t definitions.
3260         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
3261
3262 2016-09-23  Zack Weinberg  <zackw@panix.com>
3263
3264         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
3265         * sysdeps/unix/sysv/linux/netrose/rose.h:
3266         Include sys/socket.h and netax25/ax25.h.
3267
3268         * inet/netinet/icmp6.h, inet/netinet/ip6.h
3269         * resolv/arpa/nameser_compat.h:
3270         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
3271
3272         * sysdeps/unix/sysv/linux/sys/quota.h:
3273         Use __caddr_t instead of caddr_t.
3274         * sysdeps/unix/sysv/linux/sys/timerfd.h:
3275         Use __clockid_t instead of clockid_t.
3276
3277         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
3278
3279         * argp/argp.h: Check whether _LIBC is defined before expanding it.
3280         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
3281         expanding it.
3282
3283         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
3284         Define __glibc_c99_flexarr_available to 1 when the compiler
3285         supports C99-compatible flexible array members, 0 otherwise.
3286         * sysdeps/unix/sysv/linux/bits/socket.h
3287         * sysdeps/mach/hurd/bits/socket.h
3288         * bits/socket.h: Use __glibc_c99_flexarr_available in
3289         definitions of struct cmsghdr and CMSG_DATA.
3290
3291 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3292
3293         * manual/nss.texi (NSS Modules Interface): Adjust function return
3294         type to enum nss_status.  Document errnop argument.  Clarify
3295         h_errnop semantics.  Fix cross-reference formatting.
3296         (NSS Module Function Internals): Mention that *errnop needs to be
3297         set on failure, but not to zero.
3298
3299 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3300
3301         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
3302         (get_random_name): New functions.
3303         (check_wrapper_flags_mode): Use linkat to give the new file a name
3304         determined by get_random_name.
3305         (do_test): Add calls to test open64 and openat64.
3306
3307 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3308
3309         * test-skeleton.c: Remove #include <stdarg.h>.
3310
3311 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
3312
3313         [BZ #19826]
3314         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
3315         initialization of static TLS entries.
3316         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
3317         * nptl/allocatestack.c (init_one_static_tls): Likewise.
3318
3319 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3320
3321         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
3322         _hurd_malloc_fork_prepare.
3323         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
3324         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
3325         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
3326         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
3327         (_hurd_fork_child_hook): Drop malloc_fork_child.
3328         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
3329         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
3330         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
3331         after locking locks (notably hurd_dtable_lock). Call
3332         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
3333         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
3334         __malloc_fork_unlock_child.
3335         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
3336
3337 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
3338
3339         * soft-fp/extendhftf2.c: New.
3340         * soft-fp/fixhfti.c: Likewise.
3341         * soft-fp/fixunshfti.c: Likewise.
3342         * soft-fp/floattihf.c: Likewise.
3343         * soft-fp/floatuntihf.c: Likewise.
3344         * soft-fp/half.h: Likewise.
3345         * soft-fp/trunctfhf2.c: Likewise.
3346
3347 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
3348
3349         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
3350         macro.
3351         * math/libm-test.inc (issubnormal_test_data): New array.
3352         (issubnormal_test): New function.
3353         * manual/arith.texi (Floating Point Classes): Document
3354         issubnormal.
3355         * manual/libm-err-tab.pl: Update comment on interfaces without
3356         ulps tabulated.
3357
3358         * sysdeps/generic/stdint.h: Define
3359         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3360         <bits/libc-header-start.h> instead of including <features.h>.
3361         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
3362         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
3363         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
3364         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
3365         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
3366         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
3367         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
3368         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
3369         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
3370         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
3371         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
3372         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
3373         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
3374         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
3375         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
3376         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
3377         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
3378         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
3379         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
3380         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
3381         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
3382         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
3383         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
3384         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
3385         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
3386         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
3387         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
3388         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
3389         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
3390         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
3391         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
3392         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
3393         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
3394         * manual/arith.texi (Integers): Document these macros for types
3395         specified by width properties.
3396         * manual/lang.texi (Width of Type): Document these macros for
3397         other standard typedefs.
3398         * stdlib/tst-width-stdint.c: New file.
3399         * stdlib/Makefile (tests): Add tst-width-stdint.
3400
3401 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3402
3403         [BZ #20016]
3404         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
3405         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
3406         Move ...
3407         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
3408         ... here, as compatibility symbols in a new file.
3409         * resolv/Makefile (libresolv-routines): Add compat-hooks.
3410         * resolv/res_init.c (__res_vinit): Adjust member names.
3411         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
3412         * resolv/resolv.h (res_sendhookact, res_send_qhook)
3413         (res_send_rhook): Remove.
3414         (struct __res_state): Rename qhook, rhook members.
3415
3416 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3417
3418         malloc: Use __libc_lock wrappers.
3419         * malloc/arena.c (list_lock, free_list_lock): Define using
3420         __libc_lock_define_initialized.
3421         (arena_lock): Adjust formatting.
3422         * malloc/malloc.c (struct malloc_state): Define mutex using
3423         __libc_lock_define.
3424         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
3425         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
3426         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
3427         (mutex_unlock, mutex_trylock): Remove.
3428         (__pthread_initialize): Remove unused macro.
3429         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
3430         (mutex_unlock, mutex_trylock): Remove.
3431
3432 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3433
3434         [BZ #20592]
3435         Remove RR type classification macros.
3436         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
3437         (ns_t_udp_p, ns_t_xfr_p): Remove.
3438
3439 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3440
3441         Remove misleading version information.
3442         * resolv/arpa/nameser.h (__NAMESER): Remove.
3443         * resolv/arpa/nameser_compat.h (__BIND): Remove.
3444
3445 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3446
3447         Remove the always-defined BIND_4_COMPAT macro.
3448         * resolv/arpa/nameser.h: Unconditionally include
3449         <arpa/nameser_compat.h>.
3450         (BIND_4_COMPAT): Remove.
3451         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
3452
3453 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3454
3455         [BZ #20591]
3456         Remove obsolete DNSSEC support.
3457         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
3458         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
3459         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
3460         (ns_verify_tcp, ns_verify_tcp_init): Remove.
3461         (ns_cert_types): Add comment.
3462         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
3463         separately.
3464         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
3465         (dst_s_dns_key_id): Remove.
3466         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
3467         variables.
3468
3469 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3470
3471         [BZ #20524]
3472         * manual/string.texi (String/Array Comparison): Clarify the
3473         strverscmp behavior.
3474
3475 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3476
3477         * test-skeleton.c (xasprintf): Add function.
3478         * io/tst-open-tmpfile.c: New test.
3479         * io/Makefile (tests): Add it.
3480
3481 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3482
3483         Avoid running $(CXX) during build to obtain header file paths.
3484         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
3485         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
3486         * Makerules (cstdlib, cmath): Remove variables.  Use
3487         $(c++-cstdlib-header), $(c++-cmath-header) instead.
3488         * configure: Regenerate.
3489
3490 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3491
3492         * Makeconfig (all-object-suffixes): Include .op only if
3493         $(build-profile).
3494
3495 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3496
3497         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
3498         conditionals.  Do not define PATH_MAX.
3499
3500 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3501
3502         * posix/Makefile (tests): Add tst-spawn3.
3503         * posix/tst-spawn3.c: New file.
3504         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
3505         if it is already opened for open action.
3506
3507         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
3508         all signals when executing the clone vfork child.
3509         (SIGALL_SET): Remove macro.
3510
3511         * nptl/Makefile (tests): Add tst-exec5.
3512         * nptl/tst-exec5.c: New file.
3513         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
3514         asynchronous cancellation.
3515
3516 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3517
3518         * hurd/exc2signal.c: #include <hurd/signal.h>
3519         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
3520         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
3521         accordingly.
3522         * mach/mach_error.c (mach_error): Fix old-style function definition.
3523         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
3524
3525 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3526
3527         * math/Makefile (libm-calls): Remove s_nanF.
3528         (gen-libm-calls): Add s_nanF.
3529
3530         * math/s_nan.c: Refactor into ...
3531         * math/s_nan_template.c: New file.
3532
3533         * math/s_nanf.c: Removed.
3534         * math/s_nanl.c: Removed.
3535         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
3536         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
3537
3538         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
3539         (LDOUBLE_nanl_libm_version): New macro.
3540
3541         * sysdeps/generic/math-type-macros-double.h:
3542         (M_STRTO_NAN): New macro.
3543         * sysdeps/generic/math-type-macros-float.h: Likewise.
3544         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
3545
3546         * sysdeps/generic/math-type-macros.h: Document
3547         M_STRTO_NAN.
3548
3549 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3550
3551         * math/s_nanf.c: Remove __nanf undef.
3552         * math/s_nan.c: Remove __nan undef.
3553         * math/s_nanl.c: Remove __nanl undef.
3554
3555         * sysdeps/generic/math_private.h (__nan): Remove macro
3556         override.
3557         (__nanf): Likewise.
3558         (__nanl): Likewise.
3559
3560 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3561
3562         * math/Makefile (gen-all-calls): New variable.
3563         (generated): Replace gen-libm-calls with gen-all-calls.
3564         (gen-libm-templates.stmp): Likewise.  Also, ensure
3565         the output directory exists or is created and add
3566         dependency on the Makefile.
3567         (calls): Move s_ldexpF into gen-calls.
3568         (gen-calls): New variable.
3569
3570         * math/s_ldexpf.c: Removed.
3571         * math/s_ldexpl.c: Removed.
3572         * math/s_ldexp.c: Refactored into ...
3573         * math/s_ldexp_template.c: New file.
3574
3575         * sysdeps/generic/math-type-macros-double.h: Remove
3576         redundant fall-through definition of declare_mgen_alias.
3577         (declare_mgen_alias_2): New macro.
3578
3579         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
3580         New macro for function aliased to two exported symbols.
3581
3582         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
3583         new template file.
3584         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
3585
3586 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3587
3588         * Makeconfig (all-object-suffixes): Remove .og.
3589         * Makerules (elide-routines.og): Remove.
3590         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
3591         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
3592         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
3593
3594 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3595
3596         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
3597         .os objects.
3598
3599 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3600
3601         [BZ #20615]
3602         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
3603         fpu directory by non-fpu.
3604         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
3605         on non-fpu directory from a fpu directory.
3606
3607 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3608
3609         * include/limits.h: Define
3610         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3611         <bits/libc-header-start.h> instead of including <features.h>.
3612         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
3613         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
3614         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
3615         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
3616         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
3617         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
3618         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
3619         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
3620         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3621         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
3622         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
3623         * manual/lang.texi (Width of Type): Document these macros.
3624         * stdlib/tst-width.c: New file.
3625         * stdlib/Makefile (tests): Add tst-width.
3626
3627 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3628
3629         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
3630         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
3631
3632 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3633
3634         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
3635         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
3636         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
3637
3638 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3639
3640         [BZ #18243]
3641         * rt/Makefile (test): Add tst-shm-cancel.
3642         * rt/tst-shm-cancel.c: New file.
3643         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
3644
3645         [BZ #18243]
3646         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
3647         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
3648         definition.
3649         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
3650         uncontended case.
3651         * nptl/sem_wait.c (__new_sem_wait): Likewise.
3652         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
3653         (tf): Fix check for uncontended case.
3654         (do_test): Likewise.
3655         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
3656         (tf): Fix check for uncontended case.
3657         (do_test): Likewise.
3658         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
3659         (tf): Fix check for uncontended case.
3660         (do_test): Likewise.
3661         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
3662         (tf): Fix check for uncontended case.
3663         (do_test): Likewise.
3664
3665         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
3666         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
3667
3668         [BZ #15765]
3669         * nptl/Makefile (tests): Add tst-sem16.
3670         * nptl/tst-sem16.c: New file.
3671         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
3672
3673         * nptl/sem_open.c (sem_open): Init pad value to 0.
3674         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
3675         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
3676
3677 2016-09-15  Florian Weimer  <fweimer@redhat.com>
3678
3679         [BZ #20611]
3680         * inet/Makefile (routines): Add inet6_scopeid_pton.
3681         (tests): Add tst-inet6_scopeid_pton.
3682         * inet/inet6_scopeid_pton.c: New file.
3683         * inet/net-internal.h: Likewise.
3684         * inet/tst-inet6_scopeid_pton.c: New test.
3685         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
3686         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
3687         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3688
3689 2016-09-14  Florian Weimer  <fweimer@redhat.com>
3690
3691         Remove support for compiling wrappers with PTW.
3692         * sysdeps/nptl/Makeconfig: Drop ptw- support.
3693         * nptl/Makefile (pthread-compat-wrappers): Define.
3694         (libpthread-routines): Use pthread-compat-wrappers.
3695         * sysdeps/unix/sysv/linux/alpha/Makefile
3696         (libpthread-routines, libpthread-shared-only-routines): Remove
3697         ptw- prefix.
3698         * sysdeps/s390/nptl/Makefile
3699         (libpthread-routines, libpthread-shared-only-routines): Likewise.
3700         * sysdeps/ia64/nptl/Makefile
3701         (libpthread-routines, libpthread-shared-only-routines): Likewise.
3702         * sysdeps/nacl/Makefile (libpthread-routines): Use
3703         pthread-compat-wrappers to filter the routines list instead of the
3704         ptw- prefix.
3705
3706 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3707
3708         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
3709         with L() and remove explicit suffix, convert real literals
3710         which can be equivalentally substituted with integers, and
3711         transform -L(x) to L(-x).
3712
3713         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
3714         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
3715         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
3716         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
3717         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
3718         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
3719         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3720         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
3721         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
3722         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
3723         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3724         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3725         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
3726         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3727         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
3728         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
3729         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
3730         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3731         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
3732         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
3733         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
3734         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
3735         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
3736         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3737         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
3738         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
3739         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3740         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
3741         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
3742         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3743         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3744         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
3745         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
3746         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3747         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3748         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3749         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3750         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3751         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3752         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
3753         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3754         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3755         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3756         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
3757         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
3758         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
3759         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3760         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
3761         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
3762         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
3763
3764 2016-09-13  Florian Weimer  <fweimer@redhat.com>
3765
3766         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
3767
3768 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3769
3770         * malloc/Makefile (tests): Remove individual static test names
3771         and just add all of tests-static.
3772
3773         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
3774
3775 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
3776
3777         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
3778         file.
3779
3780         * sysdeps/sparc/fpu/fegetmode.c: New file.
3781         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
3782
3783         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
3784         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
3785
3786         * sysdeps/s390/fpu/fegetmode.c: New file.
3787         * sysdeps/s390/fpu/fesetmode.c: Likewise.
3788
3789         * sysdeps/powerpc/fpu/fegetmode.c: New file.
3790         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
3791         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
3792         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
3793         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
3794         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
3795
3796         * sysdeps/mips/fpu/fegetmode.c: New file.
3797         * sysdeps/mips/fpu/fesetmode.c: Likewise.
3798
3799         * sysdeps/m68k/fpu/fegetmode.c: New file.
3800         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
3801
3802         * sysdeps/ia64/fpu/fegetmode.c: New file.
3803         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
3804
3805         * sysdeps/hppa/fpu/fegetmode.c: New file.
3806         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
3807
3808         * sysdeps/arm/fegetmode.c: New file.
3809         * sysdeps/arm/fesetmode.c: Likewise.
3810
3811         * sysdeps/alpha/fpu/fegetmode.c: New file.
3812         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
3813
3814         * sysdeps/aarch64/fpu/fegetmode.c: New file.
3815         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
3816
3817         * math/fegetmode.c: New file.
3818         * math/fesetmode.c: Likewise.
3819         * sysdeps/i386/fpu/fegetmode.c: Likewise.
3820         * sysdeps/i386/fpu/fesetmode.c: Likewise.
3821         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
3822         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
3823         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
3824         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
3825         declaration.
3826         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
3827         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
3828         typedef.
3829         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3830         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3831         (femode_t): New typedef.
3832         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3833         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3834         (femode_t): New typedef.
3835         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3836         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3837         (femode_t): New typedef.
3838         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3839         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3840         (femode_t): New typedef.
3841         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3842         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3843         (femode_t): New typedef.
3844         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3845         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3846         (femode_t): New typedef.
3847         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3848         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3849         (femode_t): New typedef.
3850         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3851         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3852         (femode_t): New typedef.
3853         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3854         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3855         (femode_t): New typedef.
3856         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3857         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3858         (femode_t): New typedef.
3859         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
3860         declaration.
3861         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3862         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3863         (femode_t): New typedef.
3864         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3865         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3866         (femode_t): New typedef.
3867         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3868         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3869         (femode_t): New typedef.
3870         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3871         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3872         (femode_t): New typedef.
3873         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3874         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3875         (femode_t): New typedef.
3876         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3877         * manual/arith.texi (FE_DFL_MODE): Document macro.
3878         (fegetmode): Document function.
3879         (fesetmode): Likewise.
3880         * math/Versions (fegetmode): New libm symbol at version
3881         GLIBC_2.25.
3882         (fesetmode): Likewise.
3883         * math/Makefile (libm-support): Add fegetmode and fesetmode.
3884         (tests): Add test-femode and test-femode-traps.
3885         * math/test-femode-traps.c: New file.
3886         * math/test-femode.c: Likewise.
3887         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
3888         alias for __fe_dfl_env.
3889         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
3890         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
3891         (__fe_dfl_mode): Likewise.
3892         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
3893         version GLIBC_2.25.
3894         * sysdeps/nacl/libm.abilist: Update.
3895         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3896         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3897         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3898         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3899         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3900         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3901         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3902         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3903         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3904         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3905         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3906         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3908         Likewise.
3909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3910         Likewise.
3911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3912         Likewise.
3913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3914         Likewise.
3915         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3916         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3917         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3918         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3919         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3920         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3921         Likewise.
3922         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3923         Likewise.
3924         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3925         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3926         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3927
3928 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3929
3930         [BZ #20495]
3931         [BZ #20508]
3932         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
3933         processors, set Use_dl_runtime_resolve_slow and set
3934         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
3935         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
3936         New.
3937         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
3938         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
3939         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
3940         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
3941         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
3942         if Use_dl_runtime_resolve_opt is set.  Use
3943         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
3944         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
3945         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
3946         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
3947         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
3948         New.
3949         (_dl_runtime_resolve_opt): Likewise.
3950         (_dl_runtime_profile): Define only if _dl_runtime_profile is
3951         defined.
3952
3953 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
3954
3955         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
3956         __libc_memalign with "+ RELA R_390_GLOB_DAT".
3957
3958 2016-09-06  Florian Weimer  <fweimer@redhat.com>
3959
3960         Convert malloc to __libc_lock.  Automated part, using this Perl
3961         s/// command:
3962           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
3963             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
3964         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
3965         conversion.
3966
3967 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
3968
3969         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
3970         (linknamespace-symlists-tests): Likewise.
3971         (linknamespace-header-tests): Likewise.
3972
3973 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
3974
3975         [BZ #19810]
3976         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
3977         * elf/tst-noload.c: New test case.
3978         * elf/Makefile (tests): Add tst-noload.
3979
3980 2016-09-02  Roland McGrath  <roland@hack.frob.com>
3981
3982         * sysdeps/nacl/dup.c: Add libc_hidden_def.
3983
3984         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
3985         not any more.
3986
3987         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
3988
3989 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3990
3991         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
3992         (do_cos_slow): Likewise.
3993         (do_sin): Likewise.
3994         (do_sin_slow): Likewise.
3995         (slow): Likewise.
3996         (slow1): Likewise.
3997         (slow2): Likewise.
3998         (sloww): Likewise.
3999         (sloww1): Likewise.
4000         (sloww2): Likewise.
4001         (bsloww): Likewise.
4002         (bsloww1): Likewise.
4003         (bsloww2): Likewise.
4004         (cslow2): Likewise.
4005
4006         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
4007
4008         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
4009         arguments.  Consolidate input partitioning from callers here.
4010         (do_cos_slow): Likewise.
4011         (do_sin): Likewise.
4012         (do_sin_slow): Likewise.
4013         (do_sincos_1): Remove the no longer necessary input partitioning.
4014         (do_sincos_2): Likewise.
4015         (__sin): Likewise.
4016         (__cos): Likewise.
4017         (slow1): Likewise.
4018         (slow2): Likewise.
4019         (sloww1): Likewise.
4020         (sloww2): Likewise.
4021         (bsloww1): Likewise.
4022         (bsloww2): Likewise.
4023         (cslow2): Likewise.
4024
4025 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4026
4027         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
4028         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
4029         outside of allocated array.
4030
4031 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4032
4033         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
4034         instead of MB_CUR_MAX to avoid variable-length array.
4035
4036 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4037
4038         * math/Makefile (libm-calls): Remove k_rem_pio2F.
4039         (type-double-routines): Add k_rem_pio2.
4040         (type-float-routines): Add k_rem_pio2f.
4041
4042         * sysdeps/generic/math_private.h:
4043         (__kernel_rem_pio2l): Removed.
4044
4045         * math/k_rem_pio2l.c: Removed.
4046         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
4047         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
4048         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
4049         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
4050
4051 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4052
4053         * math/Makefile (gen-libm-calls): Add s_fmin
4054         (libm-calls): Remove above.
4055
4056         * math/s_fmin.c: Refactor into ...
4057         * math/s_fmin_template.c: New file.
4058
4059         * math/s_fminf.c: Removed.
4060         * math/s_fminl.c: Removed.
4061         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4062         (LDOUBLE_fmin_libm_version): New macro.
4063
4064         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
4065         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
4066
4067 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4068
4069         * math/Makefile: (gen-libm-calls): Add s_fmax.
4070         (libm-calls): Remove above.
4071
4072         * math/s_fmax.c: Refactor into ...
4073         * math/s_fmax_template.c: New file.
4074         * math/s_fmaxf.c: Removed.
4075         * math/s_fmaxl.c: Removed.
4076
4077         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4078         (LDOUBLE_fmaxl_libm_version): New macro.
4079
4080         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
4081         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
4082
4083         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
4084         s_fmin.c to pick the aarch64 version of the file.
4085         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
4086         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
4087
4088 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4089
4090         * math/Makefile: (gen-libm-calls): Add s_nextdown.
4091         (libm-calls): Remove above.
4092
4093         * math/s_nextdown.c: Refactor into ...
4094         * math/s_nextdown_template.c: New file.
4095         * math/s_nextdownf.c: Removed.
4096         * math/s_nextdownl.c: Removed.
4097
4098         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
4099
4100 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4101
4102         * math/Makefile (gen-libm-calls): Add s_fdim.
4103         (libm-calls): Move to above.
4104
4105         * math/s_fdim.c: Renamed and refactored into to ...
4106         * math/s_fdim_template.c: New file.
4107         * math/s_fdiml.c: Removed.
4108         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
4109         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
4110
4111         * sysdeps/generic/math-type-macros-double.h:
4112         (declare_mgen_alias): Don't declare if already declared.
4113         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
4114         Likewise.
4115
4116         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4117         (declare_mgen_alias): Don't declare if already declared.
4118         (M_LIBM_NEED_COMPAT): Likewise.
4119         (declare_mgen_libm_compat): Likewise.
4120         (LDOUBLE_fdiml_libm_version): New macro.
4121
4122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4123         Include math/s_fdim.c now that ldbl-opt version is not needed.
4124         (declare_mgen_alias): New macro to disable aliasing.
4125
4126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
4127         (declare_mgen_alias): Likewise.
4128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
4129         (declare_mgen_alias): Likewise.
4130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
4131         (declare_mgen_alias): Likewise.
4132         (M_LIBM_NEED_COMPAT): Likewise.
4133
4134 2016-09-01  Florian Weimer  <fweimer@redhat.com>
4135
4136         [BZ #20525]
4137         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
4138         Include <linux/quota.h>.
4139         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
4140         and btodb.
4141         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
4142         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
4143         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
4144         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
4145         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
4146         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
4147         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
4148         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
4149         types.
4150         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
4151         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
4152
4153 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4154
4155         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
4156         (gammal_positive): Fix spacing.
4157         (__ieee754_gammal_r): Likewise.
4158
4159 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4160
4161         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
4162         (_Float128): Define as long double, always.
4163         (L): Apply long double type suffix, always.
4164
4165         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
4166         _Float128, excepting comments.
4167
4168         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4169         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4170         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4171         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4172         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4173         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4174         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
4175         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4176         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4177         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
4178         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4179         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4180         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4181         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4182         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4183         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4184         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4185         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4186         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4187         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4188         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4189         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4190         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4191         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4192         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4193         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4194         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4195         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4196         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4197         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4198         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4199         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4200         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4201         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4202         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4203         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4204         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4205         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4206         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4207         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4208         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
4209         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4210         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4211         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4212         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
4213         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4214         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4215         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4216         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4217         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4218         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4219         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4220         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4221         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4222         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
4223         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4224         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4225         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
4226         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4227         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4228         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4229         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4230         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4231         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4232         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
4233         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4234         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4235         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4236
4237         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
4238         _Float128, and include math_private.h.
4239         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4240
4241         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
4242         long double semantics.
4243         (_Float128): Likewise.
4244         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
4245         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4246         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4247         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4248
4249 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4250
4251         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
4252         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
4253         * sysdeps/s390/configure: Regenerated.
4254         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
4255         instruction for raising over-/underflow if z196 zarch is supported
4256         by default.
4257         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
4258
4259 2016-08-30  Svante Signell  <svante.signell@gmail.com>
4260
4261         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
4262         it point to a dumb buffer for RPC to fill it.
4263
4264 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4265
4266         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
4267         instead of if/else.
4268         (do_sin_slow): Likewise.
4269         (do_sincos_1): Use fabs instead of if/else.
4270         (do_sincos_2): Likewise.
4271         (__sin): Likewise.
4272         (__cos): Likewise.
4273         (slow2): Likewise.
4274         (sloww): Likewise.
4275         (sloww1): Likewise.  Drop argument M.
4276         (sloww2): Use fabs instead of if/else.
4277         (bsloww): Likewise.
4278         (bsloww1): Likewise.
4279         (bsloww2): Likewise.
4280
4281         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
4282         fall through comment.
4283         (do_sincos_1): Likewise.
4284
4285         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
4286         Consolidate switch cases 0 and 2.
4287
4288 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4289
4290         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
4291         (libm-calls): Remove the above.
4292
4293         * math/s_cexp_template.c: Update using type-generic macros.
4294         * math/s_clog10_template.c: Likewise.
4295         * math/s_cpow_template.c: Likewise.
4296         * math/s_clog_template.c: Likewise.
4297         * math/s_cproj_template.c: Likewise.
4298         * math/s_csqrt_template.c: Likewise.
4299
4300         * math/s_cexp.c: Removed.
4301         * math/s_cexpf.c: Removed.
4302         * math/s_cexpl.c: Removed.
4303         * math/s_clog10.c: Removed.
4304         * math/s_clog10f.c: Removed.
4305         * math/s_clog10l.c: Removed.
4306         * math/s_cpow.c: Removed.
4307         * math/s_cpowf.c: Removed.
4308         * math/s_cpowl.c: Removed.
4309         * math/s_clog.c: Removed.
4310         * math/s_clogf.c: Removed.
4311         * math/s_clogl.c: Removed.
4312         * math/s_cproj.c: Removed.
4313         * math/s_cprojf.c: Removed.
4314         * math/s_cprojl.c: Removed.
4315         * math/s_csqrt.c: Removed.
4316         * math/s_csqrtf.c: Removed.
4317         * math/s_csqrtl.c: Removed.
4318
4319         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
4320         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
4321         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
4322         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
4323         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
4324         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
4325
4326         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
4327         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
4328         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
4329         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
4330         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
4331         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
4332         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
4333         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
4334         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
4335         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
4336         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
4337
4338         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
4339         version.
4340
4341         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
4342         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
4343         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
4344         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
4345
4346 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4347
4348         * s_cexp_template.c: Copy of s_cexp.c.
4349         * s_clog_template.c: Copy of s_clog.c.
4350         * s_clog10_template.c: Copy of s_clog10.c.
4351         * s_cpow_template.c: Copy of s_cpow.c.
4352         * s_cproj_template.c: Copy of s_cproj.c.
4353         * s_csqrt_template.c: Copy of s_csqrt.c.
4354
4355 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4356
4357         [BZ #20517]
4358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4359         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
4360         exported.
4361
4362 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
4363
4364         * math/fetestexceptflag.c: New file.
4365         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
4366         Stefan Liebler.
4367         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4368         (fetestexceptflag): New function declaration.
4369         * manual/arith.texi (fetestexceptflag): Document function.
4370         * math/Versions (fetestexceptflag): New libm symbol at version
4371         GLIBC_2.25.
4372         * math/Makefile (libm-support): Add fetestexceptflag.
4373         (tests): Add test-fetestexceptflag.
4374         * math/test-fetestexceptflag.c: New file.
4375         * sysdeps/nacl/libm.abilist: Update.
4376         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4377         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4378         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4379         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4380         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4381         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4382         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4383         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4384         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4385         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4386         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4387         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4389         Likewise.
4390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4391         Likewise.
4392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4393         Likewise.
4394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4395         Likewise.
4396         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4397         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4398         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4399         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4400         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4401         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4402         Likewise.
4403         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4404         Likewise.
4405         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4406         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4407         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4408
4409 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4410
4411         [BZ #20432]
4412         Avoid strong references to malloc-internal symbols when linking
4413         statically, to support statically interposed mallocs.
4414         * include/libc-symbols.h (call_function_static_weak): New macro.
4415         * malloc/Makefile (tests): Add tst-interpose-nothread,
4416         tst-interpose-thread, tst-interpose-static-nothread,
4417         tst-interpose-static-thread.
4418         (tests-static): Add tst-interpose-static-nothread,
4419         tst-interpose-static-thread.
4420         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
4421         tst-interpose-aux-thread.o.
4422         (test-extras): Add tst-interpose-aux-nothread,
4423         tst-interpose-aux-thread.
4424         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
4425         tst-interpose-aux-nothread.o.
4426         (tst-interpose-thread, tst-interpose-static-thread): Link with
4427         tst-interpose-aux-thread.o and libthread.
4428         * malloc/tst-interpose-aux-nothread.c: New file.
4429         * malloc/tst-interpose-aux-thread.c: Likewise.
4430         * malloc/tst-interpose-aux.c: Likewise.
4431         * malloc/tst-interpose-aux.h: Likewise.
4432         * malloc/tst-interpose-nothread.c: Likewise.
4433         * malloc/tst-interpose-skeleton.c: Likewise.
4434         * malloc/tst-interpose-static-nothread.c: Likewise.
4435         * malloc/tst-interpose-static-thread.c: Likewise.
4436         * malloc/tst-interpose-thread.c: Likewise.
4437         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
4438         * sysdeps/mach/hurd/fork.c (__fork): Only call
4439         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
4440         __malloc_fork_unlock_child if defined.
4441         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4442
4443 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4444
4445         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
4446         timespec C99 designated initialization.
4447
4448 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4449
4450         [BZ #19946]
4451         Avoid expected SIGALRM signals.
4452         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
4453         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
4454         (xpthread_create, xpthread_detach, xpthread_join)
4455         (delayed_exit_thread, delayed_exit): New functions.
4456         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
4457         (tf): Use xpthread_cond_wait.
4458         (do_test): Likewise.  Replace alarm with delayed_exit.
4459         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4460         (do_test): Call delayed_exit.  Report failure.
4461         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4462         (do_test): Call delayed_exit.
4463         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4464         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
4465         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4466         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
4467         error.
4468         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4469         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
4470         error.
4471         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
4472         (do_test): Call delayed_exit.
4473         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
4474         (do_test): Call delayed_exit.
4475         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
4476         (do_test): Call delayed_exit instead of alarm.  Use
4477         xpthread_mutex_lock.
4478         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
4479         (do_test): Call delayed_exit instead of alarm.  Use
4480         xpthread_mutex_lock.
4481         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
4482         (do_test): Call delayed_exit instead of alarm.
4483         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
4484         (do_test): Call delayed_exit instead of alarm.  Use
4485         xpthread_spin_lock.
4486         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
4487         (do_test): Call delayed_exit instead of alarm.  Use
4488         xpthread_join.
4489
4490 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4491
4492         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
4493         adjust CFA when allocating register save area on re-aligned
4494         stack.
4495
4496 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4497
4498         * string/tst-cmp.c: New test.
4499         * string/Makefile (tests): Add it.
4500
4501 2016-08-25  Mark Wielaard  <mark@klomp.org>
4502
4503         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
4504         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
4505         (check_tree_recurse): Use newly defined accessors.
4506         (check_tree): Likewise.
4507         (maybe_split_for_insert): Likewise.
4508         (__tfind): Likewise.
4509         (__tdelete): Likewise.
4510         (trecurse): Likewise.
4511         (tdestroy_recurse): Likewise.
4512         (__tsearch): Likewise. And add asserts for malloc alignment.
4513         (__twalk): Cast root to node in case CHECK_TREE is defined.
4514
4515 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4516
4517         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
4518
4519 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4520
4521         * math/Makefile (libm-gen-calls): Add
4522         catan, catanh, ctan, ctanh.
4523         (libm-calls): Remove the above.
4524
4525         * math/s_catan_template.c: Update using type-generic macros.
4526         * math/s_catanh_template.c: Likewise.
4527         * math/s_ctan_template.c: Likewise.
4528         * math/s_ctanh_template.c: Likewise.
4529
4530         * math/s_catanf.c: Removed.
4531         * math/s_catan.c: Removed.
4532         * math/s_catanl.c: Removed.
4533         * math/s_catanhf.c: Removed.
4534         * math/s_catanh.c: Removed.
4535         * math/s_catanhl.c: Removed.
4536         * math/s_ctanf.c: Removed.
4537         * math/s_ctan.c: Removed.
4538         * math/s_ctanl.c: Removed.
4539         * math/s_ctanhf.c: Removed.
4540         * math/s_ctanh.c: Removed.
4541         * math/s_ctanhl.c: Removed.
4542
4543         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
4544         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
4545         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
4546         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
4547         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
4548         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
4549
4550         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
4551         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
4552         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
4553         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
4554
4555 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4556
4557         * s_catan_template.c: Copy of s_catan.c.
4558         * s_catanh_template.c: Copy of s_catanh.c.
4559         * s_ctan_template.c: Copy of s_ctan.c.
4560         * s_ctanh_template.c: Copy of s_ctanh.c.
4561
4562 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4563
4564         * math/Makefile (gen-libm-calls): Move
4565         casin, casinh, csin, csinh here.
4566         (libm-calls): Remove the above.
4567
4568         * math/s_casin_template.c: Update using type-generic macros.
4569         * math/s_casinh_template.c: Likewise.
4570         * math/s_csin_template.c: Likewise.
4571         * math/s_csinh_template.c: Likewise.
4572         * math/k_casinh_template.c: Likewise.
4573
4574         * math/s_casinf.c: Removed.
4575         * math/s_casin.c: Removed.
4576         * math/s_casinl.c: Removed.
4577         * math/s_casinh.c: Removed.
4578         * math/s_casinhf.c: Removed.
4579         * math/s_casinhl.c: Removed.
4580         * math/s_csin.c: Removed.
4581         * math/s_csinf.c: Removed.
4582         * math/s_csinl.c: Removed.
4583         * math/s_csinh.c: Removed.
4584         * math/s_csinhf.c: Removed.
4585         * math/s_csinhl.c: Removed.
4586         * math/k_casinh.c: Removed.
4587         * math/k_casinhf.c: Removed.
4588         * math/k_casinhl.c: Removed.
4589
4590         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
4591         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
4592         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
4593         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
4594
4595         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
4596         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
4597         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
4598         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
4599         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
4600         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
4601         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
4602         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
4603
4604         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
4605         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
4606         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
4607         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
4608
4609         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
4610         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
4611         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
4612         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
4613
4614 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4615
4616         * s_casin_template.c: Copy of s_casin.c.
4617         * s_casinh_template.c: Copy of s_casinh.c.
4618         * s_csin_template.c: Copy of s_csin.c.
4619         * s_csinh_template.c: Copy of s_csinh.c.
4620         * k_casinh_template.c: Copy of k_casinh.c.
4621
4622 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4623
4624         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
4625
4626 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4627
4628         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
4629         (mul_split) Remove, rename as mul_splitl, remove
4630         redundant float.h include, and include via mul_splitl.h
4631
4632         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4633         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4634         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4635         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
4636         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
4637
4638         * math/mul_splitl.h: New file.
4639
4640         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
4641         Move into mul_split.h, and remove redundant float.h include.
4642
4643         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
4644         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
4645         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4646         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
4647
4648         * math/mul_split.h: New file.
4649
4650 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4651
4652         * math/Makefile (libm-gen-calls): Move
4653         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
4654         (libm-calls): Remove above.
4655
4656         * math/s_cacos_template.c: Update using type-generic macros.
4657         * math/s_cacosh_template.c: Likewise.
4658         * math/s_ccos_template.c: Likewise.
4659         * math/s_ccosh_template.c: Likwise.
4660
4661         * math/s_cacosf.c: Removed.
4662         * math/s_cacos.c: Removed.
4663         * math/s_cacosl.c: Removed.
4664         * math/s_cacoshf.c: Removed.
4665         * math/s_cacosh.c: Removed.
4666         * math/s_cacoshl.c: Removed.
4667         * math/s_ccosf.c: Removed.
4668         * math/s_ccos.c: Removed.
4669         * math/s_ccosl.c: Removed.
4670         * math/s_ccoshf.c: Removed.
4671         * math/s_ccosh.c: Removed.
4672         * math/s_ccoshl.c: Removed.
4673
4674         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
4675         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
4676         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
4677         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
4678         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
4679         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
4680
4681         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
4682         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
4683         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
4684         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
4685
4686         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
4687         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
4688         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
4689         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
4690
4691 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4692
4693         * s_cacos_template.c: Copy of s_cacos.c.
4694         * s_cacosh_template.c: Copy of s_cacosh.c.
4695         * s_ccos_template.c: Copy of s_ccos.c.
4696         * s_ccosh_template.c: Copy of s_ccosh.c.
4697
4698 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4699
4700         * stdlib/tst-strtod-round-skeleton.c:
4701         Refactored from tst-strtod-round.c.
4702
4703         (L_): New macro to apply literal modifier.
4704         (FNPFX): New macro to select str or wcs prefix.
4705         (CHAR): New macro to choose wchar_t or char.
4706         (STRM): New macro to choose printf for tested character type.
4707
4708         (STRTO): New macro to choose appropriate string -> real function.
4709         (FNPFXS): Stringitized version of FNPFX.
4710         (STR): Support for above macro.
4711         (STRX): Likewise.
4712
4713         (TEST): Update with above macros.
4714         (test): Likewise.
4715         (GEN_ONE_TEST): Likewise.
4716         (test_in_one_mode): Likewise.
4717
4718         * stdlib/tst-strtod-round.c: New file.
4719         * wcsmbs/tst-wcstod-round.c: New file.
4720
4721         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
4722         (tst-wcstod-round): Add libm depencency for fesetround.
4723
4724 2016-08-19  Zack Weinberg  <zackw@panix.com>
4725
4726         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
4727
4728 2016-08-18  Torvald Riegel  <triegel@redhat.com>
4729
4730         [BZ #20477]
4731         * resolv/res_hconf.c (do_init): Use atomic access.
4732         * resolv/res_hconf.h: Add comments.
4733         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
4734         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
4735         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4736
4737 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
4738
4739         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
4740         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
4741         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
4742         Likewise.
4743
4744 2016-08-18  Florian Weimer  <fweimer@redhat.com>
4745
4746         [BZ #16907]
4747         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
4748         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
4749         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
4750         (__attribute__): Remove definition.
4751
4752 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4753
4754         * sysdeps/ieee754/ldbl-128/e_asinl.c:
4755         Remove unused sqrtl declaration.
4756
4757 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4758
4759         * math/Makefile: (gen-libm-templates.stmp): New rule.
4760         (libm-calls): Move carg conj cimag and cabs into ...
4761         (gen-libm-calls): New variable.
4762         (generated): Inform Make objects from gen-libm-calls
4763         may be generated.
4764
4765         * sysdeps/generic/math-type-macros.h: New file.
4766         * sysdeps/generic/math-type-macros-float.h: Likewise.
4767         * sysdeps/generic/math-type-macros-double.h: Likewise.
4768         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
4769         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
4770         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
4771
4772         * math/cabs.c: Refactor into
4773         * math/cabs_template.c: new file.
4774         * math/cabsf.c: Removed.
4775         * math/cabsl.c: Removed.
4776         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
4777         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
4778
4779         * math/carg.c: Refactor into
4780         * math/carg_template.c: new file.
4781         * math/cargf.c: Removed.
4782         * math/cargl.c: Removed.
4783         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
4784         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
4785
4786         * math/conj.c: Refactor into
4787         * math/conj_template.c: new file.
4788         * math/conjf.c: Removed.
4789         * math/conjl.c: Removed.
4790         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
4791         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
4792
4793         * math/cimag.c: Refactor into
4794         * math/cimag_template.c: new file.
4795         * math/cimagf.c: Removed.
4796         * math/cimagl.c: Removed.
4797         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
4798         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
4799
4800         * math/cimag.c: Refactor into
4801         * math/cimag_template.c: new file.
4802         * math/cimagf.c: Removed.
4803         * math/cimagl.c: Removed.
4804         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
4805         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
4806
4807 2016-08-17  Florian Weimer  <fweimer@redhat.com>
4808
4809         Reduce time to expected nptl/tst-once5 failure.
4810         * nptl/tst-once5.cc (TIMEOUT): Define.
4811
4812 2016-08-17  Florian Weimer  <fweimer@redhat.com>
4813
4814         [BZ #20452]
4815         Avoid additional copies of objects in libc.a in static libraries.
4816         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
4817         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
4818         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
4819         rt-sysdep.
4820         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
4821         Add nptl-sysdep.
4822         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
4823         Add ptw-sysdep.
4824         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
4825         rt-sysdep.
4826         * sysdeps/unix/sysv/linux/alpha/Makefile
4827         (libpthread-shared-only-routines): Add ptw-sysdep,
4828         ptw-sigprocmask, ptw-rt_sigaction.
4829         * sysdeps/unix/sysv/linux/ia64/Makefile
4830         (librt-shared-only-routines): Add rt-sysdep.
4831         * sysdeps/unix/sysv/linux/i386/Makefile
4832         (libpthread-shared-only-routines): Add libc-do-syscall.
4833         * sysdeps/unix/sysv/linux/microblaze/Makefile
4834         (libpthread-shared-only-routines): Add sysdep.
4835         * sysdeps/unix/sysv/linux/powerpc/Makefile
4836         (librt-shared-only-routines): Add rt-sysdep.
4837         (libpthread-shared-only-routines): Add sysdep.
4838         * sysdeps/unix/sysv/linux/s390/Makefile
4839         (librt-shared-only-routines): Add rt-sysdep.
4840         * sysdeps/unix/sysv/linux/sparc/Makefile
4841         (librt-shared-only-routines): Add rt-sysdep.
4842         (libpthread-shared-only-routines): Add sysdep.
4843         * sysdeps/unix/sysv/linux/tile/Makefile
4844         (libpthread-shared-only-routines): Likewise.
4845
4846 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
4847
4848         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
4849         Mask implicit bit out of unpacked value.
4850         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
4851         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
4852         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
4853
4854         * sysdeps/sparc/fpu/fesetexcept.c: New file.
4855
4856         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
4857
4858         * sysdeps/s390/fpu/fesetexcept.c: New file.
4859
4860         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
4861         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
4862         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
4863
4864         * sysdeps/mips/fpu/fesetexcept.c: New file.
4865
4866         * sysdeps/m68k/fpu/fesetexcept.c: New file.
4867
4868         * sysdeps/ia64/fpu/fesetexcept.c: New file.
4869
4870         * sysdeps/hppa/fpu/fesetexcept.c: New file.
4871
4872         * sysdeps/arm/fesetexcept.c: New file.
4873
4874         * sysdeps/alpha/fpu/fesetexcept.c: New file.
4875
4876         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
4877
4878         * math/fesetexcept.c: New file.
4879         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
4880         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
4881         * math/fenv.h: Define
4882         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
4883         <bits/libc-header-start.h> instead of including <features.h>.
4884         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
4885         declaration.
4886         * manual/arith.texi (fesetexcept): Document function.
4887         * math/Versions (fesetexcept): New libm symbol at version
4888         GLIBC_2.25.
4889         * math/Makefile (libm-support): Add fesetexcept.
4890         (tests): Add test-fesetexcept and test-fesetexcept-traps.
4891         * math/test-fesetexcept.c: New file.
4892         * math/test-fesetexcept-traps.c: Likewise.
4893         * sysdeps/nacl/libm.abilist: Update.
4894         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4895         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4896         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4897         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4898         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4899         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4900         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4901         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4902         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4903         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4904         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4905         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4907         Likewise.
4908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4909         Likewise.
4910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4911         Likewise.
4912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4913         Likewise.
4914         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4915         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4916         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4917         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4918         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4919         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4920         Likewise.
4921         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4922         Likewise.
4923         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4924         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4925         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4926
4927 2016-08-16  Florian Weimer  <fweimer@redhat.com>
4928
4929         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
4930         New.
4931         (do_test): Apply default_stack_size_in_mb if not set.
4932         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
4933
4934 2016-08-15  Andreas Schwab  <schwab@suse.de>
4935
4936         [BZ #20435]
4937         CVE-2016-6323
4938         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
4939         as .cantunwind.
4940
4941 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
4942
4943         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
4944         comment from fraiseexcpt.c.
4945
4946         * math/test-fexcept.c (feraiseexcept_exact): New function.
4947         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
4948         (test_except): Likewise.
4949
4950 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
4951
4952         [BZ #20455]
4953         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
4954         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
4955         to be restored.
4956
4957         * math/test-fexcept-traps.c: New file.
4958         * math/test-fexcept.c: Likewise.
4959         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
4960         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
4961         macro.
4962         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
4963         (EXCEPTION_SET_FORCES_TRAP): Likewise.
4964
4965 2016-08-09  Torvald Riegel  <triegel@redhat.com>
4966
4967         * include/atomic.h (atomic_fetch_and_relaxed,
4968         atomic_fetch_and_release, atomic_fetch_or_release,
4969         atomic_fetch_xor_release): New.
4970
4971 2016-08-06  Christian Seiler  <christian@iwakd.de>
4972
4973         [BZ #20444]
4974         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
4975         MACH_PORT_NULL.
4976
4977 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
4978
4979         * math/s_fdim.c: Avoid alias renamed.
4980         * math/s_fdimf.c: Likewise.
4981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4982         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
4983         Add s_fdimf-vis3, s_fdim-vis3.
4984         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
4985         (CFLAGS-s_fdim-vis3.c): Likewise.
4986         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
4987         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
4988
4989 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
4990
4991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4992         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
4993         Remove s_fdimf-vis3, s_fdim-vis3.
4994         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
4995         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
4996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
4997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
4998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
4999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
5000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
5001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
5002         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
5003         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
5004
5005 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5006
5007         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
5008         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
5009         -Wa,-Av9a -mvis.
5010
5011 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5012
5013         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
5014         LIT() to individual constants in simple expressions
5015         after splitting on spaces.
5016         (_apply_lit): Rename replaced version, and use it to
5017         apply to what appears to be a token.
5018
5019         * math/libm-test.inc: Fix many, many issues with
5020         spacing.
5021
5022 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
5023
5024         * math/math.h: Move comment about <bits/mathdef.h> definitions
5025         above inclusion of <bits/mathdef.h>.  Do not mention
5026         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
5027
5028 2016-08-05  Torvald Riegel  <triegel@redhat.com>
5029
5030         * include/atomic.h (atomic_exchange_relaxed): New.
5031
5032 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
5033
5034         * math/e_scalb.c: Do not include <fenv.h>.
5035         (invalid_fn): Do calculation resulting in NaN instead of raising
5036         FE_INVALID and returning a NaN explicitly.
5037         * math/e_scalbf.c: Do not include <fenv.h>.
5038         (invalid_fn): Do calculation resulting in NaN instead of raising
5039         FE_INVALID and returning a NaN explicitly.
5040         * math/e_scalbl.c: Do not include <fenv.h>.
5041         (invalid_fn): Do calculation resulting in NaN instead of raising
5042         FE_INVALID and returning a NaN explicitly.
5043
5044 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
5045
5046         * po/de.po: Updated from Translation Project.
5047         * po/fi.po: Likewise.
5048         * po/sv.po: Likewise.
5049
5050 2016-08-04  Florian Weimer  <fweimer@redhat.com>
5051
5052         [BZ #20452]
5053         Use sysdep.o from libc.a in static libraries.
5054         * sysdeps/unix/sysv/linux/i386/Makefile
5055         (libpthread-shared-only-routines): Add sysdep.
5056         (librt-shared-only-routines): Likewise.
5057
5058 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5059
5060         * math/tgmath.h (nextdown): Define if
5061         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
5062         (nextup): Likewise.
5063
5064         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
5065         macro.
5066         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5067         Document.
5068         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5069         Document macro.
5070         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
5071         (exp10f): Likewise.
5072         (exp10l): Likewise.
5073         * math/bits/mathcalls.h (exp10): Declare if
5074         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5075
5076         * manual/arith.texi (nextup): Fix typo in last change.
5077
5078 2016-08-03  Zack Weinberg  <zackw@panix.com>
5079
5080         [BZ #19239]
5081         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
5082         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
5083         define major, minor, and makedev to issue deprecation warnings on use.
5084         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
5085         previously-activated deprecation warnings for these macros and prevent
5086         subsequent inclusions of this header from having any effect.
5087         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
5088         including <sys/sysmacros.h>, and undefine it again afterward.
5089
5090 2016-08-03  Zack Weinberg  <zackw@panix.com>
5091
5092         * sysdeps/generic/sys/sysmacros.h: Delete file.
5093         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
5094         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
5095         * bits/sysmacros.h: ... here; this encoding is now the generic
5096         encoding.  Now defines only the following macros:
5097         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
5098         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
5099         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
5100
5101         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
5102         bits/sysmacros.h and the above new macros to generate the
5103         public implementations of major, minor, and makedev.
5104         * misc/tst-makedev.c: New test.
5105         * include/sys/sysmacros.h: New wrapper.
5106
5107         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
5108         (routines): Add makedev.
5109         (tests): Add tst-makedev.
5110         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
5111         gnu_dev_makedev.
5112         * posix/Makefile (headers): Remove sys/sysmacros.h.
5113         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
5114
5115         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
5116         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
5117         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
5118         * sysdeps/unix/sysv/linux/alpha/libc.abilist
5119         * sysdeps/unix/sysv/linux/arm/libc.abilist
5120         * sysdeps/unix/sysv/linux/hppa/libc.abilist
5121         * sysdeps/unix/sysv/linux/i386/libc.abilist
5122         * sysdeps/unix/sysv/linux/ia64/libc.abilist
5123         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
5124         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
5125         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
5126         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5127         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5128         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5129         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5130         * sysdeps/unix/sysv/linux/nios2/libc.abilist
5131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5135         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
5136         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
5137         * sysdeps/unix/sysv/linux/sh/libc.abilist
5138         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
5139         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
5140         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
5141         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
5142         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
5143         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
5144         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
5145         Add GLIBC_2.25.
5146
5147         * include/features.h (__glibc_clang_prereq): New macro.
5148         * misc/sys/cdefs.h (__glibc_clang_has_extension)
5149         (__attribute_deprecated_msg__): New macros.
5150
5151 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5152
5153         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
5154         macro.
5155         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
5156         * manual/arith.texi (issignaling): Document as ISO from TS
5157         18661-1:2014.
5158         (nextup): Likewise.
5159         (nextupf): Likewise.
5160         (nextupl): Likewise.
5161         (nextdown): Likewise.
5162         (nextdownf): Likewise.
5163         (nextdownl): Likewise.
5164         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
5165         macro.
5166         * math/math.h: Define
5167         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5168         <bits/libc-header-start.h> instead of including <features.h>.
5169         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
5170         [__USE_GNU].
5171         * math/bits/mathcalls.h (nextdown): Declare if
5172         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
5173         (nextup): Likewise.
5174         (__issignaling): Likewise.
5175
5176 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5177
5178         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
5179         check, and remove __glibc_likely hint
5180         from FP_INFINITE check.
5181         * s_csinhf.c (__csinhf): Likewise.
5182
5183         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
5184         hint from FP_INFINITE check.
5185         * s_csinhl.c (__csinhl): Likewise.
5186
5187 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5188
5189         * math/Makefile (libm-calls): Insert F placeholder into
5190         object names.  Move w_lgamma_compat* routines into
5191         (libm-compat-calls): New variable.
5192         (libm-compat-calls-ldouble-yes): New variable.
5193         (calls): Insert F placeholder.
5194         (generated): Redefine using new type-foreach macro call.
5195         (routines): Likewise.
5196
5197         (types): New variable to hold a list of symbolic names
5198         for each type supported by the target machine.
5199         (libm-routines): Redefine using new types variable.
5200         (type-foreach): macro to replace fooF with the
5201         appropriately suffixed foo for each types.
5202
5203         (type-ldouble-suffix): New variable.
5204         (type-ldouble-routines): Likewise.
5205         (type-ldouble-yes): Likewise.
5206         (type-double-suffix): Likewise.
5207         (type-double-routines): Likewise.
5208         (type-float-suffix): Likewise.
5209         (type-float-routines): Likewise.
5210
5211         (dbl-only-routines): Remove.
5212         (long-c-yes): Likewise.
5213         (long-m-routines): Likewise.
5214         (long-m-support): Likewise.
5215         (long-m-yes): Likewise.
5216         (test-longdouble-yes): Likewise.
5217
5218         (test-float.o): Simplify by increasing the scope of the
5219         recipe which adds libm-test.stmp to the vector types.
5220         (test-ifloat.o): Likewise.
5221         (test-float-finite.o): Likewise.
5222         (test-double.o): Likewise
5223         (test-idouble.o): Likewise.
5224         (test-double-finite.o): Likewise.
5225         (test-ldouble.o): Likewise
5226         (test-ildoubl.o): Likewise.
5227         (test-ldouble-finite.o): Likewise.
5228
5229         (libm-tests): Redefine type tests using foreach and the
5230         list of types in types.
5231
5232         (CPPFLAGS-test-ildoubl.c): Rename to
5233         (CPPFLAGS-test-ildouble.c): New variable
5234
5235         * math/test-ildoubl.c: Rename to
5236         * math/test-ildouble.c: New file.
5237
5238 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5239
5240         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
5241         Use fabsl instead of fabs.
5242         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
5243         Likewise.
5244         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
5245         Add long double suffix to constant to ensure proper
5246         promotion to long double.
5247
5248 2016-08-03  Tom Tromey  <tom@tromey.com>
5249
5250         [BZ #20311]
5251         * nptl_db/Makefile (headers): Add proc_service.h.
5252         * nptl_db/proc_service.h: Add include guard.  Use
5253         __BEGIN/__END_DECLS.
5254         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
5255         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
5256         arguments.
5257
5258
5259 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5260
5261         [BZ #17730]
5262         Avoid using memalign for TCB allocations.
5263         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
5264         (_dl_allocate_tls_storage): Use malloc and manual alignment.
5265         Avoid alignment gap in the TLS_DTV_AT_TP case.
5266         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
5267         determine the pointer to free.
5268         * nptl/tst-tls3-malloc.c: New test.
5269         * nptl/Makefile (tests): Add it.
5270         (tst-tls3-malloc): Link with libdl, libpthread.
5271         (LDFLAGS-tst-tls3-malloc): Set.
5272         (tst-tls3-malloc.out): Depend on DSO used in test.
5273
5274 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5275
5276         [BZ #17730]
5277         Avoid using memalign for TLS allocations.
5278         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
5279         is_static member with to_free member.
5280         (union dtv): Use struct dtv_pointer.
5281         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
5282         dtv_pointer instead of is_static.
5283         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5284         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
5285         instead of val.
5286         (allocate_dtv_entry): New function.
5287         (allocate_and_init): Return struct dtv_pointer.  Call
5288         allocate_dtv_entry instead of __libc_memalign.
5289         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
5290         instead of val.
5291         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
5292         instead of is_static.  Adjust call to allocate_and_init.
5293         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
5294         struct dtv_pointer instead of val.
5295
5296 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5297
5298         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
5299         (MALLOC_ALIGN_MASK): Move ...
5300         * malloc/malloc-internal.h: ... to here.
5301         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
5302
5303 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5304
5305         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
5306         (UDP_ENCAP_GTP1U): Likewise.
5307
5308         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
5309         (PF_MAX): Update value.
5310         (AF_QIPCRTR): New macro.
5311
5312 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5313
5314         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
5315         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5316         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5317         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
5318         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5319         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5320         s_truncf-vis3, s_trunc-vis3.
5321         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5322         (CFLAGS-s_ceil-vis3.c): Likewise.
5323         (CFLAGS-s_floorf-vis3.c): Likewise.
5324         (CFLAGS-s_floor-vis3.c): Likewise.
5325         (CFLAGS-s_truncf-vis3.c): Likewise.
5326         (CFLAGS-s_trunc-vis3.c): Likewise.
5327         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
5328         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
5329         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
5330         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
5331         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
5332         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
5333         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
5334         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
5335         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
5336         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
5337         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
5338         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
5339
5340 2016-08-02  David S. Miller  <davem@davemloft.net>
5341
5342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
5343         (__nearbyint_vis3): Don't check for sNaN before float register is
5344         loaded with the incoming argument.
5345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
5346         (__nearbyintf_vis3): Likewise.
5347         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
5348         Likewise.
5349         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
5350         Likewise.
5351
5352         * string/test-strncmp.c (do_test_limit): Make sure the test data
5353         stream is aligned as required for the type "CHAR".
5354         (do_test): Likewise.
5355
5356 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5357
5358         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
5359         by beq instructions jumping to the end of the function.
5360         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
5361         clobber list. Use "i" constraint instead of "X".
5362         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
5363         of "X".
5364
5365 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
5366
5367         * bits/libc-header-start.h: New file.
5368         * Makefile (headers): Add bits/libc-header-start.h.
5369         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
5370         (__GLIBC_USE): New macro.
5371         * libio/stdio.h: Define
5372         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5373         <bits/libc-header-start.h> instead of including <features.h>.
5374         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
5375         (open_memstream): Likewise.
5376         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
5377         (__asprintf): Likewise.
5378         (asprintf): Likewise.
5379         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
5380         (getdelim): Likewise.
5381         (getline): Likewise.
5382         * string/string.h: Define
5383         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5384         <bits/libc-header-start.h> instead of including <features.h>.
5385         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
5386         (strndup): Likewise.
5387         * wcsmbs/wchar.h: Define
5388         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5389         <bits/libc-header-start.h> instead of including <features.h>.
5390         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
5391         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
5392
5393 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5394
5395         Support linking against compatibility symbols, for use in tests.
5396         * include/libc-symbols.h (symbol_version_reference): New macro.
5397         (symbol_version): Use it.
5398         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
5399         (compat_symbol): Use compat_symbol_reference.
5400         (compat_symbol_1, compat_symbol_2): Remove.
5401         (compat_symbol_reference, compat_symbol_reference_1)
5402         (compat_symbol_reference_2): New macro.  Use
5403         symbol_version_reference.
5404
5405 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5406
5407         [BZ #19469]
5408         * malloc/Makefile (CPPFLAGS): Compile tests with
5409         -DTEST_NO_MALLOPT.
5410         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
5411
5412 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
5413
5414         [BZ #20033]
5415         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
5416         finite version.
5417         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
5418         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
5419         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
5420         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
5421         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
5422         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
5423         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
5424         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
5425         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
5426         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
5427         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
5428         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
5429         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
5430         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
5431         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
5432         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
5433         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
5434         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
5435         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
5436         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
5437         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
5438         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
5439         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
5440         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
5441         in zero power.
5442
5443 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5444
5445         [BZ #20370]
5446         * malloc/arena.c (get_free_list): Update comment.  Assert that
5447         arenas on the free list have no attached threads.
5448         (remove_from_free_list): New function.
5449         (reused_arena): Call it.
5450
5451 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
5452
5453         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
5454         when it is a NaN.
5455         [_IEEE_FP_INEXACT] Remove.
5456         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
5457         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
5458         when it is a NaN.
5459         [_IEEE_FP_INEXACT] Remove.
5460         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
5461         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
5462         when it is a NaN.
5463         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
5464         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
5465         when its absolute value is greater than 0x1.0p52.
5466         [_IEEE_FP_INEXACT] Remove.
5467         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
5468         when its absolute value is greater than 0x1.0p23.
5469         [_IEEE_FP_INEXACT] Remove.
5470
5471 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
5472
5473         * version.h (RELEASE): Set to "development"
5474         (VERSION): Set to 2.24.90.
5475         * NEWS: Add 2.25 section.
5476
5477         * version.h (RELEASE): Set to "stable"
5478         (VERSION): Set to 2.24.
5479         * include/features.h (__GLIBC_MINOR__): Set to 24.
5480
5481         * NEWS: Add 2.24 fixed bugs.
5482         * po/libc.pot: Regenerate.
5483
5484 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
5485
5486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5487         [$(subdir) = math] (libm-sysdep_routines): Remove.
5488         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5489         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5490         s_truncf-vis3, s_trunc-vis3.
5491         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
5493         file.
5494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
5495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
5496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
5500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
5501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
5503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
5504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
5505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
5506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
5507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
5508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
5509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
5513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
5514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
5515         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
5516         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
5517         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5518         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5519         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5520         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5521         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
5522         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
5523         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5524         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
5525         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
5526         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5527         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
5528         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
5529         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
5530         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
5531         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5532         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5533         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
5534         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
5535         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
5536         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
5537
5538 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
5539
5540         [BZ #20384]
5541         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
5542         test-double-libmvec-sincos-avx-main.o,
5543         test-double-libmvec-sincos-avx2-main.o,
5544         test-double-libmvec-sincos-main.o,
5545         test-float-libmvec-sincosf-avx-main.o,
5546         test-float-libmvec-sincosf-avx2-main.o and
5547         test-float-libmvec-sincosf-main.o.
5548         test-float-libmvec-sincosf-avx512-main.o.
5549         ($(objpfx)test-double-libmvec-sincos): Also link with
5550         $(objpfx)test-double-libmvec-sincos-main.o.
5551         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
5552         $(objpfx)test-double-libmvec-sincos-avx-main.o.
5553         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
5554         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
5555         ($(objpfx)test-float-libmvec-sincosf): Also link with
5556         $(objpfx)test-float-libmvec-sincosf-main.o.
5557         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
5558         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
5559         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
5560         test-double-libmvec-sincos-avx512-main.o and
5561         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
5562         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
5563         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
5564         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
5565         (CFLAGS-test-double-libmvec-sincos.c): Removed.
5566         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
5567         (CFLAGS-test-double-libmvec-sincos-main.c): New.
5568         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
5569         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
5570         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
5571         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
5572         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
5573         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
5574         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
5575         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
5576         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
5577         -DREQUIRE_AVX2.
5578         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
5579         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
5580         -DREQUIRE_AVX512F.
5581         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
5582         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
5583         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
5584         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
5585         file.
5586         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
5587         Likewise.
5588         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
5589         Likewise.
5590         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
5591         Likewise.
5592         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
5593         Likewise.
5594         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
5595         Likewise.
5596         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
5597         Likewise.
5598         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
5599         Likewise.
5600
5601 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
5602
5603         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
5604
5605 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
5606
5607         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
5608         and typo in a comment about AT_HWCAP entry.
5609
5610 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5611
5612         * sysdeps/aarch64/libm-test-ulps: Updated.
5613
5614 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
5615
5616         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
5617         of r13 as it is not restored in mvcle case.
5618
5619 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
5620
5621         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
5622         Rename "ret" to "__ret".
5623         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
5624         inline_syscall5, inline_syscall6): Likewise.
5625
5626 2016-07-19   Will Newton  <will.newton@gmail.com>
5627
5628         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
5629         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
5630         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
5631         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
5632         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
5633
5634 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
5635
5636         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
5637         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
5638         -mfpmath=387 with $(rtld-CFLAGS).
5639         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
5640         $(rtld-CFLAGS).
5641
5642 2016-07-18   Ross Burton  <ross.burton@intel.com>
5643              Khem Raj  <raj.khem@gmail.com>
5644
5645         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
5646         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
5647         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
5648         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
5649         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
5650         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
5651         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
5652         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
5653         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
5654         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
5655         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
5656         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
5657         R_METAG_TLS_DTPOFF): New.
5658
5659 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5660             Matt Clay  <mclay@lycos.com>
5661
5662         [BZ #20357]
5663         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
5664         to call __mpsin/__mpcos and to negate values.
5665         * math/auto-libm-test-in: Add test.
5666         * math/auto-libm-test-out: Regenerate.
5667
5668 2016-07-18  Zack Weinberg  <zackw@panix.com>
5669
5670         * grp/Makefile: Don't install the internal header grp-merge.h.
5671
5672 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5673
5674         * sysdeps/aarch64/libm-test-ulps: Regenerated.
5675
5676 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5677
5678         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
5679
5680 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5681
5682         [BZ #15368]
5683         * sysdeps/unix/sysv/linux/nptl-signals.h
5684         (__nptl_clear_internal_signals): New function.
5685         (__libc_signal_block_all): Likewise.
5686         (__libc_signal_block_app): Likewise.
5687         (__libc_signal_restore_set): Likewise.
5688         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
5689         implementation.
5690         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
5691         the cached pid/tid value in pthread structure.
5692
5693 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
5694
5695         [BZ #20347]
5696         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
5697
5698 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5699
5700         [BZ #20348]
5701         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
5702         preadv64, pwrite64 and pwritev64.
5703
5704 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5705
5706         [BZ #20350]
5707         * posix/tst-preadwrite.c: Renamed to ...
5708         * posix/tst-preadwrite-common.c: This.
5709         (PREAD): Removed.
5710         (PWRITE): Likewise.
5711         (STRINGIFY): Likewise.
5712         (STRINGIFY2): Likewise.
5713         (do_prepare): Make it static and remove function arguments.
5714         (do_test): Likewise.
5715         (PREPARE): Updated.
5716         (TEST_FUNCTION): New.
5717         (name): Make it static.
5718         (fd): Likewise.
5719         (do_prepare): Use create_temp_file.
5720         (do_test): Renamed to ...
5721         (do_test_with_offset): This.  Make it static and accept offset.
5722         Properly check return value of PWRITE and PREAD.  Return bytes
5723         read.  Don't close fd nor unlink name.
5724         * posix/tst-preadwrite.c: Rewrite.
5725         * posix/tst-preadwrite64.c: Likewise.
5726
5727 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5728
5729         [BZ #20309]
5730         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
5731         -mtls-dialect=gnu2 works.
5732         * configure: Regenerated.
5733         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
5734         (tests): Add tst-gnu2-tls1.
5735         (modules-names): Add tst-gnu2-tls1mod.
5736         ($(objpfx)tst-gnu2-tls1): New.
5737         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
5738         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
5739         * elf/tst-gnu2-tls1.c: New file.
5740         * elf/tst-gnu2-tls1mod.c: Likewise.
5741         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
5742         bytes for push in the PLT entry to align the stack.
5743
5744 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
5745
5746         [BZ #20349]
5747         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
5748
5749 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5750
5751         [BZ #18707]
5752         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
5753         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
5754
5755 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5756
5757         * sysdeps/unix/sysv/linux/sysdep.h
5758         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
5759         guards.
5760         * misc/tst-preadvwritev-common.c: New file.
5761         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
5762         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
5763         a check for files larger than 2GB.
5764
5765         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5766         (__ASSUME_OFF_DIFF_OFF64): Remove define.
5767         * sysdeps/unix/sysv/linux/pread.c
5768         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
5769         __OFF_T_MATCHES_OFF64_T.
5770         * sysdeps/unix/sysv/linux/pread64.c
5771         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
5772         * sysdeps/unix/sysv/linux/preadv.c
5773         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
5774         * sysdeps/unix/sysv/linux/preadv64.c
5775         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
5776         * sysdeps/unix/sysv/linux/pwrite.c
5777         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
5778         * sysdeps/unix/sysv/linux/pwrite64.c
5779         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
5780         * sysdeps/unix/sysv/linux/pwritev.c
5781         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
5782         * sysdeps/unix/sysv/linux/pwritev64.c
5783         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
5784
5785 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
5786
5787         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5788         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
5789
5790 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
5791
5792         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
5793
5794 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
5795
5796         [BZ #20240]
5797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
5798         (CFLAGS-s_modf-ppc32.c): New variable.
5799         (CFLAGS-s_modff-ppc32.c): Likewise.
5800         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
5801         (CFLAGS-s_modf-ppc64.c): Likewise.
5802         (CFLAGS-s_modff-ppc64.c): Likewise.
5803
5804 2016-07-07  Andreas Schwab  <schwab@suse.de>
5805
5806         [BZ #20263]
5807         * nptl/tst-robust10.c: New test.
5808         * nptl/Makefile (tests): Add tst-robust10.
5809
5810 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
5811
5812         [BZ #20263]
5813         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
5814
5815 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
5816
5817         * sysdeps/s390/linkmap.h (struct link_map_machine):
5818         Remove member gotplt and add member jmprel.
5819         * sysdeps/s390/s390-32/dl-machine.h
5820         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
5821         instead of gotplt with &got[3].
5822         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
5823         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5824
5825 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
5826
5827         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
5828
5829 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5830
5831         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
5832         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
5833         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
5834         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
5835         * libio/vtables.c (_IO_vtable_check)
5836         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
5837         * libio/libioP.h (IO_set_accept_foreign_vtables)
5838         [!PTR_MANGLE]: Do not call PTR_MANGLE.
5839
5840 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5841
5842         [BZ #20314]
5843         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
5844         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
5845         $(common-objpfx)cmath.
5846         ($(common-objpfx)cstdlib): New target.
5847         ($(common-objpfx)cmath): Likewise.
5848
5849 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
5850
5851         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
5852
5853 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5854
5855         [BZ #20327]
5856         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
5857         are not part of the string.
5858
5859 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5860
5861         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
5862         * nptl/tst-cancel4-common.h (fifoname): New variable.
5863         (fifofd): Likewise.
5864         (cl_fifo): New function.
5865         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
5866         SIGINT.
5867         (tf_open): Add early cancel test.
5868
5869 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5870
5871         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
5872
5873 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
5874
5875         * sysdeps/generic/ldsodefs.h
5876         (dl_symbol_visibility_binds_local_p): New inline function.
5877         * elf/dl-addr.c (determine_info): Treat hidden and internal
5878         symbols as local.
5879         * elf/dl-lookup.c (do_lookup_x): Likewise.
5880         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
5881
5882 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
5883
5884         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
5885         invalid exception for a sNaN input.
5886         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
5887         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
5888         (__nearbyint_vis3): Likewise
5889         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
5890         (__nearbyintf_vis3): Likewise
5891         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
5892         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
5893         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
5894         Likewise.
5895         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
5896         Likewise.
5897
5898 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
5899
5900         [BZ #20139]
5901         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
5902         (HAVE_AVX512DQ_ASM_SUPPORT): This.
5903         * sysdeps/x86_64/configure.ac: Require assembler from binutils
5904         2.24 or above.
5905         (HAVE_AVX512_ASM_SUPPORT): Removed.
5906         (HAVE_AVX512DQ_ASM_SUPPORT): New.
5907         * sysdeps/x86_64/configure: Regenerated.
5908         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
5909         check unconditional.
5910         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
5911         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
5912         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5913         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
5914         Likewise.
5915         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
5916         Likewise.
5917         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
5918         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
5919         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5920         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5921         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
5922         Likewise.
5923         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
5924         Likewise.
5925         * sysdeps/x86_64/multiarch/memset.S: Likewise.
5926         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5927         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
5928         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
5929         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
5930         Likewise.
5931         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
5932         Likewise.
5933         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
5934         Likewise.
5935         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
5936         Likewise.
5937         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
5938         Likewise.
5939         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
5940         Likewise.
5941         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
5942         Likewise.
5943         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
5944         Likewise.
5945         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
5946         Likewise.
5947         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
5948         Likewise.
5949         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
5950         Likewise.
5951
5952 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
5953
5954         [BZ #20024]
5955         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
5956         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
5957         of this implementation of vector function.
5958         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
5959         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
5960         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
5961         Likewise.
5962         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
5963         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
5964         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
5965         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
5966         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
5967         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
5968         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
5969         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
5970         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
5971         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
5972         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
5973         for testing vector sincos with fixed ABI.
5974         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
5975         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
5976         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
5977         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
5978         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
5979         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
5980         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
5981         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
5982         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
5983         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
5984         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
5985         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
5986         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
5987         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
5988         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
5989         * sysdeps/x86_64/fpu/Makefile: Added new tests.
5990
5991 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
5992
5993         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
5994
5995 2016-06-30  Anton Blanchard  <anton@samba.org>
5996
5997         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
5998         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
5999         s_sinf-ppc64.
6000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
6001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
6002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
6003         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
6004
6005 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6006
6007         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6008         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6009         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
6010         e_expf-ppc64.
6011         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
6012         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
6013         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
6014         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
6015
6016 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
6017
6018         [BZ #20277]
6019         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
6020         when SHARED is defined.
6021
6022 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6023
6024         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
6025         (index_arch_Prefer_ERMS): Likewise.
6026         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
6027         __memcpy_erms for Prefer_ERMS.
6028         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6029         (__memmove_erms): Enabled for libc.a.
6030         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
6031         __memmove_erms or Prefer_ERMS.
6032         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
6033         __mempcpy_erms for Prefer_ERMS.
6034         * sysdeps/x86_64/multiarch/memset.S (memset): Return
6035         __memset_erms for Prefer_ERMS.
6036
6037 2016-06-30  Andreas Schwab  <schwab@suse.de>
6038
6039         [BZ #20262]
6040         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
6041         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
6042         of memory.
6043
6044 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6045
6046         [BZ #18645]
6047         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
6048         (test-extras): Add tst-cleanupx4aux.
6049         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
6050         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
6051         tst-cleanupx4aux.o.
6052         * nptl/tst-cleanupx4aux.c: New file.
6053
6054 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6055
6056         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6057
6058 2016-06-29  Andreas Schwab  <schwab@suse.de>
6059
6060         [BZ #20260]
6061         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
6062         address before the beginning of the string as an integer to avoid
6063         array-bounds warning.
6064
6065 2016-06-28  Richard Henderson  <rth@redhat.com>
6066
6067         * elf/elf.h (EM_BPF): New.
6068         (EM_NUM): Update.
6069         (R_BPF_NONE, R_BPF_MAP_FD): New.
6070
6071         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
6072         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
6073         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
6074         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
6075         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
6076         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
6077         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
6078         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
6079         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
6080         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
6081         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
6082         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
6083         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
6084         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
6085         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
6086         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
6087         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
6088         (EM_NUM): Update.
6089
6090 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
6091
6092         [BZ #18960]
6093         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
6094         Set _nl_current_LC_CATEGORY_used to two instead of one.
6095
6096 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
6097
6098         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
6099         (do_test): ... this.
6100         (TEST_FUNCTION): New macro.
6101          Include test-skeleton.c.
6102         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
6103         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
6104
6105 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
6106
6107         [BZ #15479]
6108         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
6109         floating-point environment rather than just control word.
6110         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
6111         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
6112         floating-point environment, with "invalid" exceptions merged in,
6113         rather than just control word.
6114         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
6115         * math/libm-test.inc (trunc_test_data): Do not allow spurious
6116         "inexact" exceptions.
6117
6118         [BZ #15479]
6119         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
6120         floating-point environment rather than just control word.
6121         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
6122         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
6123         floating-point environment, with "invalid" exceptions merged in,
6124         rather than just control word.
6125         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
6126         * math/libm-test.inc (floor_test_data): Do not allow spurious
6127         "inexact" exceptions.
6128
6129         [BZ #15479]
6130         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
6131         floating-point environment rather than just control word.
6132         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
6133         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
6134         floating-point environment, with "invalid" exceptions merged in,
6135         rather than just control word.
6136         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
6137         * math/libm-test.inc (ceil_test_data): Do not allow spurious
6138         "inexact" exceptions.
6139
6140 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
6141
6142         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
6143         __libc_vfork.
6144         (__vfork) [IS_IN (libc)]: Remove alias.
6145         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
6146         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6147         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6148
6149 2016-06-24  Torvald Riegel  <triegel@redhat.com>
6150
6151         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
6152         of atomic_compare_and_exchange_bool_rel.
6153         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6154         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
6155         catomic_compare_and_exchange_bool_rel): Remove.
6156         * sysdeps/aarch64/atomic-machine.h
6157         (atomic_compare_and_exchange_bool_rel): Likewise.
6158         * sysdeps/alpha/atomic-machine.h
6159         (atomic_compare_and_exchange_bool_rel): Likewise.
6160         * sysdeps/arm/atomic-machine.h
6161         (atomic_compare_and_exchange_bool_rel): Likewise.
6162         * sysdeps/mips/atomic-machine.h
6163         (atomic_compare_and_exchange_bool_rel): Likewise.
6164         * sysdeps/microblaze/atomic-machine.h
6165         ( __arch_compare_and_exchange_bool_8_rel,
6166         __arch_compare_and_exchange_bool_16_rel): Likewise.
6167         * sysdeps/powerpc/atomic-machine.h
6168         ( __arch_compare_and_exchange_bool_8_rel,
6169         __arch_compare_and_exchange_bool_16_rel): Likewise.
6170         * sysdeps/powerpc/powerpc32/atomic-machine.h
6171         ( __arch_compare_and_exchange_bool_32_rel,
6172         __arch_compare_and_exchange_bool_64_rel): Likewise.
6173         * sysdeps/powerpc/powerpc64/atomic-machine.h
6174         ( __arch_compare_and_exchange_bool_32_rel,
6175         __arch_compare_and_exchange_bool_64_rel): Likewise.
6176         * sysdeps/tile/atomic-machine.h
6177         (atomic_compare_and_exchange_bool_rel): Likewise.
6178
6179 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
6180
6181         [BZ #20296]
6182         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
6183         when either argument is a NaN.
6184         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
6185         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
6186
6187         * math/libm-test.inc (snan_value_ld): New macro.
6188         (isgreater_test_data): Add sNaN tests.
6189         (isgreaterequal_test_data): Likewise.
6190         (isless_test_data): Likewise.
6191         (islessequal_test_data): Likewise.
6192         (islessgreater_test_data): Likewise.
6193         (isunordered_test_data): Likewise.
6194         (nextafter_test_data): Likewise.
6195         (nexttoward_test_data): Likewise.
6196         (remainder_test_data): Likewise.
6197         (remquo_test_data): Likewise.
6198         (significand_test_data): Likewise.
6199         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
6200
6201 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6202
6203         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
6204         environment macros are defined.
6205         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
6206
6207 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6208
6209         [BZ #20191]
6210         Implement vtable verification in libio.
6211         * Makerules (shlib.lds): Place __libc_IO_vtables section.
6212         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
6213         * debug/vdprintf_chk.c (__vdprintf_chk): Call
6214         _IO_new_file_init_internal instead of _IO_file_init.
6215         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
6216         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
6217         * libio/Makefile (routines): Add vtables.
6218         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
6219         (_IO_init): Remove, not for internal use.
6220         (_IO_init_internal): Declare, internal replacement for _IO_init.
6221         (_IO_file_init): Remove, not for internal use.
6222         (_IO_new_file_init): Remove, not for internal use.
6223         (_IO_new_file_init_internal): Declare, internal replacement for
6224         _IO_new_file_init.
6225         (_IO_old_file_init): Remove, not for internal use.
6226         (_IO_old_file_init_internal): Declare, internal replacement for
6227         _IO_old_file_init.
6228         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
6229         internal use.
6230         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
6231         Declare.
6232         (libio_vtable): New macro.
6233         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
6234         functions.
6235         * libio/fileops.c (_IO_new_file_init_internal): Rename from
6236         _IO_new_file_init.
6237         (_IO_new_file_init): New externally visible wrapper which disables
6238         vtable verification.
6239         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
6240         Define as vtables.
6241         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
6242         (_IO_init): New externally visible wrapper which disables
6243         vtable verification.
6244         * libio/iofdopen.c (_IO_new_fdopen): Call
6245         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
6246         comment.
6247         * libio/iofopen.c (__fopen_internal): Call
6248         _IO_new_file_init_internal instead of _IO_file_init.
6249         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
6250         Define as vtables.
6251         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
6252         _IO_new_file_init_internal instead of _IO_file_init.
6253         * libio/iopopen.c (_IO_new_popen): Likewise.
6254         (_IO_proc_jumps): Define as vtable.
6255         * libio/iovdprintf.c (_IO_vdprintf): Call
6256         _IO_new_file_init_internal instead of _IO_file_init.
6257         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
6258         (__open_memstream): Call _IO_init_internal instead of _IO_init.
6259         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
6260         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
6261         _IO_old_file_init.
6262         (_IO_old_file_init): New externally visible wrapper which disables
6263         vtable verification.
6264         (_IO_old_file_jumps): Define as vtable.
6265         * libio/oldiofdopen.c (_IO_old_fdopen): Call
6266         _IO_old_file_init_internal instead of _IO_old_file_init.
6267         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6268         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6269         (_IO_old_proc_jumps): Define as vtable.
6270         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
6271         Define as vtables.
6272         * libio/vtables.c: New file.
6273         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
6274         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
6275         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
6276         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6277         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6278         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
6279         instead of _IO_init.
6280
6281 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6282
6283         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
6284
6285 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6286
6287         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
6288         potentially unused.
6289
6290 2016-06-22  Florian Weimer  <fweimer@redhat.com>
6291
6292         * test-skeleton.c (write_message): New function.
6293         * malloc/tst-mallocfork2.c (write_message): Remove.
6294         * debug/tst-longjmp_chk2.c (write_indented): New function.
6295         (write_message): Remove.
6296         (stackoverflow_handler): Call write_indented.
6297
6298 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
6299
6300         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
6301         "inexact" exceptions after fnstenv.
6302         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6303         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6304         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6305
6306 2015-06-22  Zack Weinberg  <zackw@panix.com>
6307
6308         * sysdeps/generic/bits/hwcap.h: Moved to ...
6309         * bits/hwcap.h: Here.
6310
6311 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
6312
6313         * sysdeps/aarch64/memcpy.S (memcpy):
6314         Further tuning for performance.
6315
6316 2016-06-21  Florian Weimer  <fweimer@redhat.com>
6317
6318         [BZ #20284]
6319         * malloc/arena.c (reused_arena): Do not return NULL if we start
6320         out with a non-corrupted arena.
6321
6322 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6323
6324         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
6325         * misc/tst-preadvwritev.c: New file.
6326         * misc/tst-preadvwritev64.c: Likewise.
6327         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
6328         usage.
6329         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
6330         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
6331         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
6332         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
6333
6334 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
6335
6336         [BZ #19654]
6337         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6338         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
6339         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
6340         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
6341         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
6342         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
6343         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
6344         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
6345         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
6346         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
6347         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
6348         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
6349         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
6350         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
6351         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
6352         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
6353         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
6354         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
6355         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
6356         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
6357         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
6358         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
6359         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
6360         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
6361         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
6362         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
6363
6364 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6365
6366         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
6367         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
6368
6369 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6370
6371         * sysdeps/aarch64/memcpy.S (memcpy):
6372         Rewrite of optimized memcpy and memmove.
6373         * sysdeps/aarch64/memmove.S (memmove): Remove
6374         memmove code (merged into memcpy.S).
6375
6376 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6377
6378         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
6379         * sysdeps/generic/dl-dtv.h: New file.
6380         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6381         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
6382         (dtv_t): Remove.
6383         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6384         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
6385         (dtv_t): Remove.
6386         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6387         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
6388         (dtv_t): Remove.
6389         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6390         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
6391         (dtv_t): Remove.
6392         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6393         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
6394         (dtv_t): Remove.
6395         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6396         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
6397         (dtv_t): Remove.
6398         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6399         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
6400         (dtv_t): Remove.
6401         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
6402         (dtv_t): Remove.
6403         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6404         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
6405         (dtv_t): Remove.
6406         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6407         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
6408         (dtv_t): Remove.
6409         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6410         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
6411         (dtv_t): Remove.
6412         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6413         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
6414         (dtv_t): Remove.
6415         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6416         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
6417         (dtv_t): Remove.
6418         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6419         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
6420         (dtv_t): Remove.
6421         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6422         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
6423         (dtv_t): Remove.
6424         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6425         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
6426         (dtv_t): Remove.
6427
6428 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6429
6430         Revert symbol poisoning of  __malloc_initialize_hook.
6431         * include/stdc-predef.h (__malloc_initialize_hook): Remove
6432         poisoning.
6433         * malloc/Makefile: Remove un-poisoning.
6434         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
6435         instead of old__malloc_initialize_hook.
6436         * malloc/malloc-hooks.h: Likewise.
6437         * malloc/malloc.c: Likewise.
6438         * malloc/mcheck-init.c: Likewise.
6439
6440 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
6441
6442         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
6443
6444 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
6445
6446         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
6447         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
6448         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6449         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6450
6451 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6452
6453         * NEWS: Mention addition of nextup and nextdown.
6454         * manual/arith.texi: Document nextup and nextdown.
6455         * manual/libm-err-tab.pl: Add nextup and nextdown.
6456         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
6457         * math/Versions (libm): Add GLIBC_2.24.
6458         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
6459         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
6460         Add new test.
6461         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
6462         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
6463         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
6464         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
6465         (nextup_test_data): Likewise.
6466         (nextdown_test_data): Likewise.
6467         * math/s_nextdown.c: New file.
6468         * math/s_nextdownf.c: Likewise.
6469         * math/s_nextdownl.c: Likewise.
6470         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
6471         F(nextup): New function.
6472         F(nextdown): Likewise.
6473         * math/tgmath.h: Add nextup and nextdown.
6474         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
6475         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
6476         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
6477         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
6478         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
6479         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
6480         Add nextup and nextdown.
6481         (CFLAGS-nldbl-nextup.c): New variable.
6482         (CFLAGS-nldbl-nextdown.c): Likewise.
6483         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
6484         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
6485         * sysdeps/nacl/libm.abilist: Update.
6486         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6487         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6488         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6489         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6490         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6491         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6492         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6493         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6494         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6495         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6496         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6497         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6500         Likewise.
6501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6503         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6504         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6505         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6506         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6507         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6508         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
6509         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
6510         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6511         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6512         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
6513         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6514
6515 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6516
6517         * manual/pattern.texi: Fix typos & grammar errors.
6518
6519 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6520
6521         * manual/search.texi: Fix typos & grammar errors.
6522
6523 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6524
6525         * manual/message.texi: Fix typos & grammar errors.
6526
6527 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
6528
6529         * manual/contrib.texi: Fix spelling typos.
6530         * manual/crypt.texi: Likewise.
6531         * manual/filesys.texi: Likewise.
6532         * manual/locale.texi: Likewise.
6533         * manual/message.texi: Likewise.
6534         * manual/nss.texi: Likewise.
6535         * manual/string.texi: Likewise.
6536
6537 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6538
6539         * manual/locale.texi: Fix typos & grammar errors.
6540
6541 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6542
6543         * manual/charset.texi: Fix typos & grammar errors.
6544
6545 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6546
6547         * manual/string.texi: Fix typos.
6548
6549 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6550
6551         * manual/ctype.texi: Fix typos.
6552
6553 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6554
6555         * manual/memory.texi: Fix various typos & grammar errors.
6556
6557 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
6558
6559         [BZ #20255]
6560         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
6561         * math/libm-test.inc (fdim_test_data): Add another test.
6562
6563         [BZ #6796]
6564         [BZ #20255]
6565         [BZ #20256]
6566         * math/s_fdim.c: Include <math_private.h>.
6567         (__fdim): Use math_narrow_eval on result.
6568         * math/s_fdimf.c: Include <math_private.h>.
6569         (__fdimf): Use math_narrow_eval on result.
6570         * sysdeps/i386/fpu/s_fdim.S: Remove file.
6571         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
6572         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
6573         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
6574         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
6575         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
6576         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
6577         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
6578         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
6579         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
6580         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
6581         * math/libm-test.inc (fdim_test_data): Expect errno setting on
6582         overflow.  Add sNaN tests.
6583
6584         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
6585         fpclassify.
6586         * math/s_fdimf.c (__fdimf): Likewise.
6587         * math/s_fdiml.c (__fdiml): Likewise.
6588
6589 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6590
6591         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6592         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
6593         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6594         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
6595         ifunc'ed strcasecmp/strncasecmp.
6596         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
6597         [EALIGN]: Removed.
6598         [END]: Likewise.
6599         [__strcasecmp]: Define instead of the above to control symbol name.
6600         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
6601         for __strcasecmp_power8.
6602         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
6603         for __strncasecmp_power8.
6604         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
6605         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
6606         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
6607         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
6608         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
6609         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
6610
6611 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
6612
6613         [BZ #20252]
6614         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
6615         arguments when second argument is a NaN.
6616         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
6617         qNaN tests.
6618
6619         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
6620         (conj_test_data): Likewise.
6621         (copysign_test_data): Likewise.
6622         (creal_test_data): Likewise.
6623         (fma_test_data): Likewise.
6624         (fmod_test_data): Likewise.
6625
6626         [BZ #20250]
6627         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
6628         itself.
6629         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
6630         zero input to itself.
6631         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
6632         Likewise.
6633         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
6634         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
6635         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
6636         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
6637         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
6638
6639 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6640
6641         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
6642         * nptl/tst-cancel4-common.c: New file.
6643         * nptl/tst-cancel4-common.h: Likewise.
6644         * nptl/tst-cancel4.c: Move common definitions to
6645         tst-cancel4-common.{c,h} file.
6646         * nptl/tst-cancel4_1.c: New test.
6647         * nptl/tst-cancel4_2.c: New test.
6648
6649 2016-06-13  Florian Weimer  <fweimer@redhat.com>
6650
6651         [BZ #20248]
6652         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
6653         (write_message): New function.
6654         (stackoverflow_handler): Call it instead of printf, to avoid
6655         excessive stack usage by printf.
6656         (do_test): Restore SIGSEGV, SIGBUS default handlers.
6657
6658 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6659
6660         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
6661         (prio_inherit_missing): Remove define.
6662         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6663         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6664         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
6665         Likewise.
6666         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6667         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6668         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6669         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6670         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6671         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6672
6673 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
6674
6675         [BZ #19670]
6676         [BZ #19672]
6677
6678         * io/test-lfs.c (do_prepare): Use xmalloc.
6679         * io/tst-fcntl.c (do_prepare): Likewise.
6680         * libio/tst-fopenloc.c (do_bz17916): Likewise.
6681         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
6682         * login/tst-utmp.c (do_prepare): Likewise.
6683         * posix/tst-exec.c (do_prepare): Likewise.
6684         * posix/tst-pathconf.c (prepare): Likewise.
6685         * posix/tst-spawn.c (do_prepare): Likewise.
6686         * posix/tst-truncate.c (do_prepare): Likewise.
6687         * rt/tst-aio.c (do_prepare): Likewise.
6688         * rt/tst-aio64.c (do_prepare): Likewise.
6689
6690 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6691
6692         [BZ #20237]
6693         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
6694         (get*ent): Set entidx to NULL during initialization.  If entidx is
6695         NULL, start iteration from the beginning.
6696
6697 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6698
6699         * malloc/malloc.c (musable): Return correct size for dumped fake
6700         mmapped chunk.
6701
6702 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6703
6704         [BZ #20222]
6705         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
6706         (_IO_cookie_write): Likewise.
6707         (_IO_cookie_seek): Likewise.
6708         (_IO_cookie_close): Likewise.
6709         (_IO_old_cookie_seek): Likewise.
6710         (set_callbacks): New function.
6711         (_IO_cookie_init): Call set_callbacks to copy callbacks.
6712
6713 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
6714
6715         * locale/programs/localedef.c (oldstyle_tables): Remove.
6716         * locale/programs/localedef.h (oldstyle_tables): Likewise.
6717
6718 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
6719
6720         [BZ #20240]
6721         * math/Makefile (CFLAGS-s_modf.c): New variable.
6722         (CFLAGS-s_modff.c): Likewise.
6723         (CFLAGS-s_modfl.c): Likewise.
6724         * math/libm-test.inc (modf_test_data): Add sNaN tests.
6725
6726 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
6727
6728         [BZ #20215]
6729         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
6730         [!__GNUC_PREREQ (3,2)]: Likewise.
6731
6732 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
6733
6734         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
6735         (msghdr.msg_controllen): Likewise.
6736         (cmsghdr.cmsg_len): Likewise.
6737         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
6738         ptw-oldsendmsg.
6739         (CFLAGS-oldrecvmsg.c): Remove rule.
6740         (CFLAGS-oldsendmsg.c): Likewise.
6741         (CFLAGS-recvmsg.c): Add rule.
6742         (CFLAGS-sendmsg.c): Likewise.
6743         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
6744         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
6745         (CFLAGS-recvmsg.c): Remove rule.
6746         (CFLAGS-sendmsg.c): Likewise.
6747         (CFLAGS-oldrecvmsg.c): Likewise.
6748         (CFLAGS-oldsendmsg.c): Likewise.
6749         (CFLAGS-recvmmsg.c): Likewise.
6750         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
6751         to kernel defined interfaces.
6752         (msghdr.msg_controllen): Likewise.
6753         (cmsghdr.cmsg_len): Likewise.
6754         (msghdr.__glibc_reserved1): Remove member.
6755         (msghdr.__glibc_reserved2): Likewise.
6756         (cmsghdr.__glibc_reserved1): Likewise.
6757         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
6758         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
6759         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
6760         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
6761         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
6762         version.
6763         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
6764         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
6765         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
6766         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
6767         Remove recvmsg and sendmsg.
6768         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
6769         Likewise.
6770         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
6771         Likewise.
6772         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
6773         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
6774         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
6775         Likewise.
6776         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
6777         Likewise.
6778         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
6779         [libc] (GLIBC_2.24): Likewise.
6780         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
6781         Likewise.
6782         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
6783         Likewise.
6784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
6785         [libc] (GLIBC_2.24): Likewise.
6786         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
6787         Likewise.
6788         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
6789         Likewise.
6790         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
6791         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
6792         Likewise.
6793         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
6794         Likewise.
6795         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
6796         Likewise.
6797         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
6798         Likewise.
6799         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
6800         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
6801         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
6802         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
6803         version for {recv,send,recm,sendm}msg.
6804         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6805         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6806         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6807         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6808         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6809         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6810         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6811         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6812         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6813         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6814         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6815         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6817         Likewise.
6818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6819         Likewise.
6820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6822         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6823         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6824         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6825         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6826         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6827         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6828         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
6829         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
6830         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6831         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6832         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6833
6834 2016-06-10  Florian Weimer  <fweimer@redhat.com>
6835
6836         [BZ #19564]
6837         Remove __malloc_initialize_hook from the API.
6838         * malloc/malloc.h (__malloc_initialize_hook): Remove.
6839         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
6840         #pragma GCC poison.
6841         * malloc/malloc-hooks.h: New file.
6842         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
6843         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
6844         (old__malloc_initialize_hook): Rename from
6845         __malloc_initialize_hook to evade poisoning.  Turn into compat
6846         symbol.
6847         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
6848         __malloc_initialize_hook.
6849         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
6850         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
6851         * manual/memory.texi (Hooks for Malloc): Remove
6852         __malloc_initialize_hook.  Adjust hook example.
6853
6854 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
6855
6856         [BZ #20235]
6857         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
6858         itself.
6859         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6860         * math/libm-test.inc (log2_test_data): Add sNaN tests.
6861
6862         [BZ #20234]
6863         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
6864         infinity or NaN input to itself.
6865
6866         [BZ #20233]
6867         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
6868         to itself.
6869
6870         [BZ #20232]
6871         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
6872         itself.
6873
6874 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
6875
6876         * sysdeps/x86_64/start.S (_start): Always indirect branch to
6877         __libc_start_main via GOT.
6878
6879 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
6880
6881         * sysdeps/x86_64/memcopy.h: New file.
6882         * sysdeps/x86_64/wordcopy.c: Likewise.
6883
6884 2016-06-09  Florian Weimer  <fweimer@redhat.com>
6885
6886         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
6887         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
6888         <cstdlib>.
6889         (optimization_barrier): New.
6890         (do_test): Use it.  Call quick_exit in the global namespace.
6891         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
6892         instead of <cstdlib>, <thread>.
6893         (optimization_barrier): New.
6894         (non_main_thread): Adjust declaration.  Call optimization_barrier.
6895         Call quick_exit in the global namespace.
6896         (do_test): Call optimization_barrier.  Use pthread_create,
6897         pthread_join instead of std::thread.
6898
6899 2016-06-09  Andreas Schwab  <schwab@suse.de>
6900
6901         [BZ #19755]
6902         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
6903         new entries in auto-propagate mode.
6904         * nscd/grpcache.c (cache_addgr): Likewise.
6905
6906 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
6907
6908         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
6909         New functions.
6910         (add_temp_file): Use them.
6911
6912 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
6913
6914         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
6915
6916 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
6917
6918         [BZ #20229]
6919         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
6920         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6921         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
6922
6923         [BZ #20228]
6924         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
6925         itself.
6926         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
6927         * math/libm-test.inc (log10_test_data): Add sNaN tests.
6928
6929         [BZ #20227]
6930         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
6931         itself.
6932         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
6933         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6934         * math/libm-test.inc (log_test_data): Add sNaN tests.
6935
6936         [BZ #20226]
6937         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
6938         itself.
6939         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
6940         * math/libm-test.inc (exp_test_data): Add sNaN tests.
6941         (exp10_test_data): Likewise.
6942         (expm1_test_data): Likewise.
6943
6944         [BZ #20225]
6945         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
6946         itself.
6947         * math/s_ldexpf.c (__ldexpf): Likewise.
6948         * math/s_ldexpl.c (__ldexpl): Likewise.
6949         * math/w_scalbln.c (__w_scalbln): Likewise.
6950         * math/w_scalblnf.c (__w_scalblnf): Likewise.
6951         * math/w_scalblnl.c (__w_scalblnl): Likewise.
6952         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
6953         (scalbln_test_data): Likewise.
6954
6955         [BZ #20224]
6956         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
6957         argument to itself.
6958         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
6959
6960 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
6961
6962         [BZ #19776]
6963         * sysdeps/x86_64/memcpy.S: Make it dummy.
6964         * sysdeps/x86_64/mempcpy.S: Likewise.
6965         * sysdeps/x86_64/memmove.S: New file.
6966         * sysdeps/x86_64/memmove_chk.S: Likewise.
6967         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
6968         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
6969         * sysdeps/x86_64/memmove.c: Removed.
6970         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
6971         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
6972         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
6973         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
6974         Likewise.
6975         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
6976         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
6977         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
6978         memcpy-sse2-unaligned, memmove-avx-unaligned,
6979         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
6980         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
6981         (__libc_ifunc_impl_list): Replace
6982         __memmove_chk_avx512_unaligned_2 with
6983         __memmove_chk_avx512_unaligned.  Remove
6984         __memmove_chk_avx_unaligned_2.  Replace
6985         __memmove_chk_sse2_unaligned_2 with
6986         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
6987         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
6988         with __memmove_avx512_unaligned.  Replace
6989         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
6990         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
6991         with __memcpy_chk_avx512_unaligned.  Remove
6992         __memcpy_chk_avx_unaligned_2.  Replace
6993         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
6994         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
6995         Replace __memcpy_avx512_unaligned_2 with
6996         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
6997         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
6998         with __mempcpy_chk_avx512_unaligned.  Remove
6999         __mempcpy_chk_avx_unaligned_2.  Replace
7000         __mempcpy_chk_sse2_unaligned_2 with
7001         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
7002         Replace __mempcpy_avx512_unaligned_2 with
7003         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
7004         Replace __mempcpy_sse2_unaligned_2 with
7005         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
7006         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
7007         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
7008         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
7009         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
7010         (ENTRY): Removed.
7011         (END): Likewise.
7012         (ENTRY_CHK): Likewise.
7013         (libc_hidden_builtin_def): Likewise.
7014         Don't include ../memcpy.S.
7015         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
7016         __memcpy_chk_avx512_unaligned_erms and
7017         __memcpy_chk_avx512_unaligned.  Use
7018         __memcpy_chk_avx_unaligned_erms and
7019         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7020         Default to __memcpy_chk_sse2_unaligned.
7021         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7022         Change function suffix from unaligned_2 to unaligned.
7023         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
7024         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
7025         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
7026         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
7027         (ENTRY): Removed.
7028         (END): Likewise.
7029         (ENTRY_CHK): Likewise.
7030         (libc_hidden_builtin_def): Likewise.
7031         Don't include ../mempcpy.S.
7032         (mempcpy): New.  Add a weak alias.
7033         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
7034         __mempcpy_chk_avx512_unaligned_erms and
7035         __mempcpy_chk_avx512_unaligned.  Use
7036         __mempcpy_chk_avx_unaligned_erms and
7037         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7038         Default to __mempcpy_chk_sse2_unaligned.
7039
7040 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7041
7042         [BZ #19881]
7043         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
7044         into ...
7045         * sysdeps/x86_64/memset.S: This.
7046         (__bzero): Removed.
7047         (__memset_tail): Likewise.
7048         (__memset_chk): Likewise.
7049         (memset): Likewise.
7050         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
7051         defined.
7052         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
7053         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
7054         (__memset_zero_constant_len_parameter): Check SHARED instead of
7055         PIC.
7056         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7057         memset-avx2 and memset-sse2-unaligned-erms.
7058         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7059         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
7060         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
7061         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7062         (__bzero): Enabled.
7063         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
7064         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
7065         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
7066         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
7067         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
7068         (memset): Removed.
7069         (__memset_chk): Likewise.
7070         (MEMSET_SYMBOL): New.
7071         (libc_hidden_builtin_def): Replace __memset_sse2 with
7072         __memset_sse2_unaligned.
7073         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
7074         __memset_chk_sse2 and __memset_chk_avx2 with
7075         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
7076         Use __memset_chk_sse2_unaligned_erms or
7077         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
7078         __memset_chk_avx512_unaligned_erms and
7079         __memset_chk_avx512_unaligned.
7080
7081 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7082
7083         * math/gen-auto-libm-test.c (fp_format_desc): remove
7084         suffix member.
7085         (output_generic_value): Remove usage of suffix member,
7086         and the resulting unuse of the fp_format argument.
7087         (output_for_one_input_case): Remove unused fp_format
7088         parameter.
7089
7090         * math/auto-libm-test-out: Regenerate.
7091
7092         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
7093         usage with TEST_COND_ibm128.
7094         (TEST_COND_flt_32): Remove.
7095         (TEST_COND_dbl_64): Remove.
7096         (TEST_COND_ldbl_96_intel): Remove.
7097         (TEST_COND_ldbl_96_m68k): Remove.
7098         (TEST_COND_ldbl_128): Remove.
7099
7100 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7101
7102         * auto-libm-test-in:
7103         Replace flt-32 usage with binary32.
7104         Replace dbl-64 usage with binary64.
7105         Replace ldbl-intel-96 usage with intel96.
7106         Replace ldbl-m68k-96 usage with m68k96.
7107         Replace ldbl-128ibm usage with ibm128.
7108         Replace ldbl-128 usage with binary128.
7109
7110         * auto-libm-test-out: Regenerate.
7111
7112 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7113
7114         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
7115         (parse_ulps): Dynamically generate type name matching
7116         string from all_floats.
7117         (get_ulps): Generate the ulps as an array instead.
7118         (output_ulps): Dynamically compose the type based
7119         on the number of supported formats, and print
7120         the indices as type specific helper macros.
7121
7122         * math/libm-test.inc: Remove comment about CHOOSE.
7123         (ulp_data): Generate the type in libm-test-ulps.h.
7124         (ULP_IDX): New macro.
7125         (find_ulps): Update usage of max_ulp.
7126
7127         * math/test-double-vlen2.h (CHOOSE): Remove.
7128         * math/test-double-vlen4.h (CHOOSE): Likewise.
7129         * math/test-double-vlen8.h (CHOOSE): Likewise.
7130         * math/test-float.c (CHOOSE): Likewise.
7131         * math/test-float-finite.c (CHOOSE): Likewise.
7132         * math/test-double.c (CHOOSE): Likewise.
7133         * math/test-double-finite.c (CHOOSE): Likewise.
7134         * math/test-idouble.c (CHOOSE): Likewise.
7135         * math/test-ifloat.c (CHOOSE): Likewise.
7136         * math/test-ildoubl.c (CHOOSE): Likewise.
7137         * math/test-ldouble-finite.c (CHOOSE): Likewise.
7138         * math/test-ldouble.c (CHOOSE): Likewise.
7139
7140         * math/test-float.h (TEST_FLOAT): Remove.
7141         * math/test-double.h (TEST_DOUBLE): Likewise.
7142         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
7143
7144 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7145
7146         * math/gen-libm-test.pl: (apply_lit): New subroutine.
7147         (parse_args): Strip C suffix from floating point literals
7148         typed with 'f' and wrap them with LIT().
7149
7150         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
7151         (test_ff_f_data_nexttoward): Rename to
7152         (test_fj_f_data): New struct.
7153         (nexttoward_test_data): Relabel tests as
7154         TEST_fj_f instead of TEST_ff_f.
7155
7156 2016-06-08  Florian Weimer  <fweimer@redhat.com>
7157
7158         Emacs bug 23726.
7159         * malloc/malloc.c (dumped_main_arena_start): Update comment.
7160         (__libc_realloc): Correct size computation for dumped fake mmapped
7161         chunks.
7162
7163 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
7164
7165         [BZ #20219]
7166         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
7167         to itself.
7168         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
7169
7170         [BZ #20218]
7171         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
7172         to itself.
7173         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
7174
7175 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
7176
7177         [BZ #20195]
7178         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
7179         check to ...
7180         (init_cpu_features): Here.
7181
7182 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
7183
7184         [BZ #20214]
7185         * sysdeps/unix/sysv/linux/bits/in.h
7186         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7187          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
7188         Define to 1.
7189         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7190          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
7191         Define to 0.
7192         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
7193         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
7194
7195 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
7196
7197         [BZ #20198]
7198         * stdlib/Makefile (tests): Add tst-quick_exit, and
7199         tst-thread-quick_exit.
7200         [ifeq ($(have-cxx-thread_local),yes)]
7201         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
7202         (CFLAGS-tst-thread-quick_exit.o): Likewise.
7203         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
7204         (LDLIBS-tst-thread-quick_exit): Likewise.
7205         [ifneq ($(have-cxx-thread_local),yes)]
7206         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
7207         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
7208         If run_dtors is true call __call_tls_dtors.
7209         (exit): Call __run_exit_handlers with run_dtors set to true.
7210         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
7211         definition.
7212         * stdlib/quick_exit.c (quick_exit): Remove function.
7213         (__new_quick_exit): New function.
7214         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
7215         function.
7216         * stdlib/tst-quick_exit.cc: New file.
7217         * stdlib/tst-thread-quick_exit.cc: New file.
7218         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
7219         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
7220         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
7221         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
7222         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
7223         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
7224         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
7225         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
7226         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
7227         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
7228         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
7229         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
7230         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
7231         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
7232         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
7233         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
7234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
7235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
7236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
7237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
7238         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
7239         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
7240         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
7241         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
7242         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
7243         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
7244         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
7245         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
7246         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
7247         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
7248
7249 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
7250
7251         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
7252         a typo in comments.
7253
7254 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7255
7256         [BZ #20213]
7257         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
7258         argument to itself.
7259         * math/libm-test.inc (asin_test_data): Add sNaN tests.
7260
7261 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7262
7263         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
7264         required flags.
7265         (CFLAGS-pwritev64.c): Likewise.
7266         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
7267         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
7268         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
7269         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7270         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
7271         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
7272         syscall from auto-generation.
7273         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
7274         [WORDSIZE == 64] (pwritev64): Remove macro.
7275         [!PWRITEV] (PWRITEV): Likewise.
7276         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7277         [!PWRITEV] (PWRITE): Likewise.
7278         [!PWRITEV] (OFF_T): Likewise.
7279         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7280         (LO_HI_LONG): Remove macro.
7281         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
7282         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
7283         (PWRITEV): Remove macro.
7284         (PWRITEV_REPLACEMENTE): Likewise.
7285         (PWRITE): Likewise.
7286         (OFF_T): Likewise.
7287         (pwritev64): New function.
7288         * nptl/tst-cancel4.c (tf_writev): Add test.
7289
7290         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
7291         required flags.
7292         (CFLAGS-preadv64.c): Likewise.
7293         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
7294         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
7295         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
7296         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
7297         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
7298         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
7299         syscall from auto-generation.
7300         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
7301         [WORDSIZE == 64] (preadv64): Remove macro.
7302         [!PREADV] (PREADV): Likewise.
7303         [!PREADV] (PREADV_REPLACEMENT): Likewise.
7304         [!PREADV] (PREAD): Likewise.
7305         [!PREADV] (OFF_T): Likewise.
7306         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
7307         (LO_HI_LONG): Remove macro.
7308         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
7309         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
7310         (PREADV): Remove macro.
7311         (PREADV_REPLACEMENTE): Likewise.
7312         (PREAD): Likewise.
7313         (OFF_T): Likewise.
7314         (preadv64): New function.
7315         * nptl/tst-cancel4.c (tf_preadv): Add test.
7316
7317 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7318
7319         [BZ #20212]
7320         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
7321         argument to itself.
7322         * math/libm-test.inc (acos_test_data): Add sNaN tests.
7323
7324 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7325
7326         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
7327         New symbol defined as libc_hidden_def.
7328         (strcasestr): Became a weak alias to __strcasestr.
7329         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
7330         according to multi-arch support.  Move __stpncpy hidden
7331         definition from here to...
7332         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
7333         symbol stpncpy.
7334         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
7335         libc_hidden_builtin_def.
7336         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
7337         memset symbol to use when multi-arch support is available.
7338
7339 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
7340
7341         * dlfcn/tst-rec-dlopen.c: Include string.h.
7342
7343 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7344
7345         * manual/install.texi: Remove mention of --without-tls
7346         * INSTALL: Regenerate.
7347
7348 2016-06-05  Florian Weimer  <fweimer@redhat.com>
7349
7350         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
7351         Remove.
7352         (call_function, interposed_malloc_called): New variables.
7353         (malloc): New function.
7354         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
7355         and clear call_function as needed.
7356
7357 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
7358
7359         * include/wchar.h (__wmemset): Use __typeof.
7360
7361 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
7362
7363         * include/wchar.h (__wmemset): Declare function without typeof.
7364
7365 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
7366
7367         [BZ #20205]
7368         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
7369         exponent when incrementing negative subnormal with low mantissa
7370         word zero.
7371         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
7372         Add another test.
7373
7374 2016-06-03  Florian Weimer  <fweimer@redhat.com>
7375
7376         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
7377         __wmemset instead of wmemset.
7378
7379 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
7380
7381         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
7382         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
7383         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
7384         __USE_KERNEL_IPV6_DEFS to 0.
7385         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
7386         Update comment.
7387
7388 2016-06-01  Florian Weimer  <fweimer@redhat.com>
7389
7390         [BZ #19861]
7391         Do not use IFUNC resolver with potentially unrelocated symbol.
7392         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
7393         (DEFINE_FORK): Remove macro and inline definition.
7394         (fork_alias): Renamed from fork_ifunc.
7395         (__fork_alias): Renamed from __fork_ifunc.
7396
7397 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
7398
7399         [BZ 19653]
7400         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
7401         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
7402
7403 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7404
7405         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
7406         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
7407         i386-linux-gnu).
7408         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
7409         Set to no.
7410         * sysdeps/mach/hurd/configure: Refresh.
7411
7412 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7413
7414         [BZ #20178]
7415         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
7416         on failure instead of exit.
7417
7418 2016-05-30  Roland McGrath  <roland@hack.frob.com>
7419
7420         [BZ #3629]
7421         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
7422         of POSIX.1-2008.
7423
7424 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7425
7426         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
7427           Use PLT entry for calling _hurd_self_sigstate.
7428
7429 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7430
7431         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
7432         available logical processors with SMT level type sharing L2
7433         cache for Intel processors.
7434
7435 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7436
7437         [BZ #20160]
7438         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
7439         argument to itself before returning the result.
7440         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
7441         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
7442         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
7443         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7444         Likewise.
7445         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7446         Likewise.
7447         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
7448         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
7449         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7450         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7451         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
7452         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
7453
7454         [BZ #20160]
7455         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
7456         argument to itself before returning the result.
7457         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
7458         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
7459         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
7460         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
7461         Likewise.
7462         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7463         Likewise.
7464         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
7465         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
7466         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
7467         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7468         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
7469         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
7470
7471 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7472
7473         * libm-test.inc: Replace usage of M_El with
7474         (lit_e): New macro.
7475
7476 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7477
7478         * libm-test.inc: Replace usage of M_PI_4l with
7479         (lit_pi_4_d): New macro.
7480
7481 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7482
7483         * libm-test.inc: Replace usage of M_PIl with
7484         (lit_pi): New macro.
7485
7486 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7487
7488         * libm-test.inc: Replace usage of M_PI2l with
7489         (lit_pi_2_d): New macro.
7490
7491         * math/test-double.h (LITM): New macro.
7492         * math/test-float.h (LITM): Likewise.
7493         * math/test-ldouble.h (LITM): Likewise.
7494
7495 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7496
7497         * libm-test.inc (M_PI_34l): Rename to
7498         (lit_pi_3_m_4_d): New Macro.
7499         (M_PI_34_LOG10El): Rename to
7500         (lit_pi_3_m_4_ln10_m_d): New Macro.
7501         (M_PI2_LOG10El): Rename to
7502         (lit_pi_2_ln10_m_d):  New Macro.
7503         (M_PI4_LOG10El): Rename to
7504         (lit_pi_4_ln10_m_d):  New Macro.
7505         (M_PI_LOG10El): Rename to
7506         (lit_pi_ln10_d):  New Macro.
7507
7508 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7509
7510         [BZ #20157]
7511         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
7512         determine whether to negate low half if [_ARCH_PPCGR], and integer
7513         comparison otherwise.
7514         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
7515         determine whether to negate low half.
7516
7517         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
7518         (NO_TEST_INLINE_DOUBLE): Likewise.
7519         (TEST_COND_x86_64): Likewise.
7520         (TEST_COND_x86): Likewise.
7521         (M_PI_6l): Likewise.
7522
7523 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7524
7525         * math/libm-test.inc:
7526         (TEST_FLOAT): Change usage to TEST_COND_binary32.
7527         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
7528         (TEST_LDOUBLE): Update usage to evaluate as true if
7529         the guarded tests match the property being tested.
7530         (LDBL_MAX_EXP): Change to MAX_EXP.
7531         (LDBL_MIN_EXP): Change to MIN_EXP.
7532         (LDBL_MANT_DIG): Change to MANT_DIG, except for
7533         nexttoward tests.
7534
7535 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7536
7537         * math/libm-test.inc:
7538         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
7539         (TYPE_MIN): Likewise.
7540         (TYPE_TRUE_MIN): Likewise.
7541         (TYPE_MAX): Likewise.
7542         (MIN_EXP): Likewise.
7543         (MAX_EXP): Likewise.
7544         (MANT_DIG): Likewise.
7545
7546         (FSTR_MAX): New macro.
7547         (__CONCATX): Likewise.
7548         (QTYPE_STR): Likewise.
7549         (TEST_COND_binary32): Likewise.
7550         (TEST_COND_binary64): Likewise.
7551         (TEST_COND_binary128): Likewise.
7552         (TEST_COND_ibm128): Likewise.
7553         (TEST_COND_intel96): Likewise.
7554         (TEST_COND_m68k96): Likewise.
7555
7556         (TEST_COND_flt_32): Redefine as equivalent format test macro.
7557         (TEST_COND_dbl_64): Likewise.
7558         (TEST_COND_ldbl_96_intel): Likewise.
7559         (TEST_COND_ldbl_96_m68k): Likewise.
7560         (TEST_COND_ldbl_128): Likewise.
7561         (TEST_COND_ldbl_128ibm): Likewise.
7562
7563         (plus_zero): Redefine using LIT macro.
7564         (minus_zero): Likewise.
7565         (plus_infty): Redefine as (INF).
7566         (minux_infty): Redefine as (-INF).
7567         (max_value): Redefine as TYPE_MAX.
7568         (min_value): Redefine as TYPE_MIN.
7569         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
7570
7571         (print_float): Refactor to use snprintf to convert FLOAT values
7572         to string. This brings it closer to dropin replacement of strtof
7573         for the TS 18661 defined types.
7574         (update_stats): Likewise.
7575         (print_complex_function_ulps): Likewise.
7576         (print_max_error): Likewise.
7577         (print_complex_max_error): Likewise.
7578         (check_float_internal): Likewise.
7579
7580         * math/test-float.h (PREFIX): New macro.
7581         (LIT): Likewise.
7582         (TYPE_STR): Likewise.
7583         (FTOSTR): Likewise.
7584
7585         * math/test-double.h (PREFIX): New macro.
7586         (LIT): Likewise.
7587         (TYPE_STR): Likewise.
7588         (FTOSTR): Likewise.
7589
7590         * math/test-ldouble.h (PREFIX): New macro.
7591         (LIT): Likewise.
7592         (TYPE_STR): Likewise.
7593         (FTOSTR): Likewise.
7594
7595 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7596
7597         [BZ #20156]
7598         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
7599         to itself when zero or not finite.
7600         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
7601         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
7602         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
7603         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7604
7605 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
7606
7607         [BZ #20153]
7608         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
7609         x * x + x for infinities and NaNs.
7610
7611         [BZ #20151]
7612         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
7613         argument to itself before returning result.
7614         (__ieee754_y0l): Likewise.
7615         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7616         (__ieee754_y1l).
7617
7618         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
7619         (atan_test_data): Likewise.
7620         (ceil_test_data): Likewise.
7621         (cos_test_data): Likewise.
7622         (cosh_test_data): Likewise.
7623         (erf_test_data): Likewise.
7624         (exp2_test_data): Likewise.
7625         (fabs_test_data): Likewise.
7626         (floor_test_data): Likewise.
7627         (ilogb_test_data): Likewise.
7628         (j0_test_data): Likewise.
7629         (j1_test_data): Likewise.
7630         (jn_test_data): Likewise.
7631         (lgamma_test_data): Likewise.
7632         (lrint_test_data): Likewise.
7633         (llrint_test_data): Likewise.
7634         (logb_test_data): Likewise.
7635         (lround_test_data): Likewise.
7636         (llround_test_data): Likewise.
7637         (nearbyint_test_data): Likewise.
7638         (rint_test_data): Likewise.
7639         (round_test_data): Likewise.
7640         (sin_test_data): Likewise.
7641         (sincos_test_data): Likewise.
7642         (sinh_test_data): Likewise.
7643         (sqrt_test_data): Likewise.
7644         (tan_test_data): Likewise.
7645         (tanh_test_data): Likewise.
7646         (tgamma_test_data): Likewise.
7647         (trunc_test_data): Likewise.
7648         (y0_test_data): Likewise.
7649         (y1_test_data): Likewise.
7650         (yn_test_data): Likewise.
7651
7652         * math/libm-test.inc: Update comment about NaN testing.
7653         (TEST_SNAN): New macro.
7654         (snan_value): Likewise.
7655         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
7656         (fpclassify_test_data): Add sNaN tests.
7657         (isfinite_test_data): Likewise.
7658         (isinf_test_data): Likewise.
7659         (isnan_test_data): Likewise.
7660         (isnormal_test_data): Likewise.
7661         (issignaling_test_data): Likewise.
7662         (signbit_test_data): Likewise.
7663         * math/gen-libm-test.pl (%beautify): Add snan_value.
7664         (show_exceptions): Add argument $test_snan.
7665         (parse_args): Handle snan_value as non-finite.  Update call to
7666         show_exceptions.
7667         * math/Makefile (libm-test-no-inline-cflags): Add
7668         -fsignaling-nans.
7669
7670 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7671
7672         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
7673         (CFLAGS-oldsendmsg.c): Add rule.
7674         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
7675         Correct recvmsg symbol name.
7676         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
7677         Likewise.
7678
7679 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7680
7681         * sysdeps/unix/sysv/linux/Makefile
7682         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
7683         oldsendmmsg.
7684         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
7685         sendmmsg.
7686         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7687         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7688         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7689         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7691         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7692         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7693         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7694         Likewise.
7695         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7696         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
7697         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
7698         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
7699         iovlen and controllen fields to adjust to POSIX specification.
7700         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
7701
7702         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
7703         and change to correct expected type.
7704         (msghdr.msg_controllen): Likewise.
7705         (cmsghdr.cmsg_len): Likewise.
7706         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
7707         expected POSIX assumption about the size.
7708         (msghdr.msg_controllen): Likewise.
7709         (msghdr.__glibc_reserved1): Likewise.
7710         (msghdr.__glibc_reserved2): Likewise.
7711         (cmsghdr.cmsg_len): Likewise.
7712         (cmsghdr.__glibc_reserved1): Likewise.
7713         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
7714         Add ptw-oldrecvmsg and ptw-oldsendmsg.
7715         (CFLAGS-sendmsg.c): Remove rule.
7716         (CFLAGS-recvmsg.c): Likewise.
7717         (CFLAGS-oldsendmsg.c): Add rule.
7718         (CFLAGS-oldrecvmsg.c): Likewise.
7719         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
7720         recvmsg and sendmsg.
7721         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
7722         Likewise.
7723         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
7724         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
7725         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
7726         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
7727         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
7728         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
7729         Likewise.
7730         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
7731         Likewise.
7732         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
7733         Likewise.
7734         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
7735         Likewise.
7736         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
7737         Likewise.
7738         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
7739         Likewise.
7740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
7741         (GLIBC_2.24): Likewise.
7742         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
7743         Likewise.
7744         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
7745         Likewise.
7746         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
7747         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
7748         Likewise.
7749         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
7750         Likewise.
7751         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
7752         Likewise.
7753         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
7754         (GLIBC_2.24): Likewise.
7755         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
7756         Likewise.
7757         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
7758         Likewise.
7759         * sysdeps/unix/sysv/linux/Makefile
7760         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
7761         (CFLAGS-sendmsg.c): Add rule.
7762         (CFLAGS-recvmsg.c): Likewise.
7763         (CFLAGS-oldsendmsg.c): Likewise.
7764         (CFLAGS-oldrecvmsg.c): Likewise.
7765         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
7766         initialization.
7767         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7768         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7769         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
7770         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
7771         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
7772         iovlen and controllen fields to adjust to POSIX specification.
7773         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
7774         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
7775         added recvmsg and sendmsg.
7776         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7777         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7778         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7779         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7780         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7781         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7782         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7783         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7784         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7785         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7786         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7787         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
7788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7789         Likewise.
7790         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
7791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7792         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7793         Likewise.
7794         Likewise.
7795         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7796         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7797         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7798         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7799         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7800         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7801         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7802         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7803         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7804         Likewise.
7805         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7806         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7807
7808         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
7809         from auto-generation.
7810         (sendmsg): Likewise.
7811         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
7812         (sendmsg): Likewise.
7813         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
7814         (sendmsg): Likewise.
7815         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
7816         (sendmsg): Likewise.
7817         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
7818         (sendmsg): Likewise.
7819         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
7820         (sendmsg): Likewise.
7821         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
7822         Likewise.
7823         (sendmsg): Likewise.
7824         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
7825         (sendmsg): Likewise.
7826         * sysdeps/unix/sysv/linux/i386/kernel-features.h
7827         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7828         Remove.
7829         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7830         Likewise.
7831         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7832         Undefine.
7833         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7834         Likewise.
7835         * sysdeps/unix/sysv/linux/kernel-features.h
7836         (__ASSUME_SENDMSG_SYSCALL): Define.
7837         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7838         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7839         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7840         Remove.
7841         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7842         Likewise.
7843         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7844         Undefine.
7845         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7846         Likewise.
7847         * sysdeps/unix/sysv/linux/s390/kernel-features.h
7848         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7849         Remove.
7850         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7851         Likewise.
7852         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7853         Undefine.
7854         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7855         Likewise.
7856         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7857         (__ASSUME_SENDMSG_SYSCALL): Undefine.
7858         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7859         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7860         (__ASSUME_SENDMSG_SYSCALL): Likewise.
7861         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7862         * sysdeps/unix/sysv/linux/sh/kernel-features.h
7863         (__ASSUME_SENDMSG_SYSCALL): Likewise.
7864         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7865
7866 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7867
7868         * stdlib/gen-tst-strtod-round.c: Add backslash to
7869         compile command in comment.
7870         (printfp): Remove the literal suffix, and define an infinite
7871         value as INF to avoid expansion clash with INFINITY.
7872         (round_str): Remove the literal suffix.
7873         (round_for_all): Likewise, remove the now duplicate ldbl-64
7874         entry, and remove some magic constants.
7875
7876         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
7877         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
7878         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
7879         (_CONCAT): New macro.
7880         (CONCAT): Likewise.
7881         (CHOOSE_ld): Likewise.
7882         (CHOOSE_f): Likewise.
7883         (CHOOSE_d): Likewise.
7884         (FTYPE_MEMBER): Likewise.
7885         (BOOL_MEMBER): Likewise.
7886         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
7887         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
7888         (_XNTRY): Likewise.
7889         (XNTRY): Likewise.
7890         (_ENTRY): Likewise.
7891         (ENTRY): Likewise.
7892         (test_exactness): Generate members via macro.
7893         (test_results): Likewise.
7894         (test): Update members.
7895         (TEST): Redefine using new macros.
7896         (INF): New macro.
7897         (fetestmodes): New structure.
7898         (do_test): Refactor to be type generic.
7899         (test_in_one_mode): Refactor duplicate code into
7900         (GEN_ONE_TEST): New macro.
7901
7902         * stdlib/tst-strtod-round-data.h: Regenerate.
7903
7904         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
7905         Extend to pass additional arbitrary parameters to
7906         generators.
7907
7908 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
7909
7910         [BZ #15479]
7911         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
7912         floating-point state after first floating-point operation on
7913         input.  Restore full floating-point state instead of just rounding
7914         mode.
7915         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
7916         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
7917         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
7918         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
7919         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
7920
7921         [BZ #15479]
7922         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
7923         floating-point state after first floating-point operation on
7924         input.  Restore full floating-point state instead of just rounding
7925         mode.
7926         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
7927         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
7928         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
7929         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
7930         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
7931
7932 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7933
7934         [BZ #19727]
7935         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
7936         valid high surrogate.
7937         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
7938         of an utf16 surrogate.
7939         * iconv/gconv_simple.c (BODY): Likewise.
7940         * iconvdata/bug-iconv12.c: New file.
7941         * iconvdata/Makefile (tests): Add bug-iconv12.
7942
7943 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7944
7945         [BZ #19726]
7946         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
7947         outptrp in case of an illegal input.
7948         * iconv/tst-iconv6.c: New file.
7949         * iconv/Makefile (tests): Add tst-iconv6.
7950
7951 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7952
7953         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
7954         an error in case of a value in range of an utf16 low surrogate.
7955
7956 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7957
7958         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
7959         an error in case of a value in range of an utf16 low surrogate.
7960
7961 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7962
7963         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
7964         Move to ...
7965         * sysdeps/s390/Makefile: ... here.
7966         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
7967         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
7968         (BRANCH_ON_COUNT): New define.
7969         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
7970         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
7971         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
7972         run on s390-32, too.
7973         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
7974         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
7975         run on s390-32, too.
7976         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
7977         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
7978         run on s390-32, too.
7979
7980 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7981
7982         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
7983         etf3eh or new vector loop-variant.
7984
7985 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7986
7987         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
7988         etf3eh or new vector loop-variant.
7989
7990 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7991
7992         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
7993         or new vector loop-variant.
7994
7995 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7996
7997         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
7998         Rename to TR_LOOP and usage of tr instead of troo instruction.
7999
8000 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8001
8002         * sysdeps/s390/multiarch/gconv_simple.c: New File.
8003         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
8004
8005 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8006
8007         * sysdeps/s390/multiarch/8bit-generic.c: New File.
8008         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
8009         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
8010         New override define.
8011         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
8012
8013 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8014
8015         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
8016         * sysdeps/s390/configure.ac: Add test for S390 vector register
8017         support in gcc.
8018         * sysdeps/s390/configure: Regenerated.
8019
8020 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8021
8022         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
8023         Install file from $(objpfx)gconv-modules.
8024         ($(objpfx)gconv-modules): Concatenate architecture specific file
8025         in variable sysdeps-gconv-modules and gconv-modules in src dir.
8026         * sysdeps/s390/gconv-modules: New file.
8027         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
8028         Deleted.
8029         ($(objpfx)gconv-modules-s390): Deleted.
8030         (sysdeps-gconv-modules): New variable.
8031
8032 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8033
8034         [BZ #15479]
8035         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
8036         of immediate operand to rounding instruction.
8037         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
8038         Likewise.
8039         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
8040         Likewise.
8041         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
8042         Likewise.
8043
8044 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8045
8046         * math/libm-test.inc (MIN_EXP): Directly define as
8047         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
8048
8049 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8050
8051         * math/libm-test.inc (MANT_DIG): Directly define as
8052         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
8053
8054 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8055
8056         * stdlib/gen-tst-strtod-round.c (main):
8057           Change usage to more closely match the generated
8058           output.  Add usage and compilation instructions.
8059           (string_to_fp): Add and use FILE* parameter as
8060           output target.
8061           (print_fp): Likewise.
8062           (round_str): Likewise.
8063           (round_for_all): Likewise.
8064         * stdlib/tst-strtod-round.c (tests): Move into
8065         * stdlib/tst-strtod-round-data.h: New file.
8066
8067 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8068
8069         [BZ #15479]
8070         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
8071         (__round): Do not force "inexact" exception.
8072         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
8073         variable.
8074         (__round): Do not force "inexact" exception.
8075         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
8076         (__roundf): Do not force "inexact" exception.
8077         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
8078         (__roundl): Do not force "inexact" exception.
8079         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
8080         (__roundl): Do not force "inexact" exception.
8081         * math/libm-test.inc (round_test_data): Do not allow spurious
8082         "inexact" exceptions.
8083
8084         [BZ #15479]
8085         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
8086         exception in comment.
8087         (huge): Remove variable.
8088         (__floor): Do not force "inexact" exception.
8089         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
8090         "inexact" exception in comment.
8091         (huge): Remove variable.
8092         (__floor): Do not force "inexact" exception.
8093         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
8094         exception in comment.
8095         (huge): Remove variable.
8096         (__floorf): Do not force "inexact" exception.
8097         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
8098         exception in comment.
8099         (huge): Remove variable.
8100         (__floorl): Do not force "inexact" exception.
8101
8102         [BZ #15479]
8103         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
8104         exception in comment.
8105         (huge): Remove variable.
8106         (__ceil): Do not force "inexact" exception.
8107         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
8108         "inexact" exception in comment.
8109         (huge): Remove variable.
8110         (__ceil): Do not force "inexact" exception.
8111         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
8112         (__ceilf): Do not force "inexact" exception.
8113         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
8114         exception in comment.
8115         (huge): Remove variable.
8116         (__ceill): Do not force "inexact" exception.
8117
8118 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8119
8120         * config.h.in (BIND_NOW): New.
8121         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
8122         * configure: Regenerated.
8123         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
8124         indirect branch via the GOT slot.
8125
8126 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8127
8128         [BZ #19765]
8129         * sysdeps/s390/mempcpy.S: New File.
8130         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
8131         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
8132         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8133         Add mempcpy variants.
8134         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
8135         (memcpy): Adjust to be usable from mempcpy entry point.
8136         (__memcpy_mvcle): Likewise.
8137         * sysdeps/s390/s390-64/memcpy.S: Likewise.
8138         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
8139         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
8140         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
8141         (__memcpy_z10): Likewise.
8142         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8143
8144 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8145
8146         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
8147         Remove __GI_ symbol.
8148         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
8149         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
8150         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
8151         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8152         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
8153         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
8154
8155 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8156
8157         * sysdeps/s390/s390-64/memcpy.S (memcpy):
8158         Use cghi instead of chi to compare 64bit value.
8159
8160 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8161
8162         * sysdeps/s390/s390-32/memcpy.S (memcpy):
8163         Jump to 1MB check before executing mvc-loop.
8164
8165 2016-05-24  Florian Weimer  <fweimer@redhat.com>
8166
8167         [BZ #6527]
8168         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
8169         unconditionally.
8170         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
8171
8172 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8173
8174         * stdlib/tst-strtod6.c (do_test): Use new type generic
8175         invocation of the test function.
8176         (test): Refactor into ...
8177         (TEST_STRTOD): New macro base function.
8178
8179 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8180
8181         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
8182         (TEST_STRTOD): New macro.
8183         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
8184
8185 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8186
8187         * stdlib/tst-strtod6.c (do_test): Use new type generic
8188         invocation of the test function.
8189         (test): Refactor into ...
8190         (TEST_STRTOD): New macro base function.
8191
8192 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8193
8194         CVE-2016-4429
8195         [BZ #20112]
8196         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
8197         payload.
8198
8199 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8200
8201         [BZ #20111]
8202         * bits/sockaddr.h (_SS_SIZE): Define.
8203         * bits/socket.h (_SS_SIZE): Remove.
8204         (_SS_PADSIZE): Adjust to account for all padding.
8205         (struct sockaddr_storage): Update comment.  Avoid implicit
8206         padding.
8207         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
8208         (_SS_PADSIZE): Adjust to account for all padding.
8209         (struct sockaddr_storage): Update comment.  Avoid implicit
8210         padding.
8211         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
8212         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
8213         (_SS_PADSIZE): Adjust to account for all padding.
8214         (struct sockaddr_storage): Update comment.  Avoid implicit
8215         padding.
8216         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
8217         __SS_SIZE is 126 in this version.
8218         * inet/tst-sockaddr.c: New file.
8219         * inet/Makefile (tests): Add tst-sockaddr.c
8220         (tst-sockaddr.c): Compile with non-strict aliasing.
8221
8222 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
8223
8224         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
8225         [XPG3 || XPG4].
8226         (NL_ARGMAX): Also expect for [XPG3].
8227         (NL_LANGMAX): Likewise.
8228         (NL_MSGMAX): Likewise.
8229         (NL_NMAX): Likewise.
8230         (NL_SETMAX): Likewise.
8231         (NL_TEXTMAX): Likewise.
8232         (NZERO): Likewise.
8233         (TMP_MAX): Likewise.
8234         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
8235         variable.
8236
8237         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
8238         (PF_MAX): Update value.
8239         (AF_KCM): New macro.
8240         (SOL_NETBEUI): Likewise.
8241         (SOL_LLC): Likewise.
8242         (SOL_DCCP): Likewise.
8243         (SOL_NETLINK): Likewise.
8244         (SOL_TIPC): Likewise.
8245         (SOL_RXRPC): Likewise.
8246         (SOL_PPPOL2TP): Likewise.
8247         (SOL_BLUETOOTH): Likewise.
8248         (SOL_PNPIPE): Likewise.
8249         (SOL_RDS): Likewise.
8250         (SOL_IUCV): Likewise.
8251         (SOL_CAIF): Likewise.
8252         (SOL_ALG): Likewise.
8253         (SOL_NFC): Likewise.
8254         (SOL_KCM): Likewise.
8255         (MSG_BATCH): New enum value and macro.
8256
8257 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
8258
8259         [BZ #18185]
8260         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
8261         sharing L2 cache to 2 for Knights Landing.
8262
8263 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
8264
8265         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
8266         (FTW_DP): Do not expect for [XPG3 || XPG4].
8267         (FTW_SL): Do not expect for [XPG3].
8268         (FTW_SLN): Likewise.
8269         (FTW_PHYS): Likewise.
8270         (FTW_MOUNT): Likewise.
8271         (FTW_DEPTH): Likewise.
8272         (FTW_CHDIR): Likewise.
8273         (nftw): Likewise.
8274         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
8275         variable.
8276
8277 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8278
8279         * manual/errno.texi: Fix various typos & grammar errors.
8280
8281 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8282
8283         * manual/intro.texi: Fix duplicated typo.
8284
8285 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8286
8287         [BZ #13304]
8288         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
8289         <float.h>, <math_private.h> and <stdlib.h>.
8290         (add_split): New function.
8291         (mul_split): Likewise.
8292         (ext_val): New typedef.
8293         (store_ext_val): New function.
8294         (mul_ext_val): New function.
8295         (compare): New function.
8296         (add_split_ext): New function.
8297         (__fmal): After checking for Inf, NaN and zero, compute result as
8298         an exact sum of scaled double values in round-to-nearest before
8299         adding those up and adjusting for other rounding modes.
8300         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
8301         tests of fma.
8302         * math/auto-libm-test-out: Regenerated.
8303
8304 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8305
8306         [BZ #20119]
8307         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
8308         processor level type mask for CPUID with EAX == 11.
8309
8310 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8311
8312         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
8313         logical threads if the HTT bit is 0.
8314         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
8315         (index_cpu_HTT): Likewise.
8316         (reg_HTT): Likewise.
8317
8318 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8319
8320         [BZ #20115]
8321         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
8322         Remove alignments on jump targets.
8323
8324 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8325
8326         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
8327         (getpwent): Likewise.
8328         (setpwent): Likewise.
8329         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
8330         variable.
8331
8332         * conform/data/search.h-data (insque): Do not expect for [XPG3].
8333         (remque): Likewise.
8334         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
8335         variable.
8336
8337 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8338
8339         * math/libm-test.inc: Update comment not to refer to signs of NaNs
8340         not being tested.
8341
8342 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8343
8344         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
8345         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
8346         call.
8347         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
8348         (__condvar_cleanup1): Likewise.
8349
8350 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8351
8352         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
8353         New
8354         (__pthread_unwind): Renamed to ...
8355         (PTHREAD_UNWIND): This.
8356         (__pthread_enable_asynccancel): Replace
8357         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
8358
8359 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8360
8361         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
8362         (CLONE_NEWCGROUP): New macro.
8363
8364         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
8365         (Q_GETNEXTQUOTA): New macro.
8366
8367 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8368
8369         [BZ #19907]
8370         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
8371         buffer updated by the previous run.
8372         * string/test-memcpy.c (do_one_test): Likewise.
8373         * benchtests/bench-memmove.c (do_one_test): Add a comment.
8374         * string/test-memmove.c (do_one_test): Likewise.
8375
8376 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
8377
8378         [BZ #20094]
8379         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
8380         not [__USE_XOPEN].
8381         (unlockpt): Likewise.
8382         (ptsname): Likewise.
8383         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
8384         variable.
8385
8386         [BZ #20076]
8387         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
8388         instead of [__USE_UNIX98].
8389         (S_ISSOCK): Likewise.
8390         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
8391         variable.
8392
8393         [BZ #20074]
8394         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
8395         [__USE_POSIX].
8396         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
8397         variable.
8398
8399         [BZ #20051]
8400         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
8401         (ttyslot): Do not declare.
8402         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
8403         (ttyslot): New prototype.
8404         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
8405         variable.
8406         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
8407
8408 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
8409
8410         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
8411
8412 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8413
8414         Fix race condition in tst-mallocfork2, use fewer resources.
8415         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
8416         to current process group.
8417         (signal_sender): Yield in the non-sleeping case.
8418
8419 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
8420
8421         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
8422         (ecvt): Likewise.
8423         (fcvt): Likewise.
8424         (gcvt): Likewise.
8425         (getsubopt): Likewise.
8426         (grantpt): Likewise.
8427         (initstate): Likewise.
8428         (l64a): Likewise.
8429         (mktemp): Likewise.
8430         (mkstemp): Likewise.
8431         (ptsname): Likewise.
8432         (random): Likewise.
8433         (realpath): Likewise.
8434         (setstate): Likewise.
8435         (srandom): Likewise.
8436         (ttyslot): Likewise.
8437         (unlockpt): Likewise.
8438         (valloc): Likewise.
8439
8440         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
8441         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
8442         variable.
8443
8444 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8445
8446         [BZ #20072]
8447         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
8448         init_cpu_features only if SHARED is defined.
8449         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
8450
8451 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8452
8453         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
8454         non-inclusive caches on Intel processors.
8455
8456 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8457
8458         * malloc/malloc.c (dumped_main_arena_start)
8459         (dumped_main_arena_end): New variables.
8460         (DUMPED_MAIN_ARENA_CHUNK): New macro.
8461         (do_check_chunk): Skip dumped fake mmapped chunks.
8462         (munmap_chunk): Likewise.
8463         (__libc_free): Do not adjust statistics for fake mmapped chunks.
8464         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
8465         mmapped chunks.
8466         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
8467         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
8468         and dumped_main_arena_end to cover the dumped heap.
8469
8470 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
8471
8472         * conform/data/time.h-data (getdate_err): Do not expect for
8473         [XPG3].
8474         (getdate): Likewise.
8475         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
8476         variable.
8477
8478         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
8479         (F_ULOCK): Likewise.
8480         (F_TEST): Likewise.
8481         (F_TLOCK): Likewise.
8482         (useconds_t): Likewise.
8483         (intptr_t): Do not expect for [XPG3] or [XPG4].
8484         (brk): Do not expect for [XPG3]
8485         (fchown): Likewise.
8486         (fchdir): Likewise.
8487         (ftruncate): Likewise.
8488         (getdtablesize): Likewise.
8489         (gethostid): Likewise.
8490         (getpagesize): Likewise.
8491         (getpgid): Likewise.
8492         (getsid): Likewise.
8493         (getwd): Likewise.
8494         (lchown): Likewise.
8495         (lockf): Likewise.
8496         (readlink): Likewise.
8497         (sbrk): Likewise.
8498         (setpgrp): Likewise.
8499         (setregid): Likewise.
8500         (setreuid): Likewise.
8501         (symlink): Likewise.
8502         (sync): Likewise.
8503         (truncate): Likewise.
8504         (ualarm): Likewise.
8505         (usleep): Likewise.
8506         (vfork): Likewise.
8507         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
8508         variable.
8509
8510         [BZ #20054]
8511         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
8512         not [__USE_UNIX98].
8513         * conform/data/unistd.h-data (gethostname): Do not expect for
8514         [XPG3].
8515
8516         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
8517         [!POSIX] (S_IFBLK): Likewise.
8518         [!POSIX] (S_IFCHR): Likewise.
8519         [!POSIX] (S_IFIFO): Likewise.
8520         [!POSIX] (S_IFREG): Likewise.
8521         [!POSIX] (S_IFDIR): Likewise.
8522         [!POSIX] (S_IFLNK): Likewise.
8523         [!POSIX] (S_IFSOCK): Likewise.
8524         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
8525         variable.
8526         (test-xfail-XPG4/fcntl.h/conform): Likewise.
8527
8528 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
8529
8530         * sysdeps/aarch64/memset.S (__memset):
8531         Rewrite of optimized memset.
8532
8533 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8534
8535         [BZ #19703]
8536         Partially async-signal-safe fork for single-threaded processes.
8537         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
8538         variable.  Do not acquire and reset/release malloc and libio locks
8539         in single-threaded processes.
8540         * malloc/tst-mallocfork2.c: New file.
8541         * malloc/Makefile (tests): Add it.
8542
8543 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8544
8545         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
8546         argument.  Use scratch buffer instead of extend_alloca.
8547         (gethosts): Use scratch buffer instead of extend_alloca.
8548         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
8549         extend_alloca.
8550         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
8551
8552 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
8553
8554         [BZ #20055]
8555         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
8556         instead of [__USE_UNIX98].
8557         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
8558         [__USE_UNIX98].
8559         * conform/data/termios.h-data (tcgetsid): Do not expect for
8560         [XPG3].
8561         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
8562         variable.
8563         (test-xfail-XPG4/termios.h/conform): Likewise.
8564
8565 2016-05-11  Florian Weimer  <fweimer@redhat.com>
8566
8567         Do not use mcheck in localedef.
8568         * locale/programs/localedef.c (turn_on_mcheck)
8569         (__malloc_initialize_hook): Remove.
8570
8571 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
8572
8573         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
8574         * sysdeps/s390/s390-64/Makefile: Likewise.
8575
8576 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8577
8578         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
8579         Remove ifunc-defines.sym.
8580         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
8581         Likewise.
8582         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
8583         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
8584         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
8585         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
8586         rtld-global-offsets.sym.
8587         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
8588         * sysdeps/x86/cpu-features-offsets.sym: This.
8589         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
8590         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
8591
8592 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
8593
8594         [BZ #20073]
8595         * io/sys/stat.h (fchmod): Declare for
8596         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
8597         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
8598         variable.
8599
8600         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
8601         [XPG3] (S_IFSOCK): Likewise.
8602         [XPG3] (S_ISVTX): Likewise.
8603         [XPG3] (S_ISLNK): Likewise.
8604         [XPG3] (S_ISSOCK): Likewise.
8605         [XPG3] (fchmod): Likewise.
8606         [XPG3] (lstat): Likewise.
8607         [XPG3] (mknod): Likewise.
8608
8609         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
8610         [XPG3].  Expect type long and XFAIL for [XPG4].
8611         (st_blocks): Likewise.
8612
8613         [BZ #20044]
8614         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
8615         (pthread_atfork): New prototype.
8616         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
8617         variable.
8618
8619         [BZ #20043]
8620         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
8621         prototype.
8622
8623 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8624
8625         [BZ #20017]
8626         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
8627         gmtime.
8628
8629 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8630
8631         [BZ #19994]
8632         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
8633         flag in _res.options.
8634
8635 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
8636
8637         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
8638         [XPG3 || XPG4].
8639         (blksize_t): Likewise.
8640         (clockid_t): Likewise.
8641         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
8642         variable.
8643         (test-xfail-XPG4/sys/types.h/conform): Likewise.
8644
8645 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
8646
8647         * sysdeps/unix/sysv/linux/s390/init-first.c:
8648         Add VDSO_SYMBOL(getcpu).
8649         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
8650         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
8651         Add VDSO_SYMBOL(getcpu).
8652         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
8653         New define HAVE_GETCPU_VSYSCALL.
8654         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8655
8656 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8657
8658         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
8659         instead of <sysdeps/x86_64/cacheinfo.c>.
8660         * sysdeps/x86_64/cacheinfo.c: Moved to ...
8661         * sysdeps/x86/cacheinfo.c: Here.
8662
8663 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8664
8665         * malloc/malloc-internal.h: Adjust header file guard.
8666
8667 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8668
8669         [BZ #19787]
8670         * inet/getnameinfo.c (check_sprintf_result): New function.
8671         (CHECKED_SNPRINTF): New macro.
8672         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
8673         to the host buffer.
8674         (gni_host_local): Use checked_copy to copy the host name.
8675         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
8676         (gni_serv_local): Use checked_copy to copy the service name.
8677         (getnameinfo): Remove unnecessary truncation of result buffers.
8678
8679 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8680
8681         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
8682         in case of inet_ntop failure.
8683
8684 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8685
8686         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
8687         avoid long lines.
8688         (gni_host_inet_numeric): Likewise.  Reduce scope of local
8689         variables.
8690         (gni_host_inet, gni_host_local): Add comment.
8691         (gni_host): Add comment.  Use temporary to avoid long lines.
8692
8693 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8694
8695         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
8696         registers specifiers where general purpose registers specifiers should
8697         have been used.
8698
8699 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8700
8701         [BZ #19779]
8702         CVE-2016-1234
8703         Avoid copying names of directory entries.
8704         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
8705         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
8706         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
8707         (struct readdir_result): New type.
8708         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
8709         (GL_READDIR): New macros.
8710         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
8711         (convert_dirent, convert_dirent64): New functions.
8712         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
8713         convert_dirent64.  Adjust references to the readdir result.
8714         * sysdeps/unix/sysv/linux/i386/glob64.c:
8715         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
8716         * posix/bug-glob2.c (LONG_NAME): Define.
8717         (filesystem): Add LONG_NAME.
8718         (my_DIR): Increase the size of room_for_dirent.
8719
8720 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
8721
8722         [BZ #20041]
8723         * misc/sys/select.h (__need_timespec): Only define if
8724         [__USE_XOPEN2K].
8725         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
8726         variable.
8727         (test-xfail-XPG4/utmpx.h/conform): Likewise.
8728         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
8729         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
8730
8731 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8732             Segher Boessenkool  <segher@gcc.gnu.org>
8733
8734         [BZ #20004]
8735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
8736         (__novec_swapcontext): Add missing load.
8737
8738 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
8739
8740         [BZ #20023]
8741         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
8742         <time.h>.
8743         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
8744         variable.
8745         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
8746
8747 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8748
8749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
8750         flags CLONE_VM compare.
8751
8752 2016-05-02  Florian Weimer  <fweimer@redhat.com>
8753
8754         [BZ #20031]
8755         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
8756         completely empty.
8757
8758 2016-05-02  Florian Weimer  <fweimer@redhat.com>
8759
8760         [BZ #19573]
8761         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
8762         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
8763         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
8764         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
8765         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
8766         (hesiod_free_list): Mark as hidden.
8767         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
8768         res_set, res_get.
8769         * hesiod/hesiod.c: Remove unnecessary forward declarations.
8770         (init, __hesiod_res_get, __hesiod_res_set): Remove.
8771         (hesiod_init): Remove obsolete res_ninit call.
8772         (hesiod_end): Do not free resolver state.  Do not invoke callback.
8773         (hesiod_bind): Do not call init.
8774         (get_txt_records): Use res_mkquery, res_send instead of
8775         res_nmkquery, res_nsend.
8776         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
8777         instead of _nss_hesiod_init.
8778         (_nss_hesiod_initgroups_dyn): Likewise.
8779         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
8780         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
8781         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
8782
8783 2016-05-02  Florian Weimer  <fweimer@redhat.com>
8784
8785         * hesiod/hesiod_p.h (DEF_RHS): Remove.
8786         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
8787
8788 2016-05-02  Florian Weimer  <fweimer@redhat.com>
8789
8790         * hesiod/hesiod.h: Remove RCS keyword.
8791         * hesiod/hesiod_p.h: Likewise.
8792
8793         * hesiod/hesiod.c: Likewise.
8794
8795 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
8796
8797         [BZ #12450]
8798         * locale/iso-639.def: Add Samogitian/sgs.
8799
8800 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
8801
8802         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
8803
8804         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
8805
8806 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
8807             Carlos O'Donell  <carlos@redhat.com>
8808
8809         [BZ #19072]
8810         * grp/Makefile (headers): Add grp-merge.h
8811         (routines): Add grp-merge.
8812         * grp/getgrgid_r.c: Include grp-merge.h.
8813         (DEEPCOPY_FN): Define.
8814         (MERGE_FN): Define.
8815         * grp/getgrname_r.c: Include grp-merge.h.
8816         (DEEPCOPY_FN): Define.
8817         (MERGE_FN): Define.
8818         * grp/grp-merge.c: New file.
8819         * grp/grp-merge.h: New file.
8820         * include/grp-merge.h: New file.
8821         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
8822         __copy_grp@GLIBC_PRIVATE.
8823         * manual/nss.texi (Actions in the NSS configuration): Describe
8824         return, continue, and merge.
8825         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
8826         (DEEPCOPY_FN): Define.
8827         (MERGE_FN): Define.
8828         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
8829         (DEEPCOPY_FN): Define.
8830         (MERGE_FN): Define.
8831         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
8832         [!MERGE_FN]: Define __merge_einval.
8833         (CHECK_MERGE): Define.
8834         (REENTRANT_NAME): Process merge if do_merge is true.
8835         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
8836         (__nss_getent_r): Likewise.
8837         * nss/nsswitch.c (nss_parse_service_list): Likewise.
8838         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
8839
8840 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8841
8842         [BZ #20012]
8843         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
8844         length to calculate the buffer to read.
8845         (fmemopen_write): Set the buffer position based on bytes written.
8846         (fmemopen_seek): Return EINVAL for invalid whence modes.
8847
8848         [BZ #19957]
8849         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
8850         tst-getpid2.
8851         (test): Add tst-clone2.
8852         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
8853         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
8854         pid/tid fields for CLONE_VM.
8855         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
8856         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
8857         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
8858         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
8859         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
8860         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
8861         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
8862         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
8863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
8864         Likewise.
8865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
8866         Likewise.
8867         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
8868         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
8869         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
8870         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
8871         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
8872         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
8873         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
8874         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
8875
8876 2016-04-29  Florian Weimer  <fweimer@redhat.com>
8877
8878         [BZ #19642]
8879         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
8880         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
8881         (gni_serv_local, gni_serv): New functions extracted from
8882         getnameinfo.
8883         (getnameinfo): Call gni_host and gni_serv to perform the
8884         processing.  Always free scratch buffer.
8885
8886 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8887
8888         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
8889         remaining bytes in the dest string, with zeros.
8890
8891 2016-04-29  Florian Weimer  <fweimer@redhat.com>
8892
8893         [BZ #20010]
8894         CVE-2016-3706
8895         * sysdeps/posix/getaddrinfo.c
8896         (convert_hostent_to_gaih_addrtuple): New function.
8897         (gethosts): Call convert_hostent_to_gaih_addrtuple.
8898         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
8899         AF_INET data.
8900
8901 2016-04-29  Florian Weimer  <fweimer@redhat.com>
8902
8903         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
8904         callback function gl_readdir.
8905         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
8906         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
8907         (glob_in_dir): Remove len.  Use strdup instead of malloc and
8908         memcpy to copy the name.
8909         * manual/pattern.texi (Calling Glob): Document requirements for
8910         implementations of the gl_readdir callback function.
8911         * manual/examples/mkdirent.c: New example.
8912         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
8913         per the manual guidance.
8914         * posix/tst-gnuglob.c (my_readdir): Likewise.
8915
8916 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
8917
8918         [BZ #20014]
8919         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
8920         not [__USE_POSIX].
8921         (getchar_unlocked): Likewise.
8922         (putc_unlocked): Likewise.
8923         (putchar_unlocked): Likewise.
8924         (flockfile): Likewise.
8925         (ftrylockfile): Likewise.
8926         (funlockfile): Likewise.
8927         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
8928         variable.
8929         (test-xfail-XPG4/stdio.h/conform): Likewise.
8930
8931         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
8932         Expect constant.
8933         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
8934         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
8935         variable.
8936         (test-xfail-XPG4/langinfo.h/conform): Likewise.
8937         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
8938
8939         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
8940         [__USE_LARGEFILE64] (off64_t): Likewise.
8941         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
8942         variable.
8943
8944 2016-04-28  Florian Weimer  <fweimer@redhat.com>
8945
8946         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
8947
8948 2016-04-28  Florian Weimer  <fweimer@redhat.com>
8949
8950         * resolv/inet_addr.c: Reindent preprocessor conditionals.
8951         * resolv/res_init.c: Likewise.
8952         * resolv/res_mkquery.c: Likewise.
8953
8954 2016-04-28  Florian Weimer  <fweimer@redhat.com>
8955
8956         * resolv/res_init.c (isascii): Do not define.  Use definition in
8957         <ctype.h>.
8958         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
8959         (LOG_AUTH): Remove.
8960         (SPRINTF): Remove, adjust caller.
8961         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
8962
8963 2016-04-28  Florian Weimer  <fweimer@redhat.com>
8964
8965         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
8966         SUNSECURITY conditional.
8967         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
8968
8969 2016-04-28  Florian Weimer  <fweimer@redhat.com>
8970
8971         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
8972         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
8973         Remove BSD-related preprocessor conditionals.
8974         * conf/portability.h: Remove.
8975
8976 2016-04-28  Florian Weimer  <fweimer@redhat.com>
8977
8978         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
8979         * resolv/res_data.c: Likewise.
8980
8981 2016-04-28  Florian Weimer  <fweimer@redhat.com>
8982
8983         * resolv/res_comp.c: Remove code conditional on __ultrix__.
8984         * resolv/res_data.c: Remove code conditional on ultrix.
8985
8986 2016-04-28  Florian Weimer  <fweimer@redhat.com>
8987
8988         * resolv/res_init.c (RFC1535): Do not define.  Remove
8989         RFC1535 preprocessor conditionals.
8990         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
8991         because there configuration options which make the resolver
8992         behavior different.
8993
8994 2016-04-28  Florian Weimer  <fweimer@redhat.com>
8995
8996         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
8997         RESOLVSORT preprocessor conditionals.
8998         * resolv/nss_dns/dns-host.c: Likewise.
8999         * resolv/res_init.c: Likewise.
9000
9001 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9002
9003         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
9004         is never defined.
9005
9006 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9007
9008         * inet/inet_lnaof.c: Remove SCSS keyword.
9009         * inet/inet_mkadr.c: Likewise.
9010         * inet/inet_net.c: Likewise.
9011         * inet/inet_netof.c: Likewise.
9012         * inet/rcmd.c: Likewise.
9013         * inet/rexec.c: Likewise.
9014         * inet/ruserpass.c: Likewise.
9015
9016 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9017
9018         * resolv/inet_addr.c: Remove _LIBC conditionals.
9019         * resolv/res_data.c: Likewise.
9020         * resolv/res_init.c: Likewise.
9021         * resolv/res_mkquery.c: Likewise.
9022         * resolv/res_libc.c: Update comment.
9023         * resolv/README: Update.
9024
9025 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9026
9027         * resolv/gethnamaddr.c: Remove SCSS keyword.
9028         * resolv/herror.c: Likewise.
9029         * resolv/inet_addr.c: Likewise.
9030         * resolv/inet_net_ntop.c: Likewise.
9031         * resolv/inet_net_pton.c: Likewise.
9032         * resolv/inet_neta.c: Likewise.
9033         * resolv/inet_ntop.c: Likewise.
9034         * resolv/inet_pton.c: Likewise.
9035         * resolv/ns_date.c: Remove RCS keyword.
9036         * resolv/ns_name.c: Likewise.
9037         * resolv/ns_netint.c: Likewise.
9038         * resolv/ns_parse.c: Likewise.
9039         * resolv/ns_print.c: Likewise.
9040         * resolv/ns_samedomain.c: Likewise.
9041         * resolv/ns_ttl.c: Likewise.
9042         * resolv/nsap_addr.c: Likewise.
9043         * resolv/res_comp.c: Remove SCSS and RCS keyword.
9044         * resolv/res_data.c: Remove RCS keyword.
9045         * resolv/res_debug.c: Remove SCSS and RCS keyword.
9046         * resolv/res_init.c: Likewise.
9047         * resolv/res_mkquery.c: Likewise.
9048         * resolv/res_query.c: Likewise.
9049         * resolv/res_send.c: Likewise.
9050
9051 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9052
9053         * conform/data/stdio.h-data (fdopen): Expect also for
9054         [XPG3 || XPG4].
9055
9056         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
9057         (fseeko): Likewise.
9058         (ftello): Likewise.
9059         (ftrylockfile): Likewise.
9060         (funlockfile): Likewise.
9061         (getc_unlocked): Likewise.
9062         (getchar_unlocked): Likewise.
9063         (putc_unlocked): Likewise.
9064         (putchar_unlocked): Likewise.
9065
9066 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9067
9068         [BZ #19868]
9069         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
9070         DNS packet syntax checks (which were not needed before).  Skip
9071         over non-PTR records.
9072
9073 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9074
9075         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
9076         definition.  Include <stddef.h> instead.
9077
9078 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9079
9080         [BZ #19831]
9081         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
9082         function.
9083         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
9084         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
9085
9086 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9087
9088         [BZ #19862]
9089         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
9090         (getanswer_r): Do not call syslog.
9091         (gaih_getanswer_slice): Likewise.
9092         * resolv/gethnamaddr.c (AskedForGot): Remove.
9093         (getanswer): Do not call syslog.
9094         (gethostbyaddr): Likewise.
9095
9096 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9097
9098         * conform/data/signal.h-data (union sigval): Expect also if
9099         [XOPEN2K].
9100         (struct sigevent): Likewise.
9101         (SIGEV_NONE): Likewise.
9102         (SIGEV_SIGNAL): Likewise.
9103         (SIGEV_THREAD): Likewise.
9104         (SIGRTMIN): Likewise.
9105         (SIGRTMAX): Likewise.
9106         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
9107         variable.
9108         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
9109
9110 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9111
9112         [BZ #19830]
9113         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
9114         (gaih_getanswer_slice): Likewise.
9115         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
9116         Also check for availability of RR metadata.
9117
9118 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9119
9120         [BZ #19825]
9121         * resolv/res_send.c (send_vc): Remove early *resplen2
9122         initialization.  Set *resplen2 on socket error.  Call
9123         close_and_return_error for other errors.
9124
9125 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
9126
9127         * sysdeps/unix/sysv/linux/netiucv/iucv.h
9128         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
9129         (SCM_IUCV_TRGCLS): New define.
9130
9131 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9132
9133         [BZ #20005]
9134         * libio/fmemopen.c (fmemopen_write): Update internal position after
9135         write.
9136         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
9137         * stdio-common/tst-fmemopen4.c: New file..
9138
9139 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
9140
9141         [BZ #19996]
9142         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
9143         not [__USE_XOPEN2K].
9144         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
9145         variable.
9146
9147         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
9148         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
9149         variable.
9150
9151         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
9152         [__USE_XOPEN2K8].
9153         [__USE_LARGEFILE64] (off64_t): Likewise.
9154         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
9155         variable.
9156
9157 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
9158
9159         [BZ #19989]
9160         * libio/stdio.h (cuserid): Do not declare if
9161         [__USE_XOPEN2K && !__USE_GNU].
9162         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
9163         variable.
9164
9165 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9166
9167         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9168         (sysdep_routines): Add P8 and PPC64 strcspn targets.
9169         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9170         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
9171         ifunc'ed strcspn.
9172         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9173         [EALIGN]: Removed.
9174         [END]: Likewise
9175         [STRSPN]: Define instead of the above to control symbol name.
9176         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
9177         New file.
9178         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
9179         Likewise.
9180         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
9181         Likewise.
9182         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
9183         Likewise.
9184         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9185         [INITIAL_MASK]: New macro.
9186         [STRCSPN]: Likewise.
9187         [UPDATE_MASK]: Likewise.
9188         [USE_AS_STRCSPN]: Lisewise.
9189
9190 2016-04-25  Florian Weimer  <fweimer@redhat.com>
9191
9192         [BZ #19931]
9193         * stdio-common/tst-vfprintf-width-prec.c: New file.
9194         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
9195         (tests-special): Add tst-vfprintf-width-prec-mem.out.
9196         (generated): Add mtrace-related files.
9197         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
9198         (tst-%-mem.out): New pattern rule, replaces
9199         tst-printf-bz18872-mem.out.
9200         * stdio-common/vfprintf.c (vfprintf): When handling a precision
9201         specifier, deallocate any previously allocated work buffer.
9202
9203 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9204
9205         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
9206         Add nop before __startcontext, add explaining comments.
9207
9208 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
9209
9210         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
9211         any more. Notably since IPV6_PKTINFO has been reintroduced with a
9212         completely different API.
9213
9214         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
9215         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
9216         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
9217         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
9218         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
9219         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
9220         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
9221         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
9222         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
9223         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
9224
9225 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
9226
9227         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
9228
9229 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
9230
9231         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
9232         when it is the default of 0.
9233
9234 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9235
9236         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
9237         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9238         (sysdep_routines): Add new strcasestr targets.
9239         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9240         (__libc_ifunc_impl_list): Likewise.
9241         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
9242         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
9243         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
9244         * sysdeps/powerpc/powerpc64/power8/Makefile:
9245         New file to add strcasestr-ppc64 to sysdep_routines.
9246         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
9247         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
9248
9249 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
9250
9251         * benchtests/Makefile (wcsmbs-benchset): Include only for
9252         native builds and runs.
9253         (LOCALES): Likewise.
9254         (bench-build): Build timing-type here instead of the bench
9255         target.  Generate locale only for native builds.
9256         * benchtests/README: Add note for cross-building.
9257
9258         * benchtests/Makefile (bench-clean): Clean up extra-objs.
9259
9260         * benchtests/README: Update README to include instructions on
9261         using bench-build.
9262
9263         * Makefile.in (bench-build): New target.
9264         * Rules (PHONY): Add bench-build target.
9265         * benchtests/Makefile (bench): Depend on bench-build.
9266         (bench-build): New target.
9267
9268 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9269
9270         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
9271         profil_reply_port.
9272         (profile_waiter): Do not initialize profil_reply_port.
9273         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
9274         frequency instead of tick length in us.
9275
9276 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
9277
9278         [BZ #18712]
9279         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
9280         (__old_mempcpy_small): Likewise.
9281         (__old_strcpy_small): Likewise.
9282         (__old_stpcpy_small): Likewise.
9283         (__old_strpbrk_c2): Fix compat symbol name.
9284         (__old_strpbrk_c3): Likewise.
9285         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
9286         (__mempcpy_small): Remove.
9287         (__strcpy_small): Remove.
9288         (__stpcpy_small): Remove.
9289
9290 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
9291
9292         [BZ #19400]
9293         * locale/iso-639.def: Add the Talossan/tzl language.
9294
9295 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9296
9297         [BZ #16983]
9298         * locale/programs/ld-address.c (address_finish): Update postal_fmt
9299         comment.  Add "ln" to strchr check on postal_fmt.
9300
9301 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9302
9303         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
9304         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
9305         tel_dom_fmt.
9306
9307 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9308
9309         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9310         (sysdep_routines): Added __strlen_power8.
9311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
9312         __strlen_power8 entry.
9313         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
9314         Implementation for POWER8.
9315         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
9316         for __strlen_power8.
9317         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
9318         Implementation for POWER8.
9319
9320 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
9321
9322         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
9323
9324 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
9325
9326         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
9327         Goldmont and Airmont processors.
9328
9329 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
9330
9331         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
9332         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
9333         (__STRING2_SMALL_GET32): Remove.
9334         (memset): Remove.
9335         (__memset_1): Remove.
9336         (__memset_gc): Remove.
9337         (__mempcpy): Remove.
9338         (mempcpy): Remove.
9339         (__mempcpy_args): Remove.
9340         (strchr): Remove.
9341         (strcpy): Remove.
9342         (strcpy_args): Remove.
9343         (__stpcpy_args): Remove.
9344         (__strcmp_cc): Remove.
9345         (__strcmp_gc): Remove.
9346         (strstr): Remove.
9347
9348 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
9349
9350         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
9351         * nis/nis_call.c (nis_server_cache_add): Likewise.
9352
9353 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9354
9355         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
9356
9357 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9358
9359         * malloc/arena.c (__malloc_fork_lock_parent)
9360         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
9361         internal_function attribute.
9362
9363 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
9364
9365         * stdio-common/printf_fp.c (__printf_fp_l):
9366         Rename ___printf_fp_l to __printf_fp_l and
9367         remove strong alias. Use libc_hidden_def instead
9368         of ldbl_hidden_def macro.
9369
9370 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9371
9372         Remove malloc hooks from fork handler.  They are no longer needed
9373         because malloc runs right before fork, and no malloc calls from
9374         other fork handlers are not possible anymore.
9375         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
9376         declarations.
9377         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
9378         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
9379         (atfork_recursive_cntr): Remove.
9380         (__malloc_fork_lock_parent): Do not override malloc hooks and
9381         thread_arena.
9382         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
9383         thread_arena.
9384         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
9385         thread_arena instead of save_arena.
9386
9387 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9388
9389         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
9390         (thread_atfork, thread_atfork_static): Remove.
9391         * sysdeps/mach/hurd/malloc-machine.h:
9392         (thread_atfork, thread_atfork_static): Remove.
9393
9394 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9395
9396         [BZ #19431]
9397         Run the malloc fork handler as late as possible to avoid deadlocks.
9398         * malloc/malloc-internal.h: New file.
9399         * malloc/malloc.c: Include it.
9400         * malloc/arena.c (ATFORK_MEM): Remove.
9401         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
9402         Update comment.
9403         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
9404         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
9405         Remove outdated comment.
9406         (ptmalloc_init): Do not call thread_atfork.  Remove
9407         thread_atfork_static.
9408         * malloc/tst-malloc-fork-deadlock.c: New file.
9409         * Makefile (tests): Add tst-malloc-fork-deadlock.
9410         (tst-malloc-fork-deadlock): Link against libpthread.
9411         * manual/memory.texi (Aligned Memory Blocks): Update safety
9412         annotation comments.
9413         * sysdeps/nptl/fork.c (__libc_fork): Call
9414         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
9415         __malloc_fork_unlock_child.
9416         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9417
9418 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9419
9420         [BZ #19613]
9421         Remove union wait.
9422         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
9423         (w_stopsig, w_stopval): Remove.
9424         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
9425         stat_loc argument.
9426         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
9427         (__WAIT_STATUS_DEFN): Remove.
9428         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9429         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
9430         (wait, wait3, wait4): Use int * for the stat_loc argument.
9431         * posix/wait.c (__wait): Likewise.
9432         * posix/wait3.c (__wait3): Likewise.
9433         * posix/wait4.c (__wait4): Likewise.
9434         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
9435         (__WAIT_STATUS_DEFN): Remove.
9436         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9437         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
9438         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
9439         argument.
9440         * sysdeps/posix/wait.c (__libc_wait): Likewise.
9441         * sysdeps/posix/wait3.c (__wait3): Likewise.
9442         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
9443         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9444         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
9445         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
9446         stat_loc argument.
9447         * manual/process.texi (BSD Wait Functions): Remove union wait.
9448
9449 2016-04-13  Andreas Schwab  <schwab@suse.de>
9450
9451         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
9452         (test-extras): Add tst-tlsalign-vars.
9453         * math/Makefile: Wrap long lines.
9454         (libm-vec-test-wrappers): Define.
9455         (test-extras): Add $(libm-vec-test-wrappers).
9456         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
9457         * nss/Makefile (extra-test-objs): Add nss_test1.os.
9458         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
9459         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
9460         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
9461         (extra-test-objs): Add corresponding objects.
9462
9463 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
9464
9465         [BZ #19928]
9466         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
9467         New.
9468         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
9469         times of shared cache size.
9470         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
9471         (VMOVNT): New.
9472         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
9473         (VMOVNT): Likewise.
9474         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9475         (VMOVNT): Likewise.
9476         (VMOVU): Changed to movups for smaller code sizes.
9477         (VMOVA): Changed to movaps for smaller code sizes.
9478         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
9479         comments.
9480         (PREFETCH): New.
9481         (PREFETCH_SIZE): Likewise.
9482         (PREFETCHED_LOAD_SIZE): Likewise.
9483         (PREFETCH_ONE_SET): Likewise.
9484         Rewrite to use forward and backward loops, which move 4 vector
9485         registers at a time, to support overlapping addresses and use
9486         non temporal store if size is above the threshold and there is
9487         no overlap between destination and source.
9488
9489 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
9490
9491         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
9492         Include dl-vdso.
9493         * sysdeps/unix/sysv/linux/mips/Versions: Add
9494         __vdso_clock_gettime.
9495         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
9496         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
9497         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
9498         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
9499         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
9500         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
9501         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
9502         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9503         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9504
9505 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9506
9507         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
9508         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
9509         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
9510         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
9511         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
9512         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
9514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
9515         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
9516         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
9517         syscalls generation.
9518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9519         [__NR_pwrite64] (__NR_write): Remove define.
9520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9521         [__NR_pwrite64] (__NR_write): Remove define.
9522         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
9523         Remove define.
9524         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
9525         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
9526         Remove define.
9527         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
9528         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
9529         Linux implementation as base.
9530         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9531
9532         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
9533         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
9534         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
9535         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
9536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
9537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
9538         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
9539         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
9540         syscall generation.
9541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9542         [__NR_pread64] (__NR_pread): Remove define.
9543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9544         [__NR_pread64] (__NR_pread): Likewise.
9545         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
9546         define.
9547         (__libc_pread): Use SYSCALL_LL macro on offset argument.
9548         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
9549         Remove define.
9550         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
9551         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
9552         Linux implementation as base.
9553         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9554         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
9555         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9556
9557         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
9558         definition.
9559         (__ALIGNMENT_COUNT): Likewise.
9560         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
9561         (__ALIGNMENT_COUNT): Likewise.
9562         (SYSCALL_LL): New define.
9563         (SYSCALL_LL64): Likewise.
9564         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
9565         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
9566         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
9567         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
9568
9569         * sysdeps/unix/sysv/linux/arm/kernel-features.h
9570         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
9571         * sysdeps/unix/sysv/linux/mips/kernel-features.h
9572         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9573         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9574         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9575
9576 2016-04-11  Florian Weimer  <fweimer@redhat.com>
9577
9578         [BZ #19865]
9579         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
9580         original buffer before retry.
9581
9582 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9583
9584         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
9585         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
9586         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
9587         GLRO(dl_auxv) list.
9588         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
9589         including <ldsodefs.h>.
9590         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
9591
9592 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
9593
9594         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
9595         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
9596         $(CPPFLAGS).
9597
9598 2016-04-09  Khem Raj  <raj.khem@gmail.com>
9599
9600         [BZ #17950]
9601         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
9602         Add -mfpmath=387.
9603
9604 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
9605
9606         * sysdeps/i386/configure.ac: Change == to = when calling test.
9607         * sysdeps/x86_64/configure.ac: Likewise.
9608         * sysdeps/i386/configure: Regenerated.
9609         * sysdeps/x86_64/configure: Likewise.
9610
9611 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
9612
9613         [BZ #16137]
9614         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
9615         * benchtests/bench-strcoll.c (input_files): Likewise.
9616         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
9617         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
9618         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
9619
9620 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
9621
9622         [BZ #19929]
9623         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
9624         [__USE_XOPEN2K8 && !__USE_GNU].
9625         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
9626         variable.
9627
9628         [BZ #19925]
9629         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
9630         define if [!__USE_MISC && __USE_XOPEN2K].
9631         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
9632         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
9633         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
9634         Likewise.
9635         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
9636         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
9637         variable.
9638         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
9639
9640 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9641
9642         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9643         (sysdep_routines): Add new strspn targets.
9644         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9645         (__libc_ifunc_impl_list): Add strspn.
9646         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9647         New file.
9648         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
9649         Likewise.
9650         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
9651         Likewise.
9652         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9653         Likewise.
9654
9655 2016-04-07  Florian Weimer  <fweimer@redhat.com>
9656
9657         * misc/hsearch_r.c: Include <limits.h>.
9658
9659 2016-04-07  Florian Weimer  <fweimer@redhat.com>
9660
9661         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
9662
9663 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9664
9665         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
9666         (MEMCPY_SYMBOL): New.
9667         (MEMPCPY_SYMBOL): Likewise.
9668         (MEMMOVE_CHK_SYMBOL): Likewise.
9669         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
9670         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
9671         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
9672         Provide alias for memcpy in libc.a and ld.so.
9673
9674 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9675
9676         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
9677         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
9678         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
9679         Disabled fro now.
9680         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
9681         symbols.  Properly check USE_MULTIARCH on __memset symbols.
9682
9683 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9684
9685         * benchtests/Makefile (string-benchset): Add memcpy-large,
9686         memmove-large and memset-large.
9687         * benchtests/bench-memcpy-large.c: New file.
9688         * benchtests/bench-memmove-large.c: Likewise.
9689         * benchtests/bench-memmove-large.c: Likewise.
9690         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
9691
9692 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
9693
9694         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
9695         32-bit displacement to avoid long nop between instructions.
9696
9697 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
9698
9699         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
9700         a comment on VMOVU and VMOVA.
9701
9702 2016-04-04  Florian Weimer  <fweimer@redhat.com>
9703
9704         [BZ #19633]
9705         Use specified locale for number formatting in strfmon_l.
9706         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
9707         (__nl_lookup_word): New inline functions.
9708         * include/printf.h (__print_fp_l): Declare.
9709         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
9710         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
9711         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
9712         (___printf_fp): New function.
9713         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
9714         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
9715         * stdlib/tst-strfmon_l.c (do_test): New test.
9716         * stdlib/Makefile (tests): Add kt.
9717         (LOCALES): Build additional locales.
9718         (tst-strfmon_l.out): Require locales.
9719
9720 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
9721
9722         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
9723         if not in libc.
9724         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
9725         Likewise.
9726         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
9727         Likewise.
9728         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
9729         Likewise.
9730
9731 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
9732
9733         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
9734         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
9735         with unaligned_erms.
9736         (__memmove_erms): Skip if source == destination.
9737         (__memmove_unaligned_erms): Don't check source == destination
9738         first.
9739
9740 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
9741
9742         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
9743         bit_arch_Fast_Copy_Backward for Intel Core proessors.
9744
9745 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9746
9747         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
9748         * string/strspn.c (strspn): Likewise.
9749
9750 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
9751
9752         * benchtests/bench-memset.c (do_test): Support 64-byte
9753         alignment.
9754         (test_main): Test 64-byte alignment.
9755
9756 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
9757
9758         * benchtests/bench-memmove.c (test_main): Test 64-byte
9759         alignment.
9760
9761 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
9762
9763         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
9764
9765 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9766
9767         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
9768         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
9769         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
9770
9771         * string/strpbrk.c (strpbrk): Rewrite function.
9772         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
9773         (__strpbrk_c2): Likewise.
9774         (__strpbrk_c3): Likewise.
9775         * string/string-inlines.c
9776         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
9777         Likewise.
9778         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
9779         Likewise.
9780
9781         * string/strspn.c (strcspn): Rewrite function.
9782         * string/bits/string2.h (strspn): Use __builtin_strcspn.
9783         (__strspn_c1): Remove inline function.
9784         (__strspn_c2): Likewise.
9785         (__strspn_c3): Likewise.
9786         * string/string-inlines.c
9787         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
9788         compatibility symbol.
9789         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
9790         Likewise.
9791         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
9792         Likewise.
9793         * string/string-inlines.c: Include generic version.
9794
9795 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
9796             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9797
9798         * string/Version (libc): Add GLIBC_2.24.
9799         * string/strcspn.c (strcspn): Rewrite function.
9800         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
9801         (__strcspn_c1): Remove inline function.
9802         (__strcspn_c2): Likewise.
9803         (__strcspn_c3): Likewise.
9804         * string/string-inline.c
9805         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
9806         compatibility symbol.
9807         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
9808         Likewise.
9809         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
9810         Likewise.
9811         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
9812
9813 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
9814
9815         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9816         Use ahi instead of aghi to adjust stack pointer.
9817
9818 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9819
9820         [BZ #19853]
9821         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
9822         TEST to take significant digits as second parameter.
9823         [TEST]: Redefine in terms of TEST_N taking 30
9824         significant digits.
9825         (do_test): Add test case to demonstrate precision
9826         failure in the ldbl-128ibm printf.
9827         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
9828         (__mpn_extract_long_double): Carry 7 extra intermediate
9829         bits of precision to aide computing difference when
9830         signs differ.
9831
9832 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
9833
9834         [BZ #19881]
9835         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9836         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
9837         memset-avx512-unaligned-erms.
9838         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9839         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
9840         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
9841         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
9842         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
9843         __memset_sse2_unaligned_erms, __memset_erms,
9844         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
9845         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
9846         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
9847         file.
9848         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
9849         Likewise.
9850         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
9851         Likewise.
9852         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
9853         Likewise.
9854
9855 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
9856
9857         [BZ #19776]
9858         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9859         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
9860         memmove-avx512-unaligned-erms.
9861         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9862         (__libc_ifunc_impl_list): Test
9863         __memmove_chk_avx512_unaligned_2,
9864         __memmove_chk_avx512_unaligned_erms,
9865         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
9866         __memmove_chk_sse2_unaligned_2,
9867         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
9868         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
9869         __memmove_avx512_unaligned_erms, __memmove_erms,
9870         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
9871         __memcpy_chk_avx512_unaligned_2,
9872         __memcpy_chk_avx512_unaligned_erms,
9873         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
9874         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
9875         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
9876         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
9877         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
9878         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
9879         __mempcpy_chk_avx512_unaligned_erms,
9880         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
9881         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
9882         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
9883         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
9884         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
9885         __mempcpy_erms.
9886         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
9887         file.
9888         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
9889         Likwise.
9890         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
9891         Likwise.
9892         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
9893         Likwise.
9894
9895 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
9896
9897         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
9898         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
9899         (La_s390_64_regs): Likewise.
9900         (La_s390_32_retval): Append vector register lrv_v24.
9901         (La_s390_64_retval): Likeweise.
9902         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
9903         Handle extended structs La_s390_32_regs and La_s390_32_retval.
9904         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
9905         Handle extended structs La_s390_64_regs and La_s390_64_retval.
9906
9907 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
9908
9909         [BZ #19916]
9910         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
9911         to create a non-vector/vector version for _dl_runtime_resolve and
9912         _dl_runtime_profile. Move implementation to ...
9913         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
9914         (_dl_runtime_resolve) Save and restore fpr/vrs.
9915         (_dl_runtime_profile) Save and restore vrs and fix some issues
9916         if _dl_call_pltexit is called.
9917         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
9918         Choose the correct resolver function if running on a machine with vx.
9919         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
9920         to create a non-vector/vector version for _dl_runtime_resolve and
9921         _dl_runtime_profile. Move implementation to ...
9922         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
9923         (_dl_runtime_resolve) Save and restore fpr/vrs.
9924         (_dl_runtime_profile) Save and restore vrs and fix some issues
9925         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
9926         Choose the correct resolver function if running on a machine with vx.
9927
9928 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9929
9930         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
9931
9932 2016-03-31  Florian Weimer  <fweimer@redhat.com>
9933
9934         [BZ #19509]
9935         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
9936         skip_map != NULL.
9937         * elf/tst-dlsym-error.c: New file.
9938         * elf/Makefile (tests): Add tst-dlsym-error.
9939         (tst-dlsym-error): Link against libdl.
9940
9941 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
9942
9943         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9944         (__ASSUME_FUTIMESAT): Remove macro.
9945         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
9946
9947 2016-03-29  Florian Weimer  <fweimer@redhat.com>
9948
9949         [BZ #19879]
9950         CVE-2016-3075
9951         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
9952         copy name.
9953
9954 2016-03-29  Florian Weimer  <fweimer@redhat.com>
9955
9956         [BZ #19837]
9957         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
9958         error if parse_line fails.
9959
9960 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
9961
9962         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
9963         (index_cpu_ERMS): Likewise.
9964         (reg_ERMS): Likewise.
9965
9966 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
9967
9968         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
9969         PER_LINUX_FDPIC): Add.
9970
9971 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
9972
9973         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
9974         memcpy-avx512-no-vzeroupper.
9975         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
9976         to ...
9977         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
9978         (MEMCPY): Don't define.
9979         (MEMCPY_CHK): Likewise.
9980         (MEMPCPY): Likewise.
9981         (MEMPCPY_CHK): Likewise.
9982         (MEMPCPY_CHK): Renamed to ...
9983         (__mempcpy_chk_avx512_no_vzeroupper): This.
9984         (MEMPCPY_CHK): Renamed to ...
9985         (__mempcpy_chk_avx512_no_vzeroupper): This.
9986         (MEMCPY_CHK): Renamed to ...
9987         (__memmove_chk_avx512_no_vzeroupper): This.
9988         (MEMCPY): Renamed to ...
9989         (__memmove_avx512_no_vzeroupper): This.
9990         (__memcpy_avx512_no_vzeroupper): New alias.
9991         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
9992
9993 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
9994
9995         [BZ #18858]
9996         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
9997         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
9998         and mempcpy-avx512-no-vzeroupper.
9999         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
10000         New.
10001         (MEMPCPY): Likewise.
10002         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
10003         (MEMPCPY_CHK): New.
10004         (MEMPCPY): Likewise.
10005         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
10006         (MEMPCPY): Likewise.
10007         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
10008         (MEMPCPY): Likewise.
10009         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
10010         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
10011         Likewise.
10012         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
10013         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
10014
10015 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10016              Amit Pawar  <Amit.Pawar@amd.com>
10017
10018         [BZ #19583]
10019         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10020         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
10021         processors.  Set Fast_Copy_Backward for AMD Excavator
10022         processors.
10023         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
10024         New.
10025         (index_arch_Fast_Unaligned_Copy): Likewise.
10026         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
10027         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
10028
10029 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10030
10031         [BZ #19791]
10032         * resolv/res_send.c (close_and_return_error): New function.
10033         (send_dg): Initialize *resplen2 after reopen failure.  Call
10034         close_and_return_error for error returns.  On error paths without
10035         __res_iclose, initialze *resplen2 explicitly.  Update comment for
10036         successful return.
10037
10038 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10039
10040         [BZ# 19860]
10041         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
10042         zero if the compiler does not provide the AVX512F bit.
10043
10044 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
10045
10046         [BZ #19848]
10047         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
10048         from 8 to 4.
10049         (__ieee754_powl): Compare integer exponent against 4 not 8.
10050         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
10051         from 8 to 4.
10052         (__ieee754_powl): Compare integer exponent against 4 not 8.
10053         * math/auto-libm-test-in: Add more tests of pow.
10054         * math/auto-libm-test-out: Regenerated.
10055         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
10056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10057
10058 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10059
10060         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
10061         Make code unconditional.
10062         [!__NR_utimensat]: Remove conditional code.
10063         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
10064         Make code unconditional.
10065         [!__NR_utimensat]: Remove conditional code.
10066         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
10067         Make code unconditional.
10068         [!__NR_utimensat]: Remove conditional code.
10069
10070 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10071
10072         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
10073         Make code unconditional.
10074
10075 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
10076
10077         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
10078         call-clobbered %eax on retry path.
10079         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10080
10081 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10082
10083         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
10084         Don't set %rcx twice before "rep movsb".
10085
10086 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10087
10088         [BZ #19583]
10089         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
10090         inline.  Check family before setting family, model and
10091         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
10092         bits here.
10093         (init_cpu_features): Replace HAS_CPU_FEATURE and
10094         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
10095         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
10096         for Intel processors with usable AVX2.  Call get_common_indeces
10097         for other processors with family == NULL.
10098         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
10099         (CPU_FEATURES_ARCH_P): Likewise.
10100         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
10101         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
10102
10103 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10104
10105         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
10106         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
10107         $(shared-thread-library) instead of hardcoding the path to libpthread.
10108
10109 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
10110
10111         * sysdeps/unix/sysv/linux/kernel-features.h
10112         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
10113         * sysdeps/unix/sysv/linux/getdents.c
10114         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
10115         [!have_no_getdents64_defined]: Likewise.
10116         (__GETDENTS): Remove __have_no_getdents64 conditional.
10117
10118 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
10119
10120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
10121         Remove macro.
10122         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
10123         <kernel-features.h>.
10124         (signalfd) [__NR_signalfd4]: Make code unconditional.
10125         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
10126
10127 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10128
10129         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
10130         style.
10131
10132 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10133
10134         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
10135         (__pthread_enable_asynccancel): Use JUMPTARGET to call
10136         __pthread_unwind.
10137         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10138         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
10139         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10140         (__condvar_cleanup1): Likewise.
10141
10142 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
10143
10144         [BZ #19822]
10145         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
10146         move it to the final $@ location.
10147
10148 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10149
10150         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
10151         access where posix_spawn success and pid argument is null.
10152         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
10153         success case.
10154
10155 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
10156
10157         * sysdeps/mach/hurd/i386/c++-types.data: New file.
10158
10159         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
10160
10161         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
10162         and __fcntl.
10163         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
10164         __fcntl only.
10165         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
10166         adding attribute_hidden to __open and __fcntl.
10167
10168         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
10169         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
10170         depend on libc-modules.h,
10171         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
10172
10173 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
10174
10175         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
10176         Remove macro.
10177         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
10178         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
10179         entry.
10180
10181         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
10182         Remove macro.
10183         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
10184         include <kernel-features.h>.
10185         [!__ASSUME_FALLOCATE]: Remove conditional code.
10186         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
10187
10188 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10189
10190         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
10191         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
10192         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
10193         (_ZGVdN4v_cos_avx2): Likewise.
10194         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
10195         (_ZGVdN4v_cos): Likewise.
10196         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
10197         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
10198         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
10199         (_ZGVdN4v_exp_avx2): Likewise.
10200         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
10201         (_ZGVdN4v_exp): Likewise.
10202         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
10203         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
10204         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
10205         (_ZGVdN4v_log_avx2): Likewise.
10206         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
10207         (_ZGVdN4v_log): Likewise.
10208         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
10209         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
10210         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
10211         (_ZGVdN4vv_pow_avx2): Likewise.
10212         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
10213         (_ZGVdN4vv_pow): Likewise.
10214         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
10215         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
10216         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
10217         (_ZGVdN4v_sin_avx2): Likewise.
10218         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
10219         (_ZGVdN4v_sin): Likewise.
10220         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
10221         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
10222         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
10223         (_ZGVdN4vvv_sincos_avx2): Likewise.
10224         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
10225         (_ZGVdN4vvv_sincos): Likewise.
10226         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
10227         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
10228         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
10229         (_ZGVbN4v_cosf_sse4): Likewise.
10230         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
10231         (_ZGVdN8v_cosf_avx2): Likewise.
10232         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
10233         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
10234         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
10235         (_ZGVbN4v_expf_sse4): Likewise.
10236         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
10237         (_ZGVdN8v_expf_avx2): Likewise.
10238         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
10239         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
10240         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
10241         (_ZGVbN4v_logf_sse4): Likewise.
10242         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
10243         (_ZGVdN8v_logf_avx2): Likewise.
10244         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
10245         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
10246         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
10247         (_ZGVbN4vv_powf_sse4): Likewise.
10248         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
10249         (_ZGVdN8vv_powf_avx2): Likewise.
10250         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
10251         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
10252         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
10253         (_ZGVbN4vvv_sincosf_sse4): Likewise.
10254         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
10255         (_ZGVdN8vvv_sincosf_avx2): Likewise.
10256         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
10257         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
10258         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
10259         (_ZGVbN4v_sinf_sse4): Likewise.
10260         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
10261         (_ZGVdN8v_sinf_avx2): Likewise.
10262         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10263         Use JUMPTARGET to call callee.
10264         (WRAPPER_IMPL_SSE2_ff): Likewise.
10265         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10266         (WRAPPER_IMPL_AVX): Likewise.
10267         (WRAPPER_IMPL_AVX_ff): Likewise.
10268         (WRAPPER_IMPL_AVX_fFF): Likewise.
10269         (WRAPPER_IMPL_AVX512): Likewise.
10270         (WRAPPER_IMPL_AVX512_ff): Likewise.
10271         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10272         Likewise.
10273         (WRAPPER_IMPL_SSE2_ff): Likewise.
10274         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10275         (WRAPPER_IMPL_AVX): Likewise.
10276         (WRAPPER_IMPL_AVX_ff): Likewise.
10277         (WRAPPER_IMPL_AVX_fFF): Likewise.
10278         (WRAPPER_IMPL_AVX512): Likewise.
10279         (WRAPPER_IMPL_AVX512_ff): Likewise.
10280         (WRAPPER_IMPL_AVX512_fFF): Likewise.
10281
10282 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10283
10284         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
10285         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
10286         qualifier.
10287         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
10288         internal_function qualifiers.
10289
10290 2016-03-15  Carlos O'Donell <carlos@redhat.com>
10291
10292         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
10293         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
10294         * math/atest-exp.c (exp_mpn): Mark chk unused.
10295         * math/atest-exp2.c (exp_mpn): Likwise.
10296         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
10297         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
10298
10299 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
10300
10301         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
10302         Remove macro.
10303         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
10304         <kernel-features.h>.
10305         [__NR_ppoll]: Make code unconditional.
10306         [!__ASSUME_PPOLL]: Remove conditional code.
10307
10308         * sysdeps/unix/sysv/linux/kernel-features.h
10309         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
10310         (__ASSUME_ACCEPT4): Likewise.
10311         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10312         Define.
10313         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
10314         Likewise.
10315         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10316         Likewise.
10317         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
10318         Likewise.
10319         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
10320         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
10321         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10322         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10323         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10324         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10325         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10326         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10327         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10328         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10329         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10330         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10331         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10332         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10333         * sysdeps/unix/sysv/linux/i386/kernel-features.h
10334         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10335         Likewise.
10336         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10337         Likewise.
10338         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10339         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10340         0x040300].
10341         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10342         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10343         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10344         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10345         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10346         0x030300].
10347         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
10348         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10349         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10350         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10351         0x040300].
10352         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10353         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10354         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10355         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10356         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10357         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10358         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10359         0x030300].
10360         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10361         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10362         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10363         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10364         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10365         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10366         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10367         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10368         * sysdeps/unix/sysv/linux/s390/kernel-features.h
10369         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10370         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10371         0x040300].
10372         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10373         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10374         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10375         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10376         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10377         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10378         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10379         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10380         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10381         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10382         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10383         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10384         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10385         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10386         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
10387         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10388         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10389         Likewise.
10390         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10391         Likewise.
10392
10393 2016-03-15  Andreas Schwab  <schwab@suse.de>
10394
10395         [BZ #19257]
10396         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
10397         statp->_u._ext.nscount as loop count.
10398
10399 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
10400
10401         * math/test-signgam-finite-c99.c: Also #undef
10402         __LIBC_INTERNAL_MATH_INLINES.
10403         * math/test-signgam-main.c: Likewise.
10404
10405 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
10406
10407         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
10408         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10409         (MADV_FREE): Likewise.
10410         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
10411         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
10412         EPOLLEXCLUSIVE.
10413
10414 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
10415
10416         * timezone/README: Remove mention of checktab.awk. Mention wiki
10417         SharedSourceFiles.
10418
10419 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
10420
10421         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
10422         WUNTRACED.
10423
10424 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10425
10426         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
10427         order to match the type of p when calling atomic_exchange_acq().
10428
10429 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10430
10431         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
10432         cfi_offset calls.
10433         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
10434         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
10435         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
10436         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
10437         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
10438
10439 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
10440
10441         * timezone/checktab.awk: Removed.
10442
10443 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
10444
10445         * manual/math.texi (Errors in Math Functions): Document relaxed
10446         accuracy goals for IBM long double.
10447         * math/libm-test.inc (test_exceptions): Always allow spurious
10448         "underflow" and "inexact" exceptions for IBM long double.
10449
10450 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10451
10452         [BZ #19762]
10453         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
10454         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
10455         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
10456         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
10457         (bit_arch_*): This for feature array.
10458         (bit_*): Renamed to ...
10459         (bit_cpu_*): This for cpu array.
10460         (index_*): Renamed to ...
10461         (index_arch_*): This for feature array.
10462         (index_*): Renamed to ...
10463         (index_cpu_*): This for cpu array.
10464         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
10465         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
10466         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
10467         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
10468         bit_##name with index_cpu_##name and bit_cpu_##name.
10469         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
10470         bit_##name with index_arch_##name and bit_arch_##name.
10471
10472 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
10473
10474         [BZ #19792]
10475         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
10476         Terminate FDE before return label.
10477
10478 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
10479
10480         [BZ #19790]
10481         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
10482         (rintl): Define as macro.
10483         [USE_AS_NEARBYINTL] (__rintl): Likewise.
10484         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
10485         of fesetround.  Ensure results are evaluated before end of scope.
10486         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
10487         USE_AS_NEARBYINTL and include s_rintl.c.
10488         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
10489         Disable exception traps in new environment.
10490         (libc_feholdsetround_ppc_ctx): Likewise.
10491
10492 2016-03-08  Roland McGrath  <roland@hack.frob.com>
10493
10494         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
10495         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
10496         (tst_audit10_aux) [__AVX512F__]: ... here.
10497
10498 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
10499
10500         * include/sys/auxv.h: New file.
10501
10502 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10503
10504         [BZ #19759]
10505         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
10506
10507 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10508
10509         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
10510         operand modifier.
10511         (feclearexcept): Likewise.
10512
10513 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
10514
10515         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
10516         to reflect the entire 32-bit HWCAP.
10517         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
10518         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
10519
10520 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10521
10522         [BZ #19783]
10523         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
10524         $(test-via-rtld-prefix).
10525         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
10526
10527 2016-03-08  Florian Weimer  <fweimer@redhat.com>
10528
10529         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
10530         union wait.  Report any non-zero exit status as error.
10531
10532 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10533
10534         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
10535         configured with --enable-hardcoded-path-in-tests.
10536
10537 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
10538
10539         [BZ #19677]
10540         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10541         (__ieee754_remainderl): Put zero low parts in canonical form.
10542         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
10543         file.  Based on
10544         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
10545         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
10546         with wrapper round test-fmodrem-ldbl-128ibm.c.
10547         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
10548         file.
10549         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
10550         Likewise.
10551         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10552         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
10553
10554 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10555
10556         [BZ #19610]
10557         * elf/ldconfig.c (opt_link): Update comment.
10558         (options): Update help string for option -X.
10559         (search_dir): Unlink stale symbolic link only if updating symbolic
10560         links.
10561         * elf/tst-ldconfig-X.sh: New file.
10562         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
10563         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
10564
10565 2016-03-07  Andreas Schwab  <schwab@suse.de>
10566
10567         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
10568         needed arguments.
10569
10570 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
10571
10572         [BZ #15333]
10573         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
10574         to lstat64.
10575
10576 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10577
10578         * libio/filedoalloc.c (isatty): Remove.
10579         (local_isatty): Add comment.  Call __isatty directly.
10580         (_IO_file_doallocate): Update comment.  Assume _LIBC.
10581         * libio/wfiledoalloc.c (isatty): Remove.
10582         (_IO_wfile_doallocate): Update comment.
10583
10584 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10585
10586         [BZ #19269]
10587         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
10588         tst-audit4-aux.o.
10589         (tst-audit10): Depend on tst-audit10-aux.o.
10590         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
10591         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
10592         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
10593         instead of inline AVX code.
10594         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
10595         instead of inline AVX512 code.
10596         * sysdeps/x86_64/tst-audit4-aux.c: New file
10597         * sysdeps/x86_64/tst-audit10-aux.c: New file
10598
10599         [BZ #19648]
10600         * test-skeleton.c (main): Do not set RLIMIT_DATA.
10601
10602 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10603
10604         [BZ #14750]
10605         [BZ #10354]
10606         [BZ #18433]
10607         * include/sched.h (__clone): Add hidden prototype.
10608         (__clone2): Likewise.
10609         * include/unistd.h (__dup): Likewise.
10610         * posix/Makefile (tests): Add tst-spawn2.
10611         * posix/tst-spawn2.c: New file.
10612         * sysdeps/posix/dup.c (__dup): Add hidden definition.
10613         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
10614         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
10615         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
10616         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
10617         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
10618         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
10619         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
10620         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
10621         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
10622         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
10623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
10624         Likewise.
10625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10626         Likewise.
10627         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
10628         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
10629         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
10630         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
10631         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
10632         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
10633         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
10634         * sysdeps/unix/sysv/linux/nptl-signals.h
10635         (____nptl_is_internal_signal): New function.
10636         * sysdeps/unix/sysv/linux/spawni.c: New file.
10637
10638         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
10639         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
10640         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
10641         * posix/tst-execvp2.c (do_test): Likewise.
10642         * posix/tst-execvp3.c (do_test): Likewise.
10643         * posix/tst-execvp4.c (do_test): Likewise.
10644         * posix/tst-execvpe1.c: New file.
10645         * posix/tst-execvpe2.c: Likewise.
10646         * posix/tst-execvpe3.c: Likewise.
10647         * posix/tst-execvpe4.c: Likewise.
10648         * posix/tst-execvpe5.c: Likewise.
10649         * posix/tst-execvpe6.c: Likewise.
10650
10651         [BZ #19534]
10652         * posix/execl.c (execl): Remove dynamic memory allocation.
10653         * posix/execle.c (execle): Likewise.
10654         * posix/execlp.c (execlp): Likewise.
10655
10656 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
10657
10658         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
10659         Replace .text with .text.avx512.
10660         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
10661         Likewise.
10662
10663 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
10664
10665         * sysdeps/generic/libnsl.abilist: New file.
10666         * sysdeps/generic/libutil.abilist: New file.
10667
10668 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
10669
10670         [BZ #19762]
10671         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
10672         HAS_ARCH_FEATURE with Fast_Rep_String.
10673         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
10674         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
10675         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
10676         Likewise.
10677         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
10678         Likewise.
10679         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
10680         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
10681         Likewise.
10682         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
10683         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
10684         Likewise.
10685
10686 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10687
10688         [BZ #19745]
10689         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
10690         with *%rax in call.
10691
10692 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10693
10694         [BZ #19745]
10695         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
10696         with *__libc_start_main@GOTPCREL(%rip) in call.
10697
10698 2016-03-04  Roland McGrath  <roland@hack.frob.com>
10699
10700         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
10701         inside conditional for nonempty $(CXX).
10702
10703         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
10704         nonempty.
10705
10706         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
10707         to test for empty $(CXX) rather than $(CXX) of "no".
10708
10709 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10710
10711         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
10712
10713 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
10714             H.J. Lu  <hongjiu.lu@intel.com>
10715
10716         [BZ #18880]
10717         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
10718         instead of Slow_BSF, and also check for Fast_Copy_Backward to
10719         enable __memcpy_ssse3_back.
10720
10721 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
10722
10723         [BZ #19758]
10724         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
10725         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
10726
10727 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10728
10729         [BZ #19490]
10730         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
10731         (__fentry__): Likewise.
10732
10733 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
10734
10735         * gmon/Makefile (noprof): Add $(sysdep_noprof).
10736         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
10737
10738 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
10739
10740         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
10741         __mcount_internal directly.
10742         (C_LABEL(__fentry__)): Likewise.
10743         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
10744         directly.
10745
10746 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
10747
10748         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
10749         (__start_context): Call __setcontext directly.
10750
10751 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
10752
10753         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10754         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10755         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
10756         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
10757         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10758         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10759         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
10760         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10761         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10762         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
10763         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
10764         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
10765         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10766         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10767         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10768         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10769         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
10770         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10771         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10772         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
10773         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
10774         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10775         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10776         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
10777         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
10778         Remove conditional code.
10779         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10780         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
10781         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10782         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10783         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
10784         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10785         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
10786         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10787         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10788         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10789         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10790         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10791
10792 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
10793
10794         * NEWS (2.23): Fix typo in bug 19048 text.
10795
10796 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
10797
10798         [BZ #14259]
10799         * Makeconfig: Rename msgcatdir to localedir.
10800         Rename inst_msgcatdir to inst_localedir.
10801         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
10802         * config.make.in: Add localedir.
10803         * elf/Makefile ($(objpfx)sotruss): Use localedir.
10804         (ldd-rewrite): Likewise.
10805         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
10806         (install-others): Use inst_localedir.
10807         (CPPFLAGS): Use localedir.
10808         * locale/Makefile (locale-CPPFLAGS): Likewise.
10809         * po/Makefile (mo-installed): Use inst_localedir.
10810
10811         [BZ #19575]
10812         * localedata/charmaps/GB18030: Update comments regarding PAU to
10813         non-PUA mappings.
10814
10815 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
10816
10817         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
10818         test for header.
10819         * sysdeps/unix/sysv/linux/configure: Regenerated.
10820         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
10821         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
10822         Remove conditional code.
10823         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
10824
10825         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
10826         Define to 3.2.0.
10827         (arch_minimum_kernel): Likewise.
10828         * sysdeps/unix/sysv/linux/configure: Regenerated.
10829         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
10830         Define to 2.6.32.
10831         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
10832         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
10833         (arch_minimum_kernel): Define to 2.6.32.
10834         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
10835         * README: Document Linux 3.2 requirement.
10836         * manual/install.texi (Linux): Document Linux 3.2 headers
10837         requirement.
10838         * INSTALL: Regenerated.
10839
10840 2016-02-24  Andreas Schwab  <schwab@suse.de>
10841
10842         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
10843         if !NO_LONG_DOUBLE.
10844
10845 2016-02-22  Roland McGrath  <roland@hack.frob.com>
10846
10847         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
10848         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
10849
10850 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
10851
10852         [BZ #19512]
10853         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
10854
10855 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
10856
10857         * posix/tst-dir.c: Include libc-internal.h.
10858
10859 2016-02-20  Florian Weimer  <fweimer@redhat.com>
10860
10861         [BZ #19056]
10862         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
10863         * manual/filesys.texi (Reading/Closing Directory): Mention
10864         deprecaion.
10865         * posix/tst-dir.c (main): Disable deprecation warning in test.
10866
10867 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
10868
10869         [BZ #19679]
10870         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
10871         Renamed to ...
10872         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
10873         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
10874         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
10875         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
10876         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
10877         * sysdeps/x86_64/dl-trampoline.h
10878         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
10879         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
10880
10881 2016-02-19  Mark Wielaard  <mjw@redhat.com>
10882
10883         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
10884
10885 2016-02-19  Mark Wielaard  <mjw@redhat.com>
10886
10887         * elf/elf.h (R_386_GOT32X): New.
10888         (R_386_NUM): Update.
10889         (R_X86_64_GOTPCRELX: New.
10890         (R_X86_64_REX_GOTPCRELX): New.
10891         (R_X86_64_NUM): Update.
10892
10893 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
10894
10895         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
10896
10897 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
10898
10899         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
10900         assign attr->stackaddr to it, and adjust it down when
10901         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
10902         [_STACK_GROWS_UP]: Delete assert.
10903         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
10904         Implement stack grows up logic.
10905         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
10906         stack grows up logic.
10907
10908 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10909
10910         * NEWS: Update with 2.24 template.
10911
10912 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
10913
10914         [BZ #19678]
10915         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
10916         Ensure +0.0 is returned when taking the next value below the least
10917         positive value.
10918
10919 2016-02-19  Florian Weimer  <fweimer@redhat.com>
10920
10921         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
10922         available.  Do not define NO_THREADS.
10923         * malloc/malloc.c: Do not check NO_THREADS.
10924         * malloc/arena.c: Likewise.
10925
10926 2016-02-19  Florian Weimer  <fweimer@redhat.com>
10927
10928         * malloc/malloc.c (__libc_mallinfo): Update comment.
10929         (struct malloc_par): Remove max_total_mem member, it was always 0.
10930         (int_mallinfo): Store 0 into usmblks (no functional change).
10931         * malloc/hooks.c (struct malloc_state): Document that
10932         max_total_mem is always 0.
10933         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
10934         always 0.
10935         * manual/memory.texi (Statistics of Malloc): Likewise.
10936
10937 2016-02-19  Florian Weimer  <fweimer@redhat.com>
10938
10939         * malloc/malloc.c (sysmalloc): Do not update arena_max.
10940         * malloc/arena.c (arena_max): Remove.
10941         (heap_trim, _int_new_arena): Do not update arena_max.
10942
10943 2016-02-19  Florian Weimer  <fweimer@redhat.com>
10944
10945         * resolv/res_init.c (res_ninit): Update comment.
10946
10947 2016-02-19  Florian Weimer  <fweimer@redhat.com>
10948
10949         [BZ #19505]
10950         * posix/spawn_int.h: Add headers and include guard.
10951         (__spawn_valid_fd): New function.
10952         * posix/spawn_faction_addopen.c
10953         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
10954         * posix/spawn_faction_addclose.c
10955         (posix_spawn_file_actions_addclose): Likewise.
10956         * posix/spawn_faction_adddup2.c
10957         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
10958         second file descriptor.
10959         * posix/spawn_valid_fd.c: New file.
10960         * posix/tst-posix_spawn-fd.c: New file.
10961         * posix/Makefile (routines): Add spawn_valid_fd.
10962         (tests): Add tst-posix_spawn-fd.
10963
10964 2016-02-19  Florian Weimer  <fweimer@redhat.com>
10965
10966         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
10967         (do_test): Limit the number of arenas, so that we can use fewer
10968         outer threads.  Limit timeout to 3 seconds, in preparation for a
10969         larger TIMEOUT value.
10970
10971 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
10972
10973         [BZ #19674]
10974         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
10975         sign in overflowing and underflowing results when overflow or
10976         underflow is detected early.  Include sign in result before rather
10977         than after scaling.
10978
10979         [BZ #19603]
10980         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10981         (__ieee754_remainderl): Adjust sign of integer version of low part
10982         when taking absolute value of high part.
10983         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10984         * math/libm-test.inc (remainder_test_data): Add another test.
10985         (remquo_test_data): Likewise.
10986
10987 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
10988
10989         [BZ #19602]
10990         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
10991         equal high parts and both low parts zero specially.
10992         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
10993         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
10994         Add test-fmodl-ldbl-128ibm.
10995
10996         [BZ #19595]
10997         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
10998         common logic for all cases of shifting subnormal results.  Do not
10999         insert sign bit in shifted mantissa.  Always pass -1023 as biased
11000         exponent to ldbl_insert_mantissa in subnormal case.
11001
11002         [BZ #19594]
11003         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
11004         on high and low parts then adjust result and use
11005         ldbl_canonicalize_int if needed.
11006
11007         [BZ #19593]
11008         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
11009         on high part and __floor or __ceil on low part then use
11010         ldbl_canonicalize_int if needed.
11011
11012         [BZ #19592]
11013         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
11014         high and low parts then use ldbl_canonicalize_int if needed.
11015
11016         [BZ #17899]
11017         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
11018         New function.
11019         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
11020         on high and low parts then use ldbl_canonicalize_int if needed.
11021
11022 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11023
11024         * configure: Regenerated.
11025
11026         * po/libc.pot: Regenerated.
11027
11028         * po/be.po: Updated translation.
11029         * po/bg.po: Likewise.
11030         * po/ca.po: Likewise.
11031         * po/cs.po: Likewise.
11032         * po/da.po: Likewise.
11033         * po/el.po: Likewise.
11034         * po/eo.po: Likewise.
11035         * po/es.po: Likewise.
11036         * po/fi.po: Likewise.
11037         * po/fr.po: Likewise.
11038         * po/gl.po: Likewise.
11039         * po/hr.po: Likewise.
11040         * po/hu.po: Likewise.
11041         * po/ia.po: Likewise.
11042         * po/id.po: Likewise.
11043         * po/it.po: Likewise.
11044         * po/ja.po: Likewise.
11045         * po/lt.po: Likewise.
11046         * po/nb.po: Likewise.
11047         * po/nl.po: Likewise.
11048         * po/pt_BR.po: Likewise.
11049         * po/rw.po: Likewise.
11050         * po/sk.po: Likewise.
11051         * po/sl.po: Likewise.
11052         * po/sv.po: Likewise.
11053         * po/tr.po: Likewise.
11054         * po/zh_CN.po: Likewise.
11055         * po/zh_TW.po: Likewise.
11056
11057         * version.h (RELEAES): Set to "development".
11058         (VERSION): Set to 2.23.90.
11059
11060         * version.h (RELEASE): Set to "stable".
11061         (VERSION): Set to 2.23.
11062         * include/feature.h (__GLIBC_MINOR__): Set to 23.
11063
11064         * NEWS: Updated fixed bugs.
11065
11066 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11067             Wilco Dijkstra  <wdijkstr@arm.com>
11068
11069         [BZ #19462]
11070         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
11071         (_STRING_INLINE_unaligned): This.
11072         * include/string.h: Include <string_private.h>.
11073         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
11074         _STRING_INLINE_unaligned.
11075         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
11076         (_STRING_INLINE_unaligned): New.
11077         * sysdeps/aarch64/string_private.h: New file.
11078         * sysdeps/generic/string_private.h: Likewise.
11079         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
11080         * sysdeps/s390/string_private.h: Likewise.
11081         * sysdeps/x86/string_private.h: Likewise.
11082         * sysdeps/m68k/m680x0/m68020/bits/string.h
11083         (_STRING_ARCH_unaligned): Renamed to ...
11084         (_STRING_INLINE_unaligned): This.
11085         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
11086         to ...
11087         (_STRING_INLINE_unaligned): This.
11088         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
11089         to ...
11090         (_STRING_INLINE_unaligned): This.
11091         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
11092         to ...
11093         (_STRING_INLINE_unaligned): This.
11094
11095 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
11096             H.J. Lu  <hongjiu.lu@intel.com>
11097
11098         [BZ #19590]
11099         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
11100         relocation.
11101
11102 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
11103
11104         [BZ #18665]
11105         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
11106         *herrno_p.
11107         (gaih_getanswer): Document functional behviour. Return tryagain
11108         if any result is tryagain.
11109         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
11110         when freed.
11111         * resolv/res_send.c: Add copyright text.
11112         (__libc_res_nsend): Document that MAXPACKET is expected.
11113         (send_vc): Document. Remove buffer reuse.
11114         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
11115         size of the buffer. Add Dprint for truncated UDP buffer.
11116
11117 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
11118
11119         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
11120         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
11121         * INSTALL: Regenerate.
11122
11123 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
11124             Jonathan Wakely  <jwakely@redhat.com>
11125             Carlos O'Donell  <carlos@redhat.com>
11126
11127         [BZ 19439]
11128         * math/Makefile (tests): Add test-math-isinff.
11129         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
11130         * math/bits/mathcalls.h [__USE_MISC]: Use
11131         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
11132         functions not in C++11 and which don't conflict e.g. isinff,
11133         isinfl etc.
11134         * math/test-math-isinff.cc: New file.
11135
11136 2016-02-12  Florian Weimer  <fweimer@redhat.com>
11137
11138         * misc/bug18240.c (do_test): Set RLIMIT_AS.
11139
11140 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11141
11142         [BZ #19529]
11143         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
11144
11145 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11146
11147         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
11148
11149 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
11150
11151         [BZ #19550]
11152         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
11153         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
11154         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
11155         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
11156         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
11157         New syscall entry.
11158         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
11159         New syscall entry.
11160         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
11161         syscall entry.
11162
11163 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
11164
11165         [BZ #18240]
11166         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
11167         unsigned int wraparound.
11168
11169 2016-01-27  Florian Weimer  <fweimer@redhat.com>
11170
11171         [BZ #18240]
11172         * misc/bug18240.c: New test.
11173         * misc/Makefile (tests): Add it.
11174
11175 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
11176             Joseph Myers  <joseph@codesourcery.com>
11177
11178         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
11179         load in branch delay slot when less than a word of input left.
11180
11181 2016-01-27  Andreas Schwab  <schwab@suse.de>
11182
11183         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
11184         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
11185         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
11186         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
11187
11188 2016-01-26  David S. Miller  <davem@davemloft.net>
11189
11190         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
11191
11192 2016-01-25  David S. Miller  <davem@davemloft.net>
11193
11194         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
11195         __sqrtl_finite.
11196         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
11197         instead using versioned_symbol.
11198         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
11199         of entries.
11200
11201         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
11202         __sqrtl_finite to GLIBC_2.23
11203
11204 2016-01-25  Ricchard Henderson  <rth@redhat.com>
11205
11206         * sysdeps/alpha/fpu/libm-test-ulps: Update.
11207
11208 2016-01-25  Andreas Schwab  <schwab@suse.de>
11209
11210         [BZ #17514]
11211         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
11212         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
11213         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
11214         * nptl/tst-mutex-errorcheck.c: New file.
11215
11216 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11217
11218         [BZ #18560]
11219         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
11220         (IPCOP_semop): Likewise.
11221         (IPCOP_semget): Likewise.
11222         (IPCOP_semctl): Likewise.
11223         (IPCOP_msgsnd): Likewise.
11224         (IPCOP_msgrcv): Likewise.
11225         (IPCOP_msgget): Likewise.
11226         (IPCOP_msgctl): Likewise.
11227         (IPCOP_shmat): Likewise.
11228         (IPCOP_shmdt): Likewise.
11229         (IPCOP_shmget): Likewise.
11230         (IPCOP_shmctl): Likewise.
11231
11232 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11233
11234         * string/tst-endian.c: Include <libc-internal.h>.
11235         (do_test): Ignore tautological-compare warnings around
11236         "htobeXX (beXXtoh (i)) != i" and
11237         "htoleXX (leXXtoh (i)) != i" if-statements.
11238
11239 2016-01-24  David S. Miller  <davem@davemloft.net>
11240
11241         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
11242         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
11243         alias.
11244         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
11245         __sqrtl_finite.
11246
11247         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11248
11249 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
11250
11251         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
11252         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
11253         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
11254
11255 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11256
11257         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
11258         (thread_func): Use new function to simplify barrier check.
11259         (do_test): Use new function to simplify checking barrier exit
11260         code, and actually join the child thread.
11261
11262 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11263
11264         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
11265         semicolon.
11266         (__libc_tend): Likewise.
11267         (__libc_tabort): Likewise.
11268
11269 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
11270
11271         * sysdeps/nios2/libm-test-ulps: Update.
11272         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
11273         (__gtsf2): Likewise.
11274         (__unorddf2): Likewise.
11275         (__unordsf2): Likewise.
11276         (__ledf2): Likewise.
11277
11278 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
11279
11280         * nis/nis_table.c (__follow_path): Disable diagnostic for
11281         uninitialized variable that is a false positive for gcc 4.7.
11282         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
11283
11284 2016-01-20  Roland McGrath  <roland@hack.frob.com>
11285
11286         * sysdeps/nacl/lowlevellock-futex.h
11287         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
11288         Always evaluate PRIVATE argument.
11289
11290 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
11291
11292         [BZ #19490]
11293         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
11294         (pthread_cond_broadcast): Use ENTRY/END
11295         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
11296         (pthread_cond_signal): Likewise.
11297         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
11298         Likewise.
11299         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
11300         Likewise.
11301         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
11302         Likewise.
11303
11304 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
11305
11306         * sysdeps/ieee754/dbl-64/s_finite.c
11307         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
11308         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
11309         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
11310         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
11311         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
11312
11313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
11314         (__gtsf2): Add as optional for libc.so.
11315         (__unordsf2): Likewise.
11316         (__signbit): Remove for libc.so.
11317         (__signbitl): Likewise.
11318
11319 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
11320
11321         * iconvdata/bug-iconv11.c (test_ibm93x):
11322         Use %zu printf format specifier for size_t argument.
11323
11324 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
11325
11326         * math/gen-libm-test.pl (parse_ulps): Do not reduce
11327         already-recorded ulps.
11328         * sysdeps/arm/libm-test-ulps: Regenerated.
11329         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11330         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11331         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
11332
11333 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
11334             Paul Pluzhnikov  <ppluzhnikov@google.com>
11335
11336         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
11337         assembler not supporting AVX-512.
11338
11339 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
11340
11341         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11342
11343 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
11344
11345         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
11346         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11347
11348         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
11349
11350         * sysdeps/arm/libm-test-ulps: Regenerated.
11351
11352 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11353
11354         [BZ #19451]
11355         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
11356
11357 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
11358
11359         [BZ #19486]
11360         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
11361         * sysdeps/generic/fix-fp-int-convert-overflow.h
11362         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
11363         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
11364         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
11365         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
11366         Likewise.
11367         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
11368         Avoid conversions to long int where inexact exceptions
11369         could be raised.
11370         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
11371         Likewise.
11372         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
11373         Avoid conversions to long long int where inexact exceptions
11374         could be raised.
11375         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
11376         Likewise.
11377
11378 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
11379
11380         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
11381         * configure: Regenerated.
11382
11383 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11384
11385         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
11386
11387 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
11388
11389         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
11390         outside of comment.
11391
11392 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11393
11394         * nptl/tst-barrier1.c: Add description on first line.
11395         * nptl/tst-barrier2.c: Likewise.
11396         * nptl/tst-barrier3.c: Likewise.
11397         * nptl/tst-barrier4.c: Likewise.
11398         * nptl/tst-barrier5.c: Likewise.
11399
11400 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11401
11402         [BZ #18868]
11403         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
11404
11405 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11406
11407         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
11408         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
11409         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
11410         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
11411         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
11412         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
11413         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
11414         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
11415         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11416         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
11417         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
11418
11419 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11420
11421         [BZ #13065]
11422         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
11423         new implementation.
11424         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
11425         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
11426         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
11427         (BARRIER_IN_THRESHOLD): New macro.
11428         * nptl/pthread_barrierattr_setpshared.c
11429         (pthread_barrierattr_setpshared): Clean up.
11430         * nptl/tst-barrier4.c: Correct comment.
11431         * nptl/tst-barrier5.c: New file.
11432         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
11433         (gen-as-const-headers): Remove lowlevelbarrier.sym.
11434         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
11435         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
11436         * nptl/lowlevelbarrier.sym: Remove.
11437         * nptl/DESIGN-barrier.txt: Remove.
11438         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
11439         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
11440         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
11441         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
11442         error.
11443         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
11444         implementation.
11445
11446 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11447
11448         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
11449         (do_child): Mask SIGRTMIN while thr is running.
11450
11451 2016-01-15  Martin Sebor  <msebor@redhat.com>
11452
11453         [BZ #19432]
11454         * iconvdata/Makefile: Add bug-iconv11.
11455         * iconvdata/bug-iconv11.c: New test.
11456         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
11457         * iconvdata/ibm933.c: Same.
11458         * iconvdata/ibm935.c: Same.
11459         * iconvdata/ibm937.c: Same.
11460         * iconvdata/ibm939.c: Same.
11461
11462 2016-01-15  Martin Sebor  <msebor@redhat.com>
11463
11464         [BZ #19443]
11465         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
11466         [DEBUG] (_ufc_set_bits): Declare used.
11467         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
11468         [DEBUG] (print_all): Declare used.
11469         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
11470         operands of the ternary ?: expression to target type.
11471         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
11472         calling the undeclared abort.
11473         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
11474
11475 2016-01-15  Martin Sebor  <msebor@redhat.com>
11476
11477         [BZ #18755]
11478         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
11479         warnings.
11480         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
11481         (__gai_create_helper_thread): Same.
11482         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
11483         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
11484         to suppress -Wmaybe-uninitialized warnings.
11485
11486 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
11487
11488         [BZ #19465]
11489         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
11490         inside if.
11491         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11492         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
11493         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11494
11495 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
11496
11497         [BZ #19466]
11498         * time/tst-mktime2.c (time_t_max): Removed.
11499         (time_t_min): Likewise.
11500         (TYPE_SIGNED): New.
11501         (TYPE_MINIMUM): Likewise.
11502         (TYPE_MAXIMUM): Likewise.
11503         (TIME_T_MIN): Likewise.
11504         (TIME_T_MAX): Likewise.
11505         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
11506         and TIME_T_MIN.
11507         (do_test): Likewise.
11508
11509 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
11510
11511         [BZ #19467]
11512         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
11513         index_Fast_Unaligned_Load flag for Excavator family CPUs.
11514
11515 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
11516
11517         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
11518
11519 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
11520
11521         * benchtests/Makefile (PYTHON): Define.
11522         (bench-func): Use $(PYTHON) to run python scripts.
11523         ($(objpfx)bench-%.c): Likewise.
11524
11525 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
11526
11527         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
11528         leading slash when `file_name' is "/".
11529
11530 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
11531
11532         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
11533         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
11534         Likewise.
11535         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
11536         Likewise.
11537         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
11538         Likewise.
11539         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
11540         enum constant and macro.
11541         (PTRACE_SETSIGMASK): Likewise.
11542         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11543         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
11544         (PTRACE_GETSIGMASK): Likewise.
11545         (PTRACE_SETSIGMASK): Likewise.
11546         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11547         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
11548         Likewise.
11549         (PTRACE_SETSIGMASK): Likewise.
11550         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11551         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
11552         (PTRACE_GETSIGMASK): Likewise.
11553         (PTRACE_SETSIGMASK): Likewise.
11554         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11555         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
11556         Likewise.
11557         (PTRACE_SETSIGMASK): Likewise.
11558         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11559         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
11560         Likewise.
11561         (PTRACE_SETSIGMASK): Likewise.
11562         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11563         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
11564         Likewise.
11565         (PTRACE_SETSIGMASK): Likewise.
11566         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11567
11568 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
11569             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11570
11571         [BZ #19439]
11572         * math/bits/mathcalls.h
11573         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
11574         prototype.
11575         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
11576
11577 2016-01-11  Andreas Schwab  <schwab@suse.de>
11578
11579         [BZ #19253]
11580         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
11581         cache when TZDEFRULES was used.
11582         * time/tst-tzname.c: New file.
11583         * time/Makefile (test): Add tst-tzname.
11584         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
11585         * timezone/Makefile (test-zones): Add $(posixrules-file).
11586         ($(testdata)/$(posixrules-file)): New rule.
11587
11588 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11589
11590         Fix doc quoting problems with Texinfo 5
11591         Without this change, in the info file output, Texinfo 5 quotes code
11592         in text with undirected single quotes 'like this' and generates
11593         code examples that with many PDF readers cannot be cut out of PDFs
11594         and pasted into code.
11595         * manual/libc.texinfo: Configure the libc manual like the GNU
11596         Emacs manual, by using @documentencoding and setting
11597         txicodequoteundirected and txicodequotebacktick.  This way,
11598         Texinfo 5 quotes code in text with directed single quotes ‘like
11599         this’ and produces examples that can be cut out of PDFs.  This
11600         change causes Texinfo 5 to generate info files that contain UTF-8
11601         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
11602         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
11603
11604 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11605
11606         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
11607         __libc_tabort, __libc_tend): New wrappers that enforce compiler
11608         barriers to their respective compiler built-ins.
11609         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
11610         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
11611         * sysdeps/powerpc/sysdep.h: Likewise.
11612         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
11613         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
11614         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
11615
11616 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
11617
11618         * scripts/config.guess: Revert previous shebang change.
11619         * scripts/config.sub: Likewise.
11620         * scripts/mkinstalldirs: Likewise.
11621
11622 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11623
11624         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
11625         PPC_FEATURE2_HAS_IEEE128.
11626         * sysdeps/powerpc/dl-procinfo.c:
11627         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
11628
11629 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
11630
11631         [BZ #19415]
11632         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
11633         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
11634         (_dl_lookup_address): Rewrite using function resolver trampoline.
11635         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
11636         two bits in address.
11637
11638 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
11639
11640         * longlong.h: Change !__SHMEDIA__ to
11641         (!defined (__SHMEDIA__) || !__SHMEDIA__).
11642         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
11643
11644 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
11645             Joseph Myers  <joseph@codesourcery.com>
11646             Mark Shinwell  <shinwell@codesourcery.com>
11647             Andrew Stubbs  <ams@codesourcery.com>
11648             Rich Felker <dalias@libc.org>
11649
11650         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
11651
11652 2016-01-07  Richard Henderson  <rth@redhat.com>
11653
11654         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
11655
11656 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
11657
11658         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
11659         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
11660         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
11661         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
11662         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
11663
11664 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
11665             Joseph Myers  <joseph@codesourcery.com>
11666
11667         * timezone/private.h: Update from tzcode 2015g.
11668         * timezone/tzfile.h: Likewise.
11669         * timezone/tzselect.ksh: Likewise.
11670         * timezone/zdump.c: Likewise.
11671         * timezone/zic.c: Likewise.
11672         * timezone/ialloc.c: Remove file.
11673         * timezone/scheck.c: Likewise.
11674         * timezone/Makefile (extra-objs): Remove variable.
11675         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
11676         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
11677         -Wno-maybe-uninitialized.
11678         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
11679         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
11680         (CFLAGS-ialloc.c): Remove variable.
11681         (CFLAGS-scheck.c): Likewise.
11682         * timezone/README: Update list of files from tzcode.
11683
11684 2016-01-07  Khem Raj  <raj.khem@gmail.com>
11685
11686         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
11687         instead of __fxprintf when _LIBC is undefined.
11688
11689 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
11690
11691         * catgets/test-gencat.sh: Remove space after shebang.
11692         * conform/GlibcConform.pm: Likewise.
11693         * conform/check-header-lists.sh: Likewise.
11694         * conform/conformtest.pl: Likewise.
11695         * conform/linknamespace.pl: Likewise.
11696         * conform/list-header-symbols.pl: Likewise.
11697         * debug/catchsegv.sh: Likewise.
11698         * elf/genrtldtbl.awk: Likewise.
11699         * elf/tst-pathopt.sh: Likewise.
11700         * elf/tst-rtld-load-self.sh: Likewise.
11701         * grp/tst_fgetgrent.sh: Likewise.
11702         * iconvdata/gen-8bit-gap-1.sh: Likewise.
11703         * iconvdata/gen-8bit-gap.sh: Likewise.
11704         * iconvdata/gen-8bit.sh: Likewise.
11705         * iconvdata/run-iconv-test.sh: Likewise.
11706         * intl/tst-gettext.sh: Likewise.
11707         * intl/tst-gettext2.sh: Likewise.
11708         * intl/tst-gettext4.sh: Likewise.
11709         * intl/tst-gettext6.sh: Likewise.
11710         * intl/tst-translit.sh: Likewise.
11711         * io/ftwtest-sh: Likewise.
11712         * libio/test-freopen.sh: Likewise.
11713         * locale/gen-translit.pl: Likewise.
11714         * malloc/tst-mtrace.sh: Likewise.
11715         * manual/check-safety.sh: Likewise.
11716         * manual/libc-texinfo.sh: Likewise.
11717         * manual/tsort.awk: Likewise.
11718         * manual/xtract-typefun.awk: Likewise.
11719         * nptl/tst-cancel-wrappers.sh: Likewise.
11720         * nptl/tst-tls6.sh: Likewise.
11721         * posix/globtest.sh: Likewise.
11722         * posix/tst-getconf.sh: Likewise.
11723         * posix/wordexp-tst.sh: Likewise.
11724         * scripts/check-c++-types.sh: Likewise.
11725         * scripts/check-local-headers.sh: Likewise.
11726         * scripts/config.guess: Likewise.
11727         * scripts/config.sub: Likewise.
11728         * scripts/cpp: Likewise.
11729         * scripts/cross-test-ssh.sh: Likewise.
11730         * scripts/documented.sh: Likewise.
11731         * scripts/evaluate-test.sh: Likewise.
11732         * scripts/gen-libc-abis: Likewise.
11733         * scripts/gen-sorted.awk: Likewise.
11734         * scripts/list-fixed-bugs.py: Likewise.
11735         * scripts/merge-test-results.sh: Likewise.
11736         * scripts/mkinstalldirs: Likewise.
11737         * scripts/rellns-sh: Likewise.
11738         * scripts/test-installation.pl: Likewise.
11739         * scripts/update-copyrights: Likewise.
11740         * stdio-common/tst-printf.sh: Likewise.
11741         * stdio-common/tst-unbputc.sh: Likewise.
11742         * stdlib/tst-fmtmsg.sh: Likewise.
11743         * stdlib/tst-setcontext3.sh: Likewise.
11744         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
11745         * sysdeps/unix/make-syscalls.sh: Likewise.
11746
11747 2016-01-06  John David Anglin  <dave.anglin@bell.net>
11748
11749         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
11750         asm stw with atomic_exchange_rel.  Add explanatory comment.
11751         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
11752         Likewise.
11753
11754 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11755
11756         [BZ #19122]
11757         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
11758         * sysdeps/generic/dl-unistd.h: New file.
11759         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
11760
11761 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11762
11763          [BZ #19122]
11764          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
11765          * sysdeps/generic/dl-mman.h: New file.
11766          * sysdeps/mach/hurd/dl-mman.h: Likewise.
11767
11768 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
11769
11770         * manual/texinfo.tex: Update to version 2016-01-04.21 with
11771         trailing whitespace removed.
11772         * scripts/config.guess: Update to version 2016-01-01.
11773         * scripts/config.sub: Update to version 2016-01-01.
11774         * scripts/move-if-change: Update from gnulib.
11775
11776 2016-01-04  Anton Blanchard  <anton@samba.org>
11777
11778         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
11779         for array indices.
11780         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
11781
11782 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
11783
11784         * NEWS: Update copyright dates.
11785         * catgets/gencat.c (print_version): Likewise.
11786         * csu/version.c (banner): Likewise.
11787         * debug/catchsegv.sh: Likewise.
11788         * debug/pcprofiledump.c (print_version): Likewise.
11789         * debug/xtrace.sh (do_version): Likewise.
11790         * elf/ldconfig.c (print_version): Likewise.
11791         * elf/ldd.bash.in: Likewise.
11792         * elf/pldd.c (print_version): Likewise.
11793         * elf/sotruss.sh: Likewise.
11794         * elf/sprof.c (print_version): Likewise.
11795         * iconv/iconv_prog.c (print_version): Likewise.
11796         * iconv/iconvconfig.c (print_version): Likewise.
11797         * locale/programs/locale.c (print_version): Likewise.
11798         * locale/programs/localedef.c (print_version): Likewise.
11799         * login/programs/pt_chown.c (print_version): Likewise.
11800         * malloc/memusage.sh (do_version): Likewise.
11801         * malloc/memusagestat.c (print_version): Likewise.
11802         * malloc/mtrace.pl: Likewise.
11803         * manual/libc.texinfo: Likewise.
11804         * nptl/version.c (banner): Likewise.
11805         * nscd/nscd.c (print_version): Likewise.
11806         * nss/getent.c (print_version): Likewise.
11807         * nss/makedb.c (print_version): Likewise.
11808         * posix/getconf.c (main): Likewise.
11809         * scripts/test-installation.pl: Likewise.
11810         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
11811
11812         * All files with FSF copyright notices: Update copyright dates
11813         using scripts/update-copyrights.
11814         * intl/plural.c: Regenerated.
11815         * locale/programs/charmap-kw.h: Likewise.
11816         * locale/programs/locfile-kw.h: Likewise.
11817
11818 2016-01-02  Helge Deller  <deller@gmx.de>
11819
11820         [BZ #19285]
11821         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
11822         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
11823         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
11824         (MADV_xxK_PAGES): Remove.
11825
11826 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
11827
11828         [BZ #15421]
11829         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
11830         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
11831         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
11832         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
11833
11834 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
11835
11836         [BZ #19408]
11837         * sysdeps/unix/sysv/linux/personality.c: New file.
11838         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
11839         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
11840         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
11841         (sysdep_routines): Add personality.
11842         (tests): Add tst-personality.
11843         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
11844         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
11845         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
11846         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
11847         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
11848         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
11849         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
11850         Likewise.
11851         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
11852         Likewise.
11853         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
11854         Likewise.
11855         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
11856         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
11857         Likewise.
11858
11859 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
11860
11861         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
11862         (PATH_ARM_SYSTYPE): Remove.
11863         (PATH_CPUINFO): Likewise.
11864         (IO_BASE_FOOTBRIDGE): Likewise.
11865         (IO_SHIFT_FOOTBRIDGE): Likewise.
11866         (struct platform): Likewise.
11867         (init_iosys): Remove compatibility code for 2.4 kernels.
11868         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
11869
11870 2015-12-29  Florian Weimer  <fweimer@redhat.com>
11871
11872         * malloc/tst-malloc-thread-fail.c: New file.
11873         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
11874         (tst-malloc-thread-fail): Link against libpthread.
11875
11876 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
11877
11878         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
11879         (get_parser): New function.
11880         (main): New function.
11881
11882 2015-12-29  Rob Wu  <rob@robwu.nl>
11883
11884         [BZ #19369]
11885         * resolv/res_init.c (__res_vinit): Reset defdname before use.
11886
11887 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
11888
11889         [BZ #19270]
11890         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
11891
11892 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
11893
11894         [BZ #15421]
11895         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
11896
11897 2015-12-23  Torvald Riegel  <triegel@redhat.com>
11898
11899         [BZ #13690]
11900         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
11901         after releasing it.
11902         (__lll_robust_unlock): Likewise.
11903         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11904         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
11905         (lll_robust_unlock): Likewise.
11906         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
11907         Prevent warnings in callers.
11908
11909 2015-12-23  Florian Weimer  <fweimer@redhat.com>
11910
11911         * malloc/arena.c (list_lock): Update comment.
11912
11913 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11914
11915         * sysdeps/powerpc/hwcapinfo.c: Export symbol
11916         __parse_hwcap_and_convert_at_platform to libc.a.
11917
11918 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11919
11920         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
11921         platform and feature support for POWER9.
11922         * sysdeps/powerpc/dl-procinfo.h: Likewise.
11923         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
11924         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
11925         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
11926         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
11927         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
11928         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
11929         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
11930
11931 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11932
11933         Harmonize generic stdio-lock support with nptl
11934
11935         This fixes build when _IO_funlockfile is a macro, fixes build where
11936         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
11937         stack unwind.
11938
11939         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
11940         _IO_release_lock ): Use cleanup attribute on new
11941         _IO_acquire_lock_file variable instead of assuming that
11942         _IO_release_lock will be called.
11943         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
11944         _IO_acquire_lock_needs_exceptions_enabled.
11945         (_IO_acquire_lock_clear_flags2): New macro.
11946
11947 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11948
11949         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
11950
11951 2015-12-21  Florian Weimer  <fweimer@redhat.com>
11952
11953         [BZ #19182]
11954         * malloc/arena.c (list_lock): Document lock ordering requirements.
11955         (free_list_lock): New lock.
11956         (ptmalloc_lock_all): Comment on free_list_lock.
11957         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
11958         (detach_arena): Update comment.  free_list_lock is now needed.
11959         (_int_new_arena): Use free_list_lock around detach_arena call.
11960         Acquire arena lock after list_lock.  Add comment, including FIXME
11961         about incorrect synchronization.
11962         (get_free_list): Switch to free_list_lock.
11963         (reused_arena): Acquire free_list_lock around detach_arena call
11964         and attached threads counter update.  Add two FIXMEs about
11965         incorrect synchronization.
11966         (arena_thread_freeres): Switch to free_list_lock.
11967         * malloc/malloc.c (struct malloc_state): Update comments to
11968         mention free_list_lock.
11969
11970 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
11971
11972         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
11973         Remove functions.
11974         (sloww, sloww1): Accept argument to offset quadrant.
11975         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
11976         quadrant.
11977         (__sin, __cos): Consolidate common code into new functions.
11978         (reduce_sincos_1, do_sincos_1): New functions.
11979         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
11980
11981         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
11982         code to new functions.
11983         (reduce_sincos_2, do_sincos_2): New functions.
11984         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
11985
11986         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
11987         common code for sincos.
11988         (__cos) [!IN_SINCOS]: Likewise.
11989         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
11990         New function.
11991         (__sincos): Use it.
11992
11993 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
11994
11995         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
11996         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
11997         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
11998
11999 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12000
12001         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
12002         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
12003         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
12004         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
12005         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
12006         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
12007         index_Prefer_No_VZEROUPPER): New feature.
12008         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
12009         Prefer_No_VZEROUPPER for Knights Landing.
12010
12011 015-12-18  Torvald Riegel  <triegel@redhat.com>
12012
12013         * math/atest-exp2.c (mp_exp_m1): Remove.
12014
12015 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12016
12017         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
12018         syscalls.
12019         (__SYSCALL0): New macro.
12020         (__SYSCALL1): Likewise.
12021         (__SYSCALL2): Likewise.
12022         (__SYSCALL3): Likewise.
12023         (__SYSCALL4): Likewise.
12024         (__SYSCALL5): Likewise.
12025         (__SYSCALL6): Likewise.
12026         (__SYSCALL_CONCAT_X): Likewise.
12027         (__SYSCALL_CONCAT): Likewise.
12028         (__SYSCALL_DIST): Likewise.
12029         (__SYSCALL_CALL): Likewise.
12030
12031 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
12032
12033         [BZ #19363]
12034         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
12035
12036 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12037
12038         [BZ #19375]
12039         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
12040         negative subnormals.
12041
12042 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
12043
12044         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12045         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
12046         (INTERNAL_SYSCALL_NCS): Use it.
12047         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
12048
12049 2015-12-16  Florian Weimer  <fweimer@redhat.com>
12050
12051         [BZ #19243]
12052         * malloc/arena.c (get_free_list): Remove assert and adjust
12053         reference count handling.  Add comment about reused_arena
12054         interaction.
12055         (reused_arena): Add comments abount get_free_list interaction.
12056         * malloc/tst-malloc-thread-exit.c: New file.
12057         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
12058         (tst-malloc-thread-exit): Link against libpthread.
12059
12060 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12061
12062         [BZ #19367]
12063         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
12064         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
12065         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
12066         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
12067         (index_Prefer_MAP_32BIT_EXEC): Likewise.
12068
12069 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12070
12071         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
12072         Silvermont optimizations for Knights Landing.
12073
12074 2015-12-15  Andreas Schwab  <schwab@suse.de>
12075
12076         [BZ #17197]
12077         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
12078         immediately after emitting SI.
12079         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
12080         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
12081         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
12082         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
12083         * iconvdata/bug-iconv10.c: New file.
12084         * iconvdata/Makefile (tests): Add bug-iconv10.
12085         ($(objpfx)bug-iconv10.out): New rule.
12086
12087 2015-12-15  Florian Weimer  <fweimer@redhat.com>
12088
12089         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
12090         aliasing violation.
12091
12092 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
12093
12094         [BZ #18472]
12095         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
12096         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
12097         conditionals for them.
12098         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
12099         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
12100         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
12101         sys/kdaemon.h.
12102         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
12103         compat-only syscall, obsoleted in glibc 2.23.
12104         (create_module): Likewise.
12105         (get_kernel_syms): Likewise.
12106         (query_module): Likewise.
12107         (uselib): Likewise.
12108         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
12109
12110 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
12111
12112         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
12113         <linux/version.h>.
12114         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
12115         conditional code.
12116         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
12117         and ioshift_name initialization.
12118
12119 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12120
12121         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12122         Fix indentation.
12123
12124 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12125
12126         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
12127
12128 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12129
12130         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
12131
12132 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
12133             Jakub Wilk  <jwilk@debian.org>
12134
12135         [BZ #19347]
12136         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
12137         to change the group of the device to the tty group.
12138
12139 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
12140
12141         Split large string section; add truncation advice
12142         * manual/examples/strncat.c: Remove.
12143         This example was misleading, as the code would have undefined
12144         behavior if "hello" was longer than SIZE.  Anyway, the manual
12145         shouldn't encourage strncpy+strncat for this sort of thing.
12146         * manual/string.texi (Copying Strings and Arrays): Split into
12147         three sections Copying Strings and Arrays, Concatenating Strings,
12148         and Truncating Strings, as this section was way too long.  All
12149         cross-referenced changed.  Add advice about string-truncation
12150         functions.  Remove misleading strncat example.
12151
12152 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
12153
12154         * manual/nss.texi (NSS Modules Interface): Document
12155         NSS_STATUS_NOTFOUND and SUCCESS.
12156
12157 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12158
12159         [BZ 18568]
12160         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
12161         201505L, for Unicode 8.
12162
12163 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
12164
12165         * locale/C-translit.h: Regenerate.
12166
12167 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12168
12169         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
12170         and U+0153.
12171
12172 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
12173
12174         [BZ #19351]
12175         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
12176         expanding log(1+z), compare z rather than its square with epsilon
12177         to determine when to avoid evaluating the expansion.
12178
12179         [BZ #19350]
12180         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
12181         Increase overflow threshold.
12182
12183         [BZ #19349]
12184         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
12185         when small.
12186
12187         * sysdeps/unix/sysv/linux/i386/kernel-features.h
12188         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12189         New macro.
12190         [__LINUX_KERNEL_VERSION >= 0x040300]
12191         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12192         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12193         Likewise.
12194         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12195         Likewise.
12196         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12197         Likewise.
12198         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12199         Likewise.
12200         [__LINUX_KERNEL_VERSION >= 0x040300]
12201         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12202         [__LINUX_KERNEL_VERSION >= 0x040300]
12203         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12204         [__LINUX_KERNEL_VERSION >= 0x040300]
12205         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12206         [__LINUX_KERNEL_VERSION >= 0x040300]
12207         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12208         [__LINUX_KERNEL_VERSION >= 0x040300]
12209         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12210         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12211         Likewise.
12212         [__LINUX_KERNEL_VERSION >= 0x040300]
12213         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12214         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12215         Likewise.
12216         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12217         Likewise.
12218         [__LINUX_KERNEL_VERSION >= 0x040300]
12219         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12220         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12221         Likewise.
12222         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12223         Likewise.
12224         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
12225         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
12226         Likewise.
12227         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
12228         Likewise.
12229         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12230         Likewise.
12231         [__LINUX_KERNEL_VERSION >= 0x040300]
12232         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12233         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12234         Likewise.
12235         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12236         Likewise.
12237         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12238         Likewise.
12239         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12240         Likewise.
12241         [__LINUX_KERNEL_VERSION >= 0x040300]
12242         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12243         [__LINUX_KERNEL_VERSION >= 0x040300]
12244         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12245         [__LINUX_KERNEL_VERSION >= 0x040300]
12246         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12247         [__LINUX_KERNEL_VERSION >= 0x040300]
12248         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12249         [__LINUX_KERNEL_VERSION >= 0x040300]
12250         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12251         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12252         Likewise.
12253         [__LINUX_KERNEL_VERSION >= 0x040300]
12254         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12255         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12256         Likewise.
12257         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12258         Likewise.
12259         [__LINUX_KERNEL_VERSION >= 0x040300]
12260         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12261         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12262         Likewise.
12263         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12264         Likewise.
12265         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12266         (__ASSUME_SOCKET_SYSCALL): Likewise.
12267         (__ASSUME_BIND_SYSCALL): Likewise.
12268         (__ASSUME_CONNECT_SYSCALL): Likewise.
12269         (__ASSUME_LISTEN_SYSCALL): Likewise.
12270         (__ASSUME_ACCEPT_SYSCALL): Likewise.
12271         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12272         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12273         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12274         (__ASSUME_SEND_SYSCALL): Likewise.
12275         (__ASSUME_SENDTO_SYSCALL): Likewise.
12276         (__ASSUME_RECV_SYSCALL): Likewise.
12277         (__ASSUME_RECVFROM_SYSCALL): Likewise.
12278         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
12279         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12280         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12281         (__ASSUME_SENDMSG_SYSCALL): Likewise.
12282         (__ASSUME_RECVMSG_SYSCALL): Likewise.
12283         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12284         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
12285         Likewise.
12286         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
12287         Likewise.
12288         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
12289         Likewise.
12290         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
12291         Likewise.
12292         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
12293         Likewise.
12294         [__LINUX_KERNEL_VERSION >= 0x020625]
12295         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12296         [__LINUX_KERNEL_VERSION >= 0x020625]
12297         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12298         [__LINUX_KERNEL_VERSION >= 0x020625]
12299         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12300         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
12301         Likewise.
12302         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
12303         Likewise.
12304         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
12305         Likewise.
12306         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
12307         Likewise.
12308         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
12309         Likewise.
12310         [__LINUX_KERNEL_VERSION >= 0x020625]
12311         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12312         [__LINUX_KERNEL_VERSION >= 0x020625]
12313         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12314         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
12315         Likewise.
12316         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
12317         Likewise.
12318
12319 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12320
12321         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
12322         record the current if the current ABI and CPU support the FP64
12323         extension.
12324         (has-modd-spreg): Define to record the current if the current ABI and
12325         CPU support 32-bit floating point values in odd FPU registers.
12326         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12327         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
12328         $(has-modd-spreg) equals yes.
12329         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
12330         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
12331         $(has-modd-spreg) equal yes.
12332
12333 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12334
12335         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
12336         basename.
12337
12338 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
12339
12340         * benchtests/Makefile (bench-math): Move ffs and ffsll...
12341         (bench-string): ... here.
12342         (bench): Add bench-string.
12343         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
12344         to *-benchset to reflect what they are.
12345         (benchset): Adjust.
12346
12347         * benchtests/sincos-inputs: Add inputs from sin-inputs and
12348         cos-inputs.
12349
12350 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
12351
12352         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
12353         __attribute__ ((__simd__)) for vector math function declarations.
12354
12355 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12356
12357         Fix typo in strncat, wcsncat manual entries
12358         * manual/string.texi (Copying and Concatenation): Fix typos in
12359         sample implementations of strncat and wcsncat, by having them use
12360         the old value of the destination length, not the new one.
12361
12362 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
12363
12364         [BZ #16961]
12365         [BZ #16962]
12366         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
12367         string on the stack for strtod.
12368         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
12369         a string on the stack for strtof.
12370         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
12371         constructing a string on the stack for strtold.
12372         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
12373         __strtold_nan to GLIBC_PRIVATE.
12374         * math/test-nan-overflow.c: New file.
12375         * math/test-nan-payload.c: Likewise.
12376         * math/Makefile (tests): Add test-nan-overflow and
12377         test-nan-payload.
12378
12379 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12380
12381         Consistency about byte vs character in string.texi
12382         * manual/string.texi (String and Array Utilities):
12383         Distinguish more carefully among bytes, multibyte characters,
12384         and wide characters.  Use "byte" when talking about C 'char',
12385         to distinguish it more clearly from multibyte characters.
12386         Say "wide character" or "multibyte character" instead of
12387         "character", when a wide or multibyte character is intended.
12388         Similarly for "multibyte string" versus "string".
12389         Define these terms more carefully.
12390
12391 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
12392
12393         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
12394         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
12395         Likewise.
12396         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12397         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12398         * sysdeps/sh/math_private.h: New file.
12399         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
12400         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
12401         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
12402         long double function name.
12403         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12404         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12405         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12406         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12407         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12408         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12409         Remove __finitel, __isinfl, and __isnanl.
12410         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12411         Likewise.
12412         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12413         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12414         Remove __finitel.
12415         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12416         Likewise.
12417         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12418
12419 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
12420
12421         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
12422         installed libmvec_nonshared.a.
12423
12424 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12425
12426         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
12427         (sysdep_routines): Likewise.
12428         (sysdep-rtld-routines): Likewise.
12429         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
12430         [$(subdir) = nptl](tests-static): test-get_hwcap-static
12431         * sysdeps/powerpc/Versions: Added new
12432         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
12433         * sysdeps/powerpc/hwcapinfo.c: New file.
12434         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
12435         and parse hwcap, hwcap2 and platform number information.
12436         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
12437         to store HWCAP+HWCAP2 and platform number.
12438         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
12439         for HWCAP+HWCAP2 and platform number in the TCB.
12440         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
12441         the HWCAP, HWCAP2 and platform number in the TCB.
12442         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
12443         (TLS_INIT_TP): Included calls to add the hwcap and
12444         at_platform values in the TCB in TP initialization.
12445         (TLS_DEFINE_INIT_TP): Likewise.
12446         (THREAD_GET_HWCAP): New macro.
12447         (THREAD_SET_HWCAP): Likewise.
12448         (THREAD_GET_AT_PLATFORM): Likewise.
12449         (THREAD_SET_AT_PLATFORM): Likewise.
12450         * sysdeps/powerpc/powerpc32/dl-machine.h:
12451         (dl_platform_init): New function that calls
12452         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
12453         powerpc32.
12454         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
12455         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
12456         this functionality, static linking case.
12457         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
12458         linking case.
12459         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
12460         __parse_hwcap_and_convert_at_platform for the static linking case.
12461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
12462         Included the new __parse_hwcap_and_convert_at_platform symbol in the
12463         ABI list for GLIBC 2.23.
12464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
12465         Likewise.
12466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
12467         Likewise.
12468
12469 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
12470
12471         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
12472         * configure: Regenerate.
12473         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
12474         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
12475
12476 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
12477
12478         * iconvdata/ibm930.c: Add comment explaining encoding uses.
12479         * iconvdata/ibm933.c: Likewise.
12480         * iconvdata/ibm935.c: Likewise.
12481         * iconvdata/ibm937.c: Likewise.
12482         * iconvdata/ibm939.c: Likewise.
12483
12484 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12485
12486         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
12487         pthread_join.
12488         * nptl/tst-cancel21.c (tf): Likewise.
12489
12490 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
12491
12492         [BZ #19313]
12493         * bits/typesizes.h (__CPU_MASK_TYPE): New.
12494         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12495         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12496         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
12497         Likewise.
12498         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
12499         Likewise.
12500         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
12501         Likewise.
12502         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
12503         Likewise.
12504         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
12505         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
12506         unsigned long int with __CPU_MASK_TYPE.
12507
12508 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12509
12510         * sysdeps/aarch64/libm-test-ulps: Regenerated.
12511
12512 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
12513
12514         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
12515         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
12516         t512.x.
12517         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
12518
12519 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
12520
12521         [BZ #19214]
12522         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
12523         argument to return extended model.  Update family and model
12524         with extended family and model when family == 0x0f.
12525         (init_cpu_features): Updated.
12526
12527 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12528
12529         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
12530         signed off_t, so 32bit bigger than 2GiB values are fine actually.
12531
12532         * sysdeps/mach/hurd/mmap64.c: New file.
12533
12534 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
12535
12536         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
12537         rights for its main user thread in NEWTASK.
12538
12539 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
12540
12541         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
12542         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
12543
12544 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
12545
12546         [BZ #14259]
12547         * Makeconfig: Rename localedir to complocaledir.
12548         Rename inst_localedir to inst_complocaledir.
12549         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
12550         * config.make.in: Use complocaledir and libc_cv_complocaledir.
12551         * configure.ac: Use libc_cv_complocaledir.
12552         * configure: Regenerate.
12553         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
12554         -DCOMPLOCALEDIR.
12555         * locale/findlocale.c: Use COMPLOCALEDIR.
12556         * locale/loadarchive.c: Likewise.
12557         * locale/programs/locale.c: Likewise.
12558         * locale/programs/localedef.c: Likewise.
12559         * locale/programs/locarchive.c: Likewise.
12560         * localedata/Makefile: Use inst_complocaledir.
12561         * sysdeps/gnu/configure: Regenerate.
12562         * sysdeps/hppa/configure: Regenerate.
12563         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
12564         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
12566         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
12567         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
12568         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
12569         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
12570
12571 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
12572
12573         [BZ #19058]
12574         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
12575         AS_NEEDED.
12576         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
12577         workaround.
12578         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
12579         libmvec-static-only-routines): Added new file.
12580         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
12581
12582 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12583
12584         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
12585         of interrupted RPC instead of restoring it.
12586
12587         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
12588         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
12589         libc_hidden_def.
12590         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
12591         into initialized data instead of common. Define rtld_hidden_data_def.
12592         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
12593         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
12594         libc_hidden_def.
12595         (if_freenameindex): Add libc_hidden_weak.
12596         (if_nameindex): Add libc_hidden_weak.
12597         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
12598         __open64.
12599         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
12600         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
12601         * sysdeps/mach/nanosleep.c: Include <time.h>
12602         (__nanosleep): Rename to __libc_nanosleep.
12603         (__nanosleep): Add weak_alias.
12604         (nanosleep): Update alias.
12605
12606 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
12607
12608         * stdlib/strtod_nan.c: New file.
12609         * stdlib/strtod_nan_double.h: Likewise.
12610         * stdlib/strtod_nan_float.h: Likewise.
12611         * stdlib/strtod_nan_main.c: Likewise.
12612         * stdlib/strtod_nan_narrow.h: Likewise.
12613         * stdlib/strtod_nan_wide.h: Likewise.
12614         * stdlib/strtof_nan.c: Likewise.
12615         * stdlib/strtold_nan.c: Likewise.
12616         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
12617         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
12618         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
12619         * wcsmbs/wcstod_nan.c: Likewise.
12620         * wcsmbs/wcstof_nan.c: Likewise.
12621         * wcsmbs/wcstold_nan.c: Likewise.
12622         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
12623         strtold_nan.
12624         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
12625         wcstof_nan.
12626         * include/stdlib.h (__strtof_nan): Declare and use
12627         libc_hidden_proto.
12628         (__strtod_nan): Likewise.
12629         (__strtold_nan): Likewise.
12630         (__wcstof_nan): Likewise.
12631         (__wcstod_nan): Likewise.
12632         (__wcstold_nan): Likewise.
12633         * include/wchar.h (____wcstoull_l_internal): Declare.
12634         * stdlib/strtod_l.c: Do not include <ieee754.h>.
12635         (____strtoull_l_internal): Remove declaration.
12636         (STRTOF_NAN): Define macro.
12637         (SET_MANTISSA): Remove macro.
12638         (STRTOULL): Likewise.
12639         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
12640         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
12641         (STRTOF_NAN): Define macro.
12642         (SET_MANTISSA): Remove macro.
12643         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
12644         (SET_MANTISSA): Remove macro.
12645         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
12646         macro.
12647         (SET_MANTISSA): Remove macro.
12648         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
12649         macro.
12650         (SET_MANTISSA): Remove macro.
12651         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
12652         (SET_MANTISSA): Remove macro.
12653         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
12654         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
12655         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
12656
12657         [BZ #19266]
12658         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
12659         upper case and lower case letters inside NAN(), not using TOLOWER.
12660         * stdlib/tst-strtod-nan-locale-main.c: New file.
12661         * stdlib/tst-strtod-nan-locale.c: Likewise.
12662         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
12663         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
12664         Depend on $(gen-locales).
12665         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
12666         * wcsmbs/tst-wcstod-nan-locale.c: New file.
12667         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
12668         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
12669         Depend on $(gen-locales).
12670         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
12671
12672 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
12673
12674         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
12675
12676         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
12677         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
12678         __finitel, __isinfl, and __isnanl.
12679         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12680         Likewise.
12681         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12682         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
12683         __finitel.
12684         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12685         Likewise.
12686         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12687
12688 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12689
12690         * malloc/memusage.c (me): Remove redundant getenv call.
12691
12692 2015-10-24  Florian Weimer  <fweimer@redhat.com>
12693
12694         [BZ #19143]
12695         [BZ #19164]
12696         * nptl/check-cpuset.h: Remove.
12697         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
12698         Remove CPU set size check.
12699         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
12700         Likewise.
12701         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
12702         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
12703         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
12704         (__pthread_setaffinity_new): Remove CPU set size check.
12705         * sysdeps/unix/sysv/linux/sched_setaffinity.c
12706         (__kernel_cpumask_size): Remove.
12707         (__sched_setaffinity_new): Remove CPU set size check.
12708         * manual/threads.texi (Default Thread Attributes): Remove stale
12709         reference to check_cpuset_attr, determine_cpumask_size in comment.
12710         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
12711         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
12712         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
12713         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
12714         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
12715         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
12716         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
12717         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
12718         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
12719         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
12720         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
12721         skeleton test file.
12722         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
12723         tst-affinity-pid.
12724
12725 2015-11-24  Florian Weimer  <fweimer@redhat.com>
12726
12727         * scripts/update-abilist.sh: New file.
12728         * Makefile (+subdir_targets): Add subdir_update-all-abi.
12729         * Makerules (update-all-abi-%, update-all-abi)
12730         (subdir_update-all-abi): New targets.
12731         * elf/Makefile (update-all-abi): New target.
12732
12733 2015-11-24  Florian Weimer  <fweimer@redhat.com>
12734
12735         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
12736         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
12737         (__libc_lock_define_initialized): Use it.
12738         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
12739         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
12740         * malloc/malloc.c (main_arena): Likewise.
12741         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
12742         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
12743
12744 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
12745
12746         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12747         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
12748         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
12749         (PTRACE_O_MASK): Update value.
12750         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
12751         New value in enum __ptrace_setoptions.
12752         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
12753         (PTRACE_O_MASK): Update value.
12754         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12755         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
12756         (PTRACE_O_MASK): Update value.
12757         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12758         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
12759         (PTRACE_O_MASK): Update value.
12760         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12761         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
12762         (PTRACE_O_MASK): Update value.
12763         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
12764         New value in enum __ptrace_setoptions.
12765         (PTRACE_O_MASK): Update value.
12766         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
12767         New value in enum __ptrace_setoptions.
12768         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
12769         (PTRACE_O_MASK): Update value.
12770
12771         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
12772         New macro.
12773         (PACKET_AUXDATA): Likewise.
12774         (PACKET_ORIGDEV): Likewise.
12775         (PACKET_VERSION): Likewise.
12776         (PACKET_HDRLEN): Likewise.
12777         (PACKET_RESERVE): Likewise.
12778         (PACKET_TX_RING): Likewise.
12779         (PACKET_LOSS): Likewise.
12780         (PACKET_VNET_HDR): Likewise.
12781         (PACKET_TX_TIMESTAMP): Likewise.
12782         (PACKET_TIMESTAMP): Likewise.
12783         (PACKET_FANOUT): Likewise.
12784         (PACKET_TX_HAS_OFF): Likewise.
12785         (PACKET_QDISC_BYPASS): Likewise.
12786         (PACKET_ROLLOVER_STATS): Likewise.
12787         (PACKET_FANOUT_DATA): Likewise.
12788         (PACKET_MR_UNICAST): Likewise.
12789
12790         [BZ #19242]
12791         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
12792         (TOUPPER): Likewise.
12793         * stdlib/tst-strtol-locale-main.c: New file.
12794         * stdlib/tst-strtol-locale.c: Likewise.
12795         * stdlib/Makefile (tests): Add tst-strtol-locale.
12796         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
12797         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
12798         Depend on $(gen-locales).
12799         * wcsmbs/tst-wcstol-locale.c: New file.
12800         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
12801         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
12802         tr_TR.ISO-8859-9.
12803         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
12804         Depend on $(gen-locales).
12805
12806 2015-11-20  Roland McGrath  <roland@hack.frob.com>
12807
12808         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
12809         __glibc_likely instead of __builtin_expect.  After falling back to
12810         dyncode_create in a non-ET_DYN case, use the allocate_code_data
12811         system interface to register the code pages as occupied.
12812
12813 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
12814
12815         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12816         [!ARM_MATH_PRIVATE_H].
12817         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
12818         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12819         [!HPPA_MATH_PRIVATE_H].
12820         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
12821         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
12822         to [!I386_MATH_PRIVATE_H].
12823         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
12824         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
12825         Change guard to [!M68K_MATH_PRIVATE_H].
12826         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
12827         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
12828         guard to [!MICROBLAZE_MATH_PRIVATE_H].
12829         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
12830         macro.
12831         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12832         [!MIPS_MATH_PRIVATE_H].
12833         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
12834         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12835         [!NIO2_MATH_PRIVATE_H].
12836         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
12837         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12838         [!TILE_MATH_PRIVATE_H].
12839         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
12840
12841         [BZ #15421]
12842         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
12843         initialize with 0 and define as weak alias of __signgam.
12844         * include/math.h [!_ISOMAC] (__signgam): Declare.
12845         * math/Makefile (libm-calls): Add w_lgamma_compat.
12846         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
12847         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
12848         test-signgam-ullong-init.
12849         (tests-static): Add test-signgam-uchar-static,
12850         test-signgam-uchar-init-static, test-signgam-uint-static,
12851         test-signgam-uint-init-static, test-signgam-ullong-static and
12852         test-signgam-ullong-init-static.
12853         (CFLAGS-test-signgam-uchar.c): New variable.
12854         (CFLAGS-test-signgam-uchar-init.c): Likewise.
12855         (CFLAGS-test-signgam-uchar-static.c): Likewise.
12856         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
12857         (CFLAGS-test-signgam-uint.c): Likewise.
12858         (CFLAGS-test-signgam-uint-init.c): Likewise.
12859         (CFLAGS-test-signgam-uint-static.c): Likewise.
12860         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
12861         (CFLAGS-test-signgam-ullong.c): Likewise.
12862         (CFLAGS-test-signgam-ullong-init.c): Likewise.
12863         (CFLAGS-test-signgam-ullong-static.c): Likewise.
12864         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
12865         * math/Versions (libm): Add GLIBC_2.23.
12866         * math/lgamma-compat.h: New file.
12867         * math/test-signgam-main.c: Likewise.
12868         * math/test-signgam-uchar-init-static.c: Likewise.
12869         * math/test-signgam-uchar-init.c: Likewise.
12870         * math/test-signgam-uchar-static.c: Likewise.
12871         * math/test-signgam-uchar.c: Likewise.
12872         * math/test-signgam-uint-init-static.c: Likewise.
12873         * math/test-signgam-uint-init.c: Likewise.
12874         * math/test-signgam-uint-static.c: Likewise.
12875         * math/test-signgam-uint.c: Likewise.
12876         * math/test-signgam-ullong-init-static.c: Likewise.
12877         * math/test-signgam-ullong-init.c: Likewise.
12878         * math/test-signgam-ullong-static.c: Likewise.
12879         * math/test-signgam-ullong.c: Likewise.
12880         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
12881         wrapper of w_lgamma_main.c.
12882         * math/w_lgamma_compat.c: New file.
12883         * math/w_lgamma_compatf.c: Likewise.
12884         * math/w_lgamma_compatl.c: Likewise.
12885         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
12886         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
12887         defining compatibility symbols.
12888         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
12889         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
12890         wrapper of w_lgammaf_main.c.
12891         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
12892         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
12893         defining compatibility symbols.
12894         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
12895         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
12896         wrapper of w_lgammal_main.c.
12897         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
12898         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
12899         defining compatibility symbols.
12900         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
12901         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
12902         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
12903         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
12904         <lgamma-compat.h>.
12905         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
12906         (__ieee754_gamma): Define as alias.
12907         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
12908         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
12909         <lgamma-compat.h>.
12910         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
12911         (__ieee754_gammaf): Define as alias.
12912         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
12913         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
12914         <lgamma-compat.h>.
12915         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
12916         (__ieee754_gammal): Define as alias.
12917         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
12918         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
12919         <math/w_lgamma_compat.c>.
12920         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
12921         Define as alias of __lgamma_compat and use in defining lgammal.
12922         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
12923         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
12924         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
12925         (USE_AS_COMPAT): New macro.
12926         (LGAMMA_OLD_VER): Undefine and redefine.
12927         (lgammal): Do not define here.
12928         (gammal): Only define here if [GAMMA_ALIAS].
12929         * conform/linknamespace.pl (@whitelist): Remove signgam.
12930         * sysdeps/nacl/libm.abilist: Update.
12931         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12932         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12933         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12934         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12935         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12936         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12937         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12938         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12939         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12940         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12941         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12942         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12944         Likewise.
12945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12946         Likewise.
12947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12948         Likewise.
12949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12950         Likewise.
12951         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12952         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12953         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12954         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12955         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12956         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12957         Likewise.
12958         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12959         Likewise.
12960         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12961         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12962         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12963
12964 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12965
12966         [BZ #16364]
12967         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
12968         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
12969
12970 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
12971
12972         * sysdeps/s390/fpu/bits/mathinline.h:
12973         Use __asm__ [__volatile__] instead of asm [volatile].
12974         * sysdeps/s390/abort-instr.h: Likewise.
12975         * sysdeps/s390/atomic-machine.h: Likewise.
12976         * sysdeps/s390/bits/string.h: Likewise.
12977         * sysdeps/s390/dl-tls.h: Likewise.
12978         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
12979         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
12980         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
12981         * sysdeps/s390/fpu/fesetround.c: Likewise.
12982         * sysdeps/s390/fpu/fpu_control.h: Likewise.
12983         * sysdeps/s390/fpu/s_fma.c: Likewise.
12984         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
12985         * sysdeps/s390/memusage.h: Likewise.
12986         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
12987         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
12988         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
12989         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
12990         * sysdeps/s390/nptl/tls.h: Likewise.
12991         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
12992         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12993         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12994         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
12995         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
12996         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
12997         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
12998         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12999         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13000         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
13001         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
13002         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13003         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
13004         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
13005         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
13006         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
13007         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
13008         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
13009         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
13010         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13011         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
13012         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13013         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
13014
13015 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13016             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13017
13018         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
13019         Add lwarx hint, and use macro for acquire instruction.
13020         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
13021         Likewise.
13022         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
13023         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
13024         update to use new atomic macros.
13025
13026 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13027
13028         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13029         (__lll_trylock_elision): Fix setting of adapt_count.
13030         * sysdeps/unix/sysv/linux/powerpc/htm.h
13031         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
13032         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
13033         (_ABORT_SYSCALL): Renumber, and clarify definition.
13034         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
13035
13036 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13037
13038         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
13039         after system headers to prevent MIN/MAX redefinition.  Define
13040         HAVE_ALLOCA to preserve builtin alloca usage.
13041
13042 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
13043
13044         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
13045         static and don't set or restore rounding.
13046         (__cos)[IN_SINCOS]: Likewise.
13047         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
13048         (__sincos): Set and restore rounding mode.  Remove check for infinite
13049         or NaN input.
13050
13051         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
13052
13053         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
13054         as used.
13055
13056 2015-11-16  Florian Weimer  <fweimer@redhat.com>
13057
13058         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
13059
13060 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
13061
13062         * config.make.in (have-glob-dat-reloc): New.
13063         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
13064         target supports GLOB_DAT relocaton. AC_SUBST.
13065         * configure: Regenerated.
13066         * elf/Makefile (tests): Add tst-prelink.
13067         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13068         (tst-prelink-ENV): New.
13069         ($(objpfx)tst-prelink-conflict.out): Likewise.
13070         ($(objpfx)tst-prelink-cmp.out): Likewise.
13071         * sysdeps/x86/tst-prelink.c: Moved to ...
13072         * elf/tst-prelink.c: Here.
13073         * sysdeps/x86/tst-prelink.exp: Moved to ...
13074         * elf/tst-prelink.exp: Here.
13075         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
13076         (tst-prelink-ENV): Removed.
13077         ($(objpfx)tst-prelink-conflict.out): Likewise.
13078         ($(objpfx)tst-prelink-cmp.out): Likewise.
13079         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
13080
13081 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
13082
13083         [BZ #14551]
13084         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
13085         (__mpn_construct_long_double): If high part overflows to infinity,
13086         set errno and recompute overflowed result of the correct sign.
13087         * sysdeps/ieee754/ldbl-128ibm/Makefile
13088         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
13089         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
13090         $(libm).
13091         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
13092
13093 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
13094
13095         [BZ #15479]
13096         [BZ #19238]
13097         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
13098         floating-point state after first operation on input.  Restore full
13099         state rather than just rounding mode.
13100         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
13101         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
13102         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
13103
13104         [BZ #19235]
13105         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
13106         add 0.5 to integer arguments.
13107         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
13108         Likewise.
13109         (.LC2): New object.
13110
13111 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
13112
13113         * scripts/pylintrc (reports): Set to no.
13114
13115 2015-11-10  Roland McGrath  <roland@hack.frob.com>
13116
13117         * elf/dl-load.c (open_verify): Take new argument FD.
13118         Skip __open call if passed FD is not -1.
13119         (_dl_map_object, open_path): Update callers.
13120         * elf/dl-sysdep-open.h: New file.
13121         * elf/dl-load.c: Include it.
13122         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
13123         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
13124         * sysdeps/nacl/dl-sysdep-open.h: New file.
13125         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
13126         from libc to rtld.
13127
13128 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13129
13130         [BZ #19228]
13131         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
13132         and restore full floating-point state.
13133         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
13134         Likewise.
13135         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
13136         Likewise.
13137         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
13138         Likewise.
13139         * math/test-nearbyint-except-2.c: New file.
13140         * math/Makefile (tests): Add test-nearbyint-except-2.
13141
13142 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
13143
13144         [BZ #19178]
13145         * sysdeps/x86/Makefile (tests): Add tst-prelink.
13146         (tst-prelink-ENV): New.
13147         ($(objpfx)tst-prelink-conflict.out): Likewise.
13148         ($(objpfx)tst-prelink-cmp.out): Likewise.
13149         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13150         * sysdeps/x86/tst-prelink.c: New file.
13151         * sysdeps/x86/tst-prelink.exp: Likewise.
13152
13153 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13154
13155         * math/auto-libm-test-in: Add another test of pow.
13156         * math/auto-libm-test-out: Regenerated.
13157         * math/libm-test.inc (pow_test_data): Add another test.
13158
13159 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13160
13161         [BZ #19219]
13162         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
13163         weak_alias to nearbyintl.
13164
13165 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13166
13167         * sysdeps/aarch64/bits/string.h: New file.
13168         (_STRING_ARCH_unaligned): Define.
13169
13170 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13171
13172         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
13173         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
13174         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
13175         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
13176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
13177
13178 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
13179
13180         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
13181         for original name of the DSO.  Add it to the name list of the DSO
13182         if it is actually given.
13183         (_dl_map_object): Keep track of whether an audit module rewrote
13184         the file name.  If yes, pass the original name to
13185         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
13186         debugging is enabled, log the change of the file name.
13187         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
13188         _dl_map_object_from_fd.
13189         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
13190         * elf/tst-audit11.c: New file
13191         * elf/tst-auditmod11.c: New file.
13192         * elf/tst-audit11mod1.c: New file.
13193         * elf/tst-audit11mod2.c: New file.
13194         * elf/tst-audit11mod2.map: New file.
13195         * elf/tst-audit12.c: New file
13196         * elf/tst-auditmod12.c: New file.
13197         * elf/tst-audit12mod1.c: New file.
13198         * elf/tst-audit12mod2.c: New file.
13199         * elf/tst-audit12mod2.map: New file.
13200         * elf/tst-audit12mod3.c: New file.
13201
13202 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13203
13204         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
13205         Don't create weak aliases,
13206         because versioned symbols are created later.
13207         * sysdeps/s390/s390-32/setjmp.S
13208         (setjmp, _setjmp): Remove weak and rename to an unique name
13209         in SHARED case due to existing versioned symbols.
13210         * sysdeps/s390/s390-64/setjmp.S: Likewise.
13211         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
13212         (getcontext): Create weak alias only in non SHARED case.
13213         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
13214
13215 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13216
13217         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
13218         (__ASSUME_*_SYSCALL) Define new macros.
13219         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
13220         Remove socketcall syscalls.
13221         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
13222         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
13223         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
13224         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
13225         * sysdeps/unix/sysv/linux/send.c (__libc_send):
13226         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
13227
13228 2015-11-09  Florian Weimer  <fweimer@redhat.com>
13229
13230         [BZ #12926]
13231         Terminate process on invalid netlink response.
13232         * sysdeps/unix/sysv/linux/netlinkaccess.h
13233         (__netlink_assert_response): Declare.
13234         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
13235         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
13236         (sysdep_routines): Add netlink_assert_response.
13237         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
13238         __netlink_assert_response.
13239         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
13240         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
13241         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
13242         __netlink_assert_response.
13243
13244 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13245
13246         [BZ #19178]
13247         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
13248         (RTYPE_CLASS_PLT): Likewise.
13249         (RTYPE_CLASS_COPY): Likewise.
13250         (RTYPE_CLASS_TLS): Likewise.
13251         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
13252         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
13253         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
13254         DL_DEBUG_PRELINK.
13255
13256 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
13257
13258         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
13259         calls with argument -0.5.
13260         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
13261
13262         * configure.ac (libc_cv_z_nodelete): Remove configure test.
13263         (libc_cv_z_nodlopen): Likewise.
13264         (libc_cv_z_initfirst): Likewise.
13265         * configure: Regenerated.
13266
13267 2015-11-06  Florian Weimer  <fweimer@redhat.com>
13268
13269         Simplify abilist format to be line-based.
13270         * scripts/abilist.awk: Collect descriptors in the descs variable.
13271         (emit): Write descs variable and sort it
13272         externally, with sort.
13273         * sysdeps/**/*.abilist: Convert to new format.
13274
13275 2015-11-06  Mark Wielaard  <mjw@redhat.com>
13276
13277         [BZ #11460]
13278         * io/Makefile (routines): Add fts64.
13279         (tests): Add tst-fts and tst-fts-lfs.
13280         (CFLAGS-fts64.c): New.
13281         * io/Versions (GLIBC_2.23): New.
13282         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
13283         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
13284         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
13285         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
13286         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
13287         (FTSENT64): Likewise.
13288         (fts64_children): Likewise.
13289         (fts64_close): Likewise.
13290         (fts64_open): Likewise.
13291         (fts64_read): Likewise.
13292         (fts64_set): Likewise.
13293         * io/fts64.c: New file.
13294         * io/tst-fts.c: New test.
13295         * io/tst-fts-lfs.c: Likewise.
13296         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
13297         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
13298         fts64_set.
13299         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13300         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13301         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13302         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13303         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13304         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13305         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13306         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13307         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13308         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13309         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13310         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13311         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13313         Likewise.
13314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13315         Likewise.
13316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13318         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13319         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13320         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13321         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13322         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13323         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13324         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13325         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13326         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13327         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13328         * sysdeps/wordsize-64/fts.c: New file.
13329         * sysdeps/wordsize-64/fts64.c: Likewise.
13330         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
13331         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
13332         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
13333         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
13334
13335 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13336
13337         * math/libm-test.inc (NON_FINITE): New macro.
13338         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
13339         * math/gen-libm-test.pl (show_exceptions): Add argument
13340         $non_finite.
13341         (parse_args): Update call to show_exceptions.
13342         * math/test-math-finite.h: New file.
13343         * math/test-math-no-finite.h: Likewise.
13344         * math/test-double-finite.c: Likewise.
13345         * math/test-float-finite.c: Likewise.
13346         * math/test-ldouble-finite.c: Likewise.
13347         * math/test-double.c: Include "test-math-no-finite.h".
13348         * math/test-float.c: Include "test-math-no-finite.h".
13349         * math/test-ldouble.c: Include "test-math-no-finite.h".
13350         * math/test-math-inline.h (TEST_FINITE): New macro.
13351         * math/test-math-vector.h (TEST_FINITE): Likewise.
13352         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
13353         (libm-tests): Add test-float-finite and test-double-finite.
13354         ($(objpfx)test-float-finite.o): New dependency on
13355         $(objpfx)libm-test.stmp.
13356         ($(objpfx)test-double-finite.o): Likewise.
13357         ($(objpfx)test-ldouble-finite.o): Likewise.
13358         (libm-test-no-inline-cflags): New variable.
13359         (libm-test-finite-cflags): Likewise.
13360         (CFLAGS-test-float-finite.c): Likewise.
13361         (CFLAGS-test-double-finite.c): Likewise.
13362         (CFLAGS-test-ldouble-finite.c): Likewise.
13363         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
13364         (CFLAGS-test-double.c): Likewise.
13365         (CFLAGS-test-ldouble.c): Likewise.
13366
13367 2015-11-05  Roland McGrath  <roland@hack.frob.com>
13368
13369         * io/fcntl.c (__fcntl): Add ... to prototype.
13370         * misc/ioctl.c (__ioctl): Likewise.
13371         * misc/syscall.c (syscall): Likewise.
13372
13373 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13374
13375         * scripts/list-fixed-bugs.py: New file.
13376
13377         [BZ #19213]
13378         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
13379         returned for argument 1.
13380         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
13381         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
13382         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
13383         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
13384         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
13385         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
13386
13387         [BZ #19211]
13388         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
13389         __USE_XOPEN], not if [!__USE_ISOC99].
13390         (lgammaf): Likewise.
13391         (lgammal): Likewise.
13392         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
13393         (gammaf): Likewise.
13394         (gammal): Likewise.
13395         * math/test-signgam-finite-c11.c: New file.
13396         * math/test-signgam-finite-c99.c: Likewise.
13397         * math/test-signgam-finite.c: Likewise.
13398         * math/Makefile (tests): Add test-signgam-finite,
13399         test-signgam-finite-c99 and test-signgam-finite-c11.
13400         (CFLAGS-test-signgam-finite.c): New variable.
13401         (CFLAGS-test-signgam-finite-c99.c): Likewise.
13402         (CFLAGS-test-signgam-finite-c11.c): Likewise.
13403
13404         [BZ #19212]
13405         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
13406         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
13407         500].
13408         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
13409         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
13410         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
13411         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
13412         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
13413         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
13414         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
13415         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
13416         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
13417         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
13418
13419         [BZ #19209]
13420         * math/bits/math-finite.h (ldexp): Remove declaration.
13421         (ldexpf): Likewise.
13422         (ldexpl): Likewise.
13423
13424         [BZ #19205]
13425         * math/bits/math-finite.h (acosf): Condition declaration on
13426         [__USE_ISOC99].
13427         (acosl): Likewise.
13428         (acoshf): Likewise.
13429         (acoshl): Likewise.
13430         (asinf): Likewise.
13431         (asinl): Likewise.
13432         (atan2f): Likewise.
13433         (atan2l): Likewise.
13434         (atanhf): Likewise.
13435         (atanhl): Likewise.
13436         (coshf): Likewise.
13437         (coshl): Likewise.
13438         (expf): Likewise.
13439         (expl): Likewise.
13440         (fmodf): Likewise.
13441         (fmodl): Likewise.
13442         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
13443         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
13444         (j0l): Likewise.
13445         (y0f): Likewise.
13446         (y0l): Likewise.
13447         (j1f): Likewise.
13448         (j1l): Likewise.
13449         (y1f): Likewise.
13450         (y1l): Likewise.
13451         (jnf): Likewise.
13452         (jnl): Likewise.
13453         (ynf): Likewise.
13454         (ynl): Likewise.
13455         (lgammaf_r): Condition declaration on [__USE_ISOC99].
13456         (lgammal_r): Likewise.
13457         (__lgamma_r_finite): New declaration.
13458         (__lgammaf_r_finite): Likewise.
13459         (__lgammal_r_finite): Likewise.
13460         (lgamma): Use __lgamma_r_finite.
13461         (lgammaf): Condition definition on [__USE_ISOC99].  Use
13462         __lgammaf_r_finite.
13463         (lgammal): Condition definition on [__USE_ISOC99].  Use
13464         __lgammal_r_finite.
13465         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
13466         __lgamma_r_finite.
13467         (gammaf): Condition definition on [__USE_ISOC99].  Use
13468         __lgammaf_r_finite.
13469         (gammal): Condition definition on [__USE_ISOC99].  Use
13470         __lgammal_r_finite.
13471         (logf): Condition declaration on [__USE_ISOC99].
13472         (logl): Likewise.
13473         (log10f): Likewise.
13474         (log10l): Likewise.
13475         (ldexpf): Likewise.
13476         (ldexpl): Likewise.
13477         (powf): Likewise.
13478         (powl): Likewise.
13479         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
13480         __USE_ISOC99].
13481         (remainderf): Condition declaration on [__USE_ISOC99].
13482         (remainderl): Likewise.
13483         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
13484         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
13485         (scalbl): Likewise.
13486         (sinhf): Condition declaration on [__USE_ISOC99].
13487         (sinhl): Likewise.
13488         (sqrtf): Likewise.
13489         (sqrtl): Likewise.
13490
13491 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13492
13493         * sysdeps/arm/atomic-machine.h
13494         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13495         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13496         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
13497         Remove conditional code.
13498         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13499         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13500         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
13501         Change conditional to [__ASSEMBLER__].
13502         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
13503         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
13504         [!__ASSEMBLER__].
13505         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
13506         code.
13507         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
13508         conditional macro definitions.
13509         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
13510         (__arch_compare_and_exchange_val_16_acq): Likewise.
13511         (__arch_compare_and_exchange_val_32_acq): Likewise.
13512         (atomic_exchange_and_add): Likewise.
13513         (atomic_add): Likewise.
13514         (atomic_add_negative): Likewise.
13515         (atomic_add_zero): Likewise.
13516         (atomic_bit_set): Likewise.
13517         (atomic_bit_test_set): Likewise.
13518         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
13519         code unconditional.
13520         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13521
13522         * math/test-math-errno.h: New file.
13523         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
13524         empty.
13525         (TEST_ERRNO): New macro.
13526         (TEST_EXCEPTIONS): Likewise.
13527         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
13528         (TEST_EXCEPTIONS): Likewise.
13529         * math/test-math-vector.h (TEST_ERRNO): Likewise.
13530         * math/test-double.c: Include "test-math-errno.h".
13531         * math/test-float.c: Likewise.
13532         * math/test-ldouble.c: Likewise.
13533         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
13534         code unconditional.
13535         (test_exceptions): Only run code if TEST_EXCEPTIONS.
13536         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
13537         unconditional.
13538         (test_errno): Only run code if TEST_ERRNO.
13539         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
13540
13541 2015-11-04  Florian Weimer  <fweimer@redhat.com>
13542
13543         * nptl/tst-once5.cc: Remove attribution.
13544
13545 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13546
13547         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
13548         sqrt, tan, tanh, y0, y1 and yn.
13549         * math/auto-libm-test-out: Regenerated.
13550         * math/libm-test.inc (scalb_test_data): Add more tests.
13551         (scalbn_test_data): Likewise.
13552         (scalbln_test_data): Likewise.
13553         (signbit_test_data): Likewise.
13554         (sin_test_data): Likewise.
13555         (sincos_test_data): Likewise.
13556         (sinh_test_data): Likewise.
13557         (sqrt_test_data): Likewise.
13558         (tan_test_data): Likewise.
13559         (tanh_test_data): Likewise.
13560         (tgamma_test_data): Likewise.
13561         (y0_test_data): Likewise.
13562         (y1_test_data): Likewise.
13563         (yn_test_data): Likewise.
13564         (significand_test_data): Likewise.
13565         * sysdeps/i386/fpu/libm-test-ulps: Update.
13566
13567 2015-11-03  David Kastrup  <dak@gnu.org>
13568
13569         [BZ #18604]
13570         * assert/assert.h (assert): Don't macro-expand failed assertion
13571         expression in error message.
13572         * malloc/malloc.c (assert): Likewise.
13573
13574 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
13575
13576         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
13577         test.
13578         * configure: Regenerated.
13579
13580 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
13581
13582         * math/libm-test.inc (modf_test_data): Add more tests.
13583         (nearbyint_test_data): Likewise.
13584         (nextafter_test_data): Likewise.
13585         (nexttoward_test_data): Likewise.
13586         (pow_test_data): Likewise.
13587         (remainder_test_data): Likewise.
13588         (remquo_test_data): Likewise.
13589         (rint_test_data): Likewise.
13590
13591         [BZ #19201]
13592         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
13593         Check for zero remainder in case of large exponents and ensure
13594         correct sign of result in that case.
13595         * math/libm-test.inc (remainder_test_data): Add more tests.
13596
13597         [BZ #6799]
13598         * math/s_nextafter.c: Include <errno.h>.
13599         (__nextafter): Set errno on overflow and underflow.
13600         * math/s_nexttowardf.c: Include <errno.h>.
13601         (__nexttowardf): Set errno on overflow and underflow.
13602         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
13603         (__nextafterl): Set errno on overflow and underflow.
13604         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
13605         (__nexttoward): Set errno on overflow and underflow.
13606         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
13607         (__nexttowardf): Set errno on overflow and underflow.
13608         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
13609         (__nextafterf): Set errno on overflow and underflow.
13610         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
13611         (__nextafterl): Set errno on overflow and underflow.
13612         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
13613         (__nexttoward): Set errno on overflow and underflow.
13614         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
13615         (__nexttowardf): Set errno on overflow and underflow.
13616         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
13617         (__nextafterl): Set errno on overflow and underflow.
13618         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
13619         (__nexttoward): Set errno on overflow and underflow.
13620         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
13621         (__nexttowardf): Set errno on overflow and underflow.
13622         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
13623         (__nexttoward): Set errno on overflow and underflow.
13624         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
13625         (__nexttowardf): Set errno on overflow and underflow.
13626         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
13627         (__nldbl_nexttowardf): Set errno on overflow and underflow.
13628         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
13629         (__nextafterl): Set errno on overflow and underflow.
13630         * math/libm-test.inc (nextafter_test_data): Do not allow errno
13631         setting to be missing on overflow.  Add more tests.
13632         (nexttoward_test_data): Likewise.
13633
13634         * configure.ac (libc_cv_initfini_array): Remove configure test.
13635         * configure: Regenerated.
13636
13637 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
13638
13639         [BZ #19189]
13640         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
13641         non-finite argument handle arguments with negative sign.
13642
13643         * math/libm-test.inc (j0_test_data): Do not test sign of zero
13644         result from infinite argument.
13645         (j1_test_data): Likewise.
13646         (jn_test_data): Likewise.
13647         (y0_test_data): Likewise.
13648         (y1_test_data): Likewise.
13649         (yn_test_data): Likewise.
13650
13651         [BZ #16171]
13652         * math/w_remainder.c (drem): Define as weak alias of __remainder.
13653         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
13654         * math/w_remainderf.c (dremf): Define as weak alias of
13655         __remainderf.
13656         * math/w_remainderl.c (dreml): Define as weak alias of
13657         __remainderl.
13658         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
13659         __remainder.
13660         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
13661         __remainderf.
13662         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
13663         __remainderl.
13664         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
13665         weak alias of remainderl.
13666         * sysdeps/ieee754/ldbl-opt/w_remainder.c
13667         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
13668         alias of __remainder.
13669         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
13670         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
13671         strong alias of __remainderl.
13672         (dreml): Use long_double_symbol.
13673         * math/Makefile (libm-calls): Remove w_drem.
13674         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
13675         (CFLAGS-nldbl-drem.c): Remove variable.
13676         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
13677         * math/w_drem.c: Remove file.
13678         * math/w_dremf.c: Likewise.
13679         * math/w_dreml.c: Likewise.
13680         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
13681         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
13682         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
13683
13684         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
13685         * sysdeps/i386/configure: Regenerated.
13686         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
13687         * sysdeps/x86_64/configure: Regenerated.
13688
13689         * configure.ac (libc_cv_asm_protected_directive): Remove configure
13690         test.
13691         (libc_cv_visibility_attribute): Likewise.
13692         (libc_cv_protected_data): Test unconditionally.
13693         (libc_cv_broken_visibility_attribute): Remove configure test.
13694         (libc_cv_have_sdata_section): Test unconditionally.
13695         * configure: Regenerated.
13696
13697         * include/libc-internal.h (libc_max_align_t): Remove typedef.
13698         * include/scratch_buffer.h: Include <stddef.h> instead of
13699         <libc-internal.h>.
13700         (struct scratch_buffer): Use max_align_t instead of
13701         libc_max_align_t.
13702
13703 2015-10-29  Florian Weimer  <fweimer@redhat.com>
13704
13705         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
13706         instead of extend_alloca.  Change control flow to avoid a goto.
13707         Remove assert which is trivially always true.
13708
13709 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
13710
13711         [BZ #16068]
13712         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
13713         (FE_ALL_EXCEPT_X86): New macro.
13714         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
13715         FE_ALL_EXCEPT.  Ensure precision control is included in
13716         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
13717         handle "denormal operand exception" and clear FZ and DAZ bits.
13718         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
13719         (FE_ALL_EXCEPT_X86): New macro.
13720         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
13721         FE_ALL_EXCEPT.  Ensure precision control is included in
13722         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
13723         handle "denormal operand exception" and clear FZ and DAZ bits.
13724         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
13725         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
13726         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
13727         test-fenv-x87 and test-fenv-sse-2.
13728         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
13729
13730         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
13731         * math/test-double.h (BUILD_COMPLEX): New macro.
13732         * math/test-float.h (BUILD_COMPLEX): Likewise.
13733         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
13734
13735         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
13736         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
13737         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
13738         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
13739         instead of DBL_DENORM_MIN in comment.
13740         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
13741         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
13742         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
13743         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
13744         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
13745         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
13746
13747 2015-10-28  Florian Weimer  <fweimer@redhat.com>
13748
13749         [BZ# 19048]
13750         * malloc/malloc.c (struct malloc_state): Update comment.  Add
13751         attached_threads member.
13752         (main_arena): Initialize attached_threads.
13753         * malloc/arena.c (list_lock): Update comment.
13754         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
13755         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
13756         (deattach_arena): New function.
13757         (_int_new_arena): Initialize arena reference count and deattach
13758         replaced arena.
13759         (get_free_list, reused_arena): Update reference count and deattach
13760         replaced arena.
13761         (arena_thread_freeres): Update arena reference count and only put
13762         unreferenced arenas on the free list.
13763
13764 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
13765
13766         [BZ #19181]
13767         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
13768         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
13769         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
13770         * math/test-fenv-clear-main.c: New file.
13771         * math/test-fenv-clear.c: Likewise.
13772         * math/Makefile (tests): Add test-fenv-clear.
13773         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
13774         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
13775         test-fenv-clear-sse.
13776         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
13777
13778         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
13779         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
13780         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
13781
13782 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13783
13784         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
13785         static libc.
13786
13787 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
13788
13789         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
13790         test.
13791         * sysdeps/i386/configure: Regenerated.
13792         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
13793         test.
13794         * sysdeps/x86_64/configure: Regenerated.
13795         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
13796         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13797         memset-avx2 unconditionally instead of conditionally on
13798         [$(config-cflags-avx2) = yes].
13799         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13800         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
13801         unconditional.
13802         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
13803         * sysdeps/x86_64/multiarch/memset_chk.S
13804         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
13805         to [IS_IN (libc) && SHARED].
13806
13807 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
13808
13809         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
13810         configure test.
13811         * sysdeps/arm/configure: Regenerated.
13812         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
13813         Define variable if not already defined.
13814
13815         [BZ #17404]
13816         * sysdeps/mips/atomic-machine.h
13817         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
13818         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
13819         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
13820
13821         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
13822         unconditional.
13823         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
13824         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13825         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
13826         unconditional.
13827         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13828         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
13829         unconditional.
13830         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13831         * stdlib/setenv.c
13832         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
13833         code unconditional.
13834         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
13835         Remove conditional code.
13836         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
13837         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
13838         unconditional.
13839         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
13840         code.
13841         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
13842         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
13843         unconditional.
13844         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
13845         code.
13846         * sysdeps/ieee754/ldbl-128/k_tanl.c
13847         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
13848         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13849         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
13850         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
13851         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13852         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
13853         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
13854         unconditional.
13855         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
13856         code.
13857         * sysdeps/ieee754/ldbl-96/k_tanl.c
13858         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
13859         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13860
13861         * nptl/tst-initializers1-c11.c: New file.
13862         * nptl/tst-initializers1-gnu11.c: Likewise.
13863         * nptl/Makefile (tests): Add these new tests.
13864         (CFLAGS-tst-initializers1-c11.c): New variable.
13865         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
13866
13867         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
13868         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
13869         instead of -std=gnu99.
13870         * configure.ac (systemtap): Test with -std=gnu11 instead of
13871         -std=gnu99.
13872         * configure: Regenerated.
13873         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
13874         in compilation command in comment.
13875
13876         * sysdeps/nptl/configure.ac: Remove file.
13877         * sysdeps/nptl/configure: Remove generated file.
13878         * configure.ac (libc_cv_forced_unwind): Do not substitute.
13879         * configure: Regenerated.
13880         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
13881         * config.make.in (have-forced-unwind): Remove variable.
13882         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
13883         unconditional.
13884         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
13885         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
13886         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
13887         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
13888         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
13889         unconditional.
13890
13891 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13892
13893         [BZ #19174]
13894         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
13895         .skip_lock_out_of_tbegin_retries.
13896         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13897         (__lll_lock_elision): Likewise, and respect a value of
13898         try_tbegin <= 0.
13899
13900 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13901
13902         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
13903         statement.
13904
13905 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
13906
13907         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
13908         variable.
13909         (test-xfail-ISO11/stdalign.h/conform): Likewise.
13910         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
13911
13912         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
13913         of -std=c1x -D_ISOC11_SOURCE.
13914
13915         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
13916         * configure: Regenerated.
13917         * manual/install.texi (Tools for Compilation): Document
13918         requirement for GCC 4.7 or later.
13919         * INSTALL: Regenerated.
13920
13921 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
13922
13923         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
13924         on CNT to a conditional jump to 'puntdata'.
13925
13926 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
13927
13928         * configure.ac (libc_cv_gcc___thread): Remove configure test.
13929         (libc_cv_gcc_tls_model_attr): Likewise.
13930         * configure: Regenerated.
13931
13932         * configure.ac (libc_cv_need_minus_P): Remove configure test.
13933         * configure: Regenerated.
13934         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
13935
13936 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
13937
13938         * configure.ac (old_glibc_headers): Remove configure test.
13939         * configure: Regenerated.
13940         * config.make.in (old-glibc-headers): Remove variable.
13941         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
13942         (install): Remove dependency on remove-old-headers.
13943         (headers2_0): Remove variable.
13944         (remove-old-headers): Remove rule.
13945
13946         * configure.ac (libc_cv_dot_text): Remove configure test.
13947         (libc_cv_asm_set_directive): Use .text instead of
13948         ${libc_cv_dot_text} in configure test.
13949         * configure: Regenerated.
13950
13951 2015-10-26  Florian Weimer  <fweimer@redhat.com>
13952
13953         [BZ #19168]
13954         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13955
13956 2015-10-26  Florian Weimer  <fweimer@redhat.com>
13957
13958         * configure.ac (CXX): Clear the variable if the C++ toolchain does
13959         not support static linking.
13960         * configure: Regenerate.
13961
13962 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
13963
13964         * math/libm-test.inc (check_float_internal): Do not special-case
13965         errors up to 0.5 ulp.
13966
13967         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
13968         log2.
13969         * math/auto-libm-test-out: Regenerated.
13970         * math/libm-test.inc (MAX_EXP): New macro.
13971         (ilogb_test_data): Add more tests.
13972         (isfinite_test_data): Likewise.
13973         (isgreater_test_data): Likewise.
13974         (isgreaterequal_test_data): Likewise.
13975         (isinf_test_data): Likewise.
13976         (isless_test_data): Likewise.
13977         (islessequal_test_data): Likewise.
13978         (islessgreater_test_data): Likewise.
13979         (isnan_test_data): Likewise.
13980         (isnormal_test_data): Likewise.
13981         (issignaling_test_data): Likewise.
13982         (isunordered_test_data): Likewise.
13983         (j0_test_data): Likewise.
13984         (j1_test_data): Likewise.
13985         (jn_test_data): Likewise.
13986         (lgamma_test_data): Likewise.
13987         (log_test_data): Likewise.
13988         (log10_test_data): Likewise.
13989         (log1p_test_data): Likewise.
13990         (log2_test_data): Likewise.
13991         (logb_test_data): Likewise.
13992         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13993
13994         [BZ #18611]
13995         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
13996         avoid excess range and precision on underflow.
13997         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13998         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13999         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14000         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
14001         underflow.
14002         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14003         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14004         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14005         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14006         * math/auto-libm-test-in: Do not allow missing errno setting for
14007         tests of j1 and jn.
14008         * math/auto-libm-test-out: Regenerated.
14009
14010 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
14011
14012         [BZ #15491]
14013         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
14014         floating-point environment instead of clearing all exceptions.
14015         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14016         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
14017         merging in "invalid" exceptions from frndint.
14018         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14019         * math/test-nearbyint-except.c: New file.
14020         * math/Makefile (tests): Add test-nearbyint-except.
14021
14022 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
14023
14024         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
14025
14026         * sysdeps/tile/libm-test-ulps: Regenerated.
14027
14028 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14029
14030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
14031         (__NR_sync_file_range2): Assume it is always defined.
14032         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
14033         (__NR_sync_file_range): Assume it is always defined.
14034
14035 2015-10-22  Andreas Schwab  <schwab@suse.de>
14036
14037         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
14038         INTERNAL_SYSCALL_ERRNO.
14039         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
14040         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
14041         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14042         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
14043         Likewise.
14044         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14045
14046 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14047
14048         * io/tst-fcntl.c (fd): New static variable.
14049         (do_prepare): Open temporary file here....
14050         (do_test): ...not here.
14051
14052         * io/ftwtest-sh: Also trap on exit to remove temporary files.
14053
14054 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14055
14056         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
14057         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14058         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14059         Moved before "#ifdef __ASSEMBLER__".
14060
14061 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14062
14063         [BZ #19156]
14064         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
14065         arguments very close to 0.
14066
14067 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
14068
14069         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
14070         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
14071
14072 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14073
14074         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14075         New.  Defined for GCC 5 and above when not compiling for
14076         profiling.
14077         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14078
14079         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
14080         Renamed to ...
14081         (CFLAGS-epoll_pwait.o): This.
14082         (CFLAGS-mmap.c): Renamed to ...
14083         (CFLAGS-mmap.o): This.
14084         (CFLAGS-mmap64.c): Renamed to ...
14085         (CFLAGS-mmap64.o): This.
14086         (CFLAGS-epoll_pwait.os): New.
14087         (CFLAGS-mmap.os): Likewise.
14088         (CFLAGS-mmap64.os): Likewise.
14089         (CFLAGS-semtimedop.os): Likewise.
14090         (CFLAGS-semtimedop.c): Renamed to ...
14091         (CFLAGS-semtimedop.o): This.
14092
14093 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14094
14095         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
14096         warning message.
14097
14098 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14099
14100         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
14101         * Makefile ($(objpfx)c++-types-check.out): Filter out
14102         $(+gccwarn-c) instead of -Wstrict-prototypes.
14103
14104         * io/fts.c (fts_open): Convert to prototype-style function
14105         definition.
14106         * malloc/mcheck.c (mcheck): Likewise.
14107         (mcheck_pedantic): Likewise.
14108         * posix/regexec.c (re_search_2_stub): Likewise.  Use
14109         internal_function.
14110         (re_search_internal): Likewise.
14111         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
14112         prototype-style function definition.
14113         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14114         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
14115         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
14116         (xdr_utmpptr): Likewise.
14117         (xdr_utmparr): Likewise.
14118         (xdr_utmpidle): Likewise.
14119         (xdr_utmpidleptr): Likewise.
14120         (xdr_utmpidlearr): Likewise.
14121
14122         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
14123         log, log10 and log2.
14124         * math/auto-libm-test-out: Regenerated.
14125         * math/libm-test.inc (fmod_test_data): Add more tests.
14126         (fpclassify_test_data): Likewise.
14127         (frexp_test_data): Likewise.
14128         (hypot_test_data): Likewise.
14129         (ilogb_test_data): Likewise.
14130
14131 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
14132
14133         * debug/fortify_fail.c (__fortify_fail): Convert to
14134         prototype-style function definition.  Use internal_function.
14135         * libio/genops.c (save_for_backup): Convert to prototype-style
14136         function definition.
14137         * libio/wgenops.c (save_for_wbackup): Likewise.
14138         * login/grantpt.c (grantpt): Likewise.
14139         * login/ptsname.c (ptsname): Likewise.
14140         (__ptsname_r): Likewise.
14141         * login/unlockpt.c (unlockpt): Likewise.
14142         * mach/msgserver.c (__mach_msg_server): Likewise.
14143         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
14144         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
14145         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
14146         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
14147         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
14148         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
14149         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
14150         Likewise.
14151         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
14152         internal_function.
14153         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
14154         prototype-style function definition.
14155         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
14156         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
14157         (__pthread_create_2_0): Likewise.
14158         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
14159         * nptl/register-atfork.c (__register_atfork): Likewise.
14160         * posix/glob.c (glob): Likewise.
14161         * posix/regcomp.c (re_comp): Likewise.
14162         * posix/regexec.c (re_exec): Likewise.
14163         * stdlib/add_n.c [__STDC__]: Make code unconditional.
14164         [!__STDC__]: Remove conditional code.
14165         * stdlib/cmp.c [__STDC__]: Make code unconditional.
14166         [!__STDC__]: Remove conditional code.
14167         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
14168         [!__STDC__]: Remove conditional code.
14169         * stdlib/divrem.c [__STDC__]: Make code unconditional.
14170         [!__STDC__]: Remove conditional code.
14171         * stdlib/lshift.c [__STDC__]: Make code unconditional.
14172         [!__STDC__]: Remove conditional code.
14173         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
14174         [!__STDC__]: Remove conditional code.
14175         * stdlib/mul.c [__STDC__]: Make code unconditional.
14176         [!__STDC__]: Remove conditional code.
14177         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
14178         [!__STDC__]: Remove conditional code.
14179         * stdlib/rshift.c [__STDC__]: Make code unconditional.
14180         [!__STDC__]: Remove conditional code.
14181         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
14182         function definition.
14183         (STRTOF): Likewise.
14184         * stdlib/strtod_l.c (__STRTOF): Likewise.
14185         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
14186         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
14187         (__strtol_l): Likewise.
14188         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
14189         [!__STDC__]: Remove conditional code.
14190         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
14191         definition.
14192         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14193         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14194         type.
14195         (__strcasecmp): Convert to prototype-style function definition.
14196         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
14197         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14198         type.
14199         (__strncasecmp): Convert to prototype-style function definition.
14200         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
14201         * sunrpc/xdr.c (xdr_union): Likewise.
14202         * sunrpc/xdr_array.c (xdr_array): Likewise.
14203         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
14204         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
14205         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
14206         Likewise.
14207         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
14208         Likewise.
14209         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
14210         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
14211         Likewise.
14212         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
14213         (LOCALE_PARAM_PROTO): Likewise.
14214         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
14215         argument type.
14216         (ut_argument_spec): Remove macro.
14217         (ut_argument_spec_iso): Rename to ut_argument_spec.
14218         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
14219         prototype-style function definition.
14220         (memcpy_uppcase): Likewise.
14221         (__strftime_internal): Likewise.
14222         (my_strftime): Likewise.
14223         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
14224         (LOCALE_PARAM_DECL): Likewise.
14225         [_LIBC] (LOCALE_PARAM): Include argument type.
14226         (__strptime_internal): Convert to prototype-style function
14227         definition.
14228         (strptime): Likewise.
14229         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14230         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14231         type.
14232         (__wcscasecmp): Convert to prototype-style function definition.
14233         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
14234         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14235         type.
14236         (__wcsncasecmp): Convert to prototype-style function definition.
14237
14238         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
14239         function definition.
14240         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
14241         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
14242         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
14243         * elf/dl-minimal.c (_itoa): Likewise.
14244         * hurd/hurdmalloc.c (malloc): Likewise.
14245         (free): Likewise.
14246         (realloc): Likewise.
14247         * inet/inet6_option.c (inet6_option_space): Likewise.
14248         (inet6_option_init): Likewise.
14249         (inet6_option_append): Likewise.
14250         (inet6_option_alloc): Likewise.
14251         (inet6_option_next): Likewise.
14252         (inet6_option_find): Likewise.
14253         * io/ftw.c (FTW_NAME): Likewise.
14254         (NFTW_NAME): Likewise.
14255         (NFTW_NEW_NAME): Likewise.
14256         (NFTW_OLD_NAME): Likewise.
14257         * libio/iofwide.c (_IO_fwide): Likewise.
14258         * libio/strops.c (_IO_str_init_static_internal): Likewise.
14259         (_IO_str_init_static): Likewise.
14260         (_IO_str_init_readonly): Likewise.
14261         (_IO_str_overflow): Likewise.
14262         (_IO_str_underflow): Likewise.
14263         (_IO_str_count): Likewise.
14264         (_IO_str_seekoff): Likewise.
14265         (_IO_str_pbackfail): Likewise.
14266         (_IO_str_finish): Likewise.
14267         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
14268         (_IO_wstr_overflow): Likewise.
14269         (_IO_wstr_underflow): Likewise.
14270         (_IO_wstr_count): Likewise.
14271         (_IO_wstr_seekoff): Likewise.
14272         (_IO_wstr_pbackfail): Likewise.
14273         (_IO_wstr_finish): Likewise.
14274         * locale/programs/localedef.c (normalize_codeset): Likewise.
14275         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14276         (add_locales_to_archive): Likewise.
14277         (delete_locales_from_archive): Likewise.
14278         * malloc/malloc.c (__libc_mallinfo): Likewise.
14279         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
14280         * misc/tsearch.c (__tfind): Likewise.
14281         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
14282         * nptl/pthread_attr_getdetachstate.c
14283         (__pthread_attr_getdetachstate): Likewise.
14284         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
14285         Likewise.
14286         * nptl/pthread_attr_getinheritsched.c
14287         (__pthread_attr_getinheritsched): Likewise.
14288         * nptl/pthread_attr_getschedparam.c
14289         (__pthread_attr_getschedparam): Likewise.
14290         * nptl/pthread_attr_getschedpolicy.c
14291         (__pthread_attr_getschedpolicy): Likewise.
14292         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
14293         Likewise.
14294         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
14295         Likewise.
14296         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
14297         Likewise.
14298         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
14299         Likewise.
14300         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
14301         (__pthread_attr_init_2_0): Likewise.
14302         * nptl/pthread_attr_setdetachstate.c
14303         (__pthread_attr_setdetachstate): Likewise.
14304         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
14305         Likewise.
14306         * nptl/pthread_attr_setinheritsched.c
14307         (__pthread_attr_setinheritsched): Likewise.
14308         * nptl/pthread_attr_setschedparam.c
14309         (__pthread_attr_setschedparam): Likewise.
14310         * nptl/pthread_attr_setschedpolicy.c
14311         (__pthread_attr_setschedpolicy): Likewise.
14312         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
14313         Likewise.
14314         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
14315         Likewise.
14316         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
14317         Likewise.
14318         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
14319         Likewise.
14320         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
14321         Likewise.
14322         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
14323         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
14324         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
14325         use internal_function.
14326         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
14327         prototype-style function definition.
14328         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
14329         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
14330         internal_function.
14331         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
14332         Convert to prototype-style function definition.
14333         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
14334         Likewise.
14335         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
14336         Likewise.
14337         (__pthread_mutex_unlock): Likewise.
14338         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
14339         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
14340         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
14341         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
14342         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
14343         * nss/makedb.c (process_input): Likewise.
14344         * posix/fnmatch.c (__strchrnul): Likewise.
14345         (__wcschrnul): Likewise.
14346         (fnmatch): Likewise.
14347         * posix/fnmatch_loop.c (FCT): Likewise.
14348         * posix/glob.c (globfree): Likewise.
14349         (__glob_pattern_type): Likewise.
14350         (__glob_pattern_p): Likewise.
14351         * posix/regcomp.c (re_compile_pattern): Likewise.
14352         (re_set_syntax): Likewise.
14353         (re_compile_fastmap): Likewise.
14354         (regcomp): Likewise.
14355         (regerror): Likewise.
14356         (regfree): Likewise.
14357         * posix/regexec.c (regexec): Likewise.
14358         (re_match): Likewise.
14359         (re_search): Likewise.
14360         (re_match_2): Likewise.
14361         (re_search_2): Likewise.
14362         (re_search_stub): Likewise.  Use internal_function
14363         (re_copy_regs): Likewise.
14364         (re_set_registers): Convert to prototype-style function
14365         definition.
14366         (prune_impossible_nodes): Likewise.  Use internal_function.
14367         * resolv/inet_net_pton.c (inet_net_pton): Convert to
14368         prototype-style function definition.
14369         (inet_net_pton_ipv4): Likewise.
14370         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
14371         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
14372         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
14373         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
14374         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
14375         Make variadic.
14376         * time/strptime_l.c (localtime_r): Convert to prototype-style
14377         function definition.
14378         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
14379         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
14380         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
14381         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
14382
14383         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
14384         definition.
14385         (_ufc_doit_r): Likewise.
14386         * crypt/crypt_util.c (_ufc_copymem): Likewise.
14387         (_ufc_output_conversion_r): Likewise.
14388         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
14389         * inet/rcmd.c (rcmd_af): Likewise.
14390         (rcmd): Likewise.
14391         (ruserok_af): Likewise.
14392         (ruserok): Likewise.
14393         (ruserok2_sa): Likewise.
14394         (ruserok_sa): Likewise.
14395         (iruserok_af): Likewise.
14396         (iruserok): Likewise.
14397         (__ivaliduser): Likewise.
14398         (__validuser2_sa): Likewise.
14399         * inet/rexec.c (rexec_af): Likewise.
14400         (rexec): Likewise.
14401         * inet/ruserpass.c (ruserpass): Likewise.
14402         * locale/programs/xmalloc.c (xcalloc): Likewise.
14403         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
14404         * math/w_drem.c (__drem): Likewise.
14405         * math/w_dremf.c (__dremf): Likewise.
14406         * math/w_dreml.c (__dreml): Likewise.
14407         * misc/daemon.c (daemon): Likewise.
14408         * resolv/res_debug.c (p_fqnname): Likewise.
14409         * stdlib/div.c (div): Likewise.
14410         * string/memcmp.c (memcmp_bytes): Likewise.
14411         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
14412         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
14413
14414         * crypt/cert.c (main): Convert to prototype-style function
14415         definition.
14416         * io/pipe.c (__pipe): Likewise.
14417         * io/pipe2.c (__pipe2): Likewise.
14418         * misc/futimesat.c (futimesat): Likewise.
14419         * misc/utimes.c (__utimes): Likewise.
14420         * posix/execve.c (__execve): Likewise.
14421         * posix/execvp.c (execvp): Likewise.
14422         * posix/execvpe.c (__execvpe): Likewise.
14423         * posix/fexecve.c (fexecve): Likewise.
14424         * socket/socketpair.c (socketpair): Likewise.
14425         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
14426         * stdlib/erand48.c (erand48): Likewise.
14427         * stdlib/erand48_r.c (__erand48_r): Likewise.
14428         * stdlib/jrand48.c (jrand48): Likewise.
14429         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
14430         * stdlib/lcong48.c (lcong48): Likewise.
14431         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
14432         * stdlib/nrand48.c (nrand48): Likewise.
14433         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
14434         * stdlib/seed48.c (seed48): Likewise.
14435         * stdlib/seed48_r.c (__seed48_r): Likewise.
14436         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
14437         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
14438         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
14439
14440 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14441
14442         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
14443         * configure: Regenerated.
14444         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
14445         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
14446         unconditional.
14447         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14448         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14449         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14450         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
14451         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
14452         unconditional.
14453         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14454
14455         * posix/Makefile (CFLAGS-regex.c): Remove variable.
14456         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
14457
14458         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
14459         function definition.
14460         * crypt/crypt_util.c (__encrypt_r): Likewise.
14461         * libio/genops.c (_IO_no_init): Likewise.
14462         * libio/iofopncook.c (_IO_fopencookie): Likewise.
14463         (_IO_old_fopencookie): Likewise.
14464         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
14465         * libio/iogetline.c (_IO_getline): Likewise.
14466         (_IO_getline_info): Likewise.
14467         * libio/iogetwline.c (_IO_getwline): Likewise.
14468         (_IO_getwline_info): Likewise.
14469         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
14470         * libio/vswprintf.c (_IO_vswprintf): Likewise.
14471         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
14472         (find_entry): Likewise.
14473         (iterate_table): Likewise.
14474         (lookup): Likewise.
14475         * login/forkpty.c (forkpty): Likewise.
14476         * misc/hsearch_r.c (__hsearch_r): Likewise.
14477         * misc/select.c (__select): Likewise.
14478         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
14479         Likewise.
14480         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
14481         Likewise.
14482         * nptl/old_pthread_cond_timedwait.c
14483         (__pthread_cond_timedwait_2_0): Likewise.
14484         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
14485         * nptl/pthread_barrierattr_getpshared.c
14486         (pthread_barrierattr_getpshared): Likewise.
14487         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
14488         Likewise.
14489         * nptl/pthread_mutex_setprioceiling.c
14490         (pthread_mutex_setprioceiling): Likewise.
14491         * nptl/pthread_mutexattr_getprioceiling.c
14492         (pthread_mutexattr_getprioceiling): Likewise.
14493         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
14494         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14495         Likewise.
14496         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14497         Likewise.
14498         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
14499         Likewise.
14500         * socket/recvfrom.c (__recvfrom): Likewise.
14501         * socket/sendto.c (__sendto): Likewise.
14502         * socket/setsockopt.c (__setsockopt): Likewise.
14503         * stdio-common/_itoa.c (_itoa): Likewise.
14504         * stdio-common/_itowa.c (_itowa): Likewise.
14505         * stdio-common/reg-printf.c (__register_printf_specifier):
14506         Likewise.
14507         (__register_printf_function): Likewise.
14508         * stdio-common/tempname.c (__path_search): Likewise.
14509         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
14510         * stdlib/mul_1.c (mpn_mul_1): Likewise.
14511         * stdlib/random_r.c (__initstate_r): Likewise.
14512         * stdlib/setenv.c (__add_to_environ): Likewise.
14513         * stdlib/submul_1.c (mpn_submul_1): Likewise.
14514         * streams/getpmsg.c (getpmsg): Likewise.
14515         * streams/putmsg.c (putmsg): Likewise.
14516         * streams/putpmsg.c (putpmsg): Likewise.
14517         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
14518         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
14519         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
14520         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
14521         * sunrpc/pm_getport.c (pmap_getport): Likewise.
14522         * sunrpc/svc_udp.c (cache_get): Likewise.
14523         * sunrpc/xdr_array.c (xdr_vector): Likewise.
14524         * sysdeps/mach/hurd/getcwd.c
14525         (__canonicalize_directory_name_internal): Likewise.
14526         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
14527         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
14528         * sysdeps/mach/hurd/select.c (__select): Likewise.
14529         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
14530         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14531         * sysdeps/sparc/nptl/pthread_barrier_init.c
14532         (__pthread_barrier_init): Likewise.
14533         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
14534         (__pthread_cond_timedwait): Likewise.
14535         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
14536         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
14537         Likewise.
14538         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
14539         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
14540         Likewise.
14541         * sysvipc/semtimedop.c (semtimedop): Likewise.
14542         * time/setitimer.c (__setitimer): Likewise.
14543         * time/strftime_l.c (emacs_strftime): Likewise.
14544
14545 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14546
14547         * config.make.in (have-ssp): Delete.
14548         (stack-protector): New variable.
14549         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
14550         cache test for -fstack-protector-strong.  Export stack_protector to
14551         the best ssp flag.
14552         * configure: Regenerated.
14553         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
14554         * nscd/Makefile (CFLAGS-nscd): Likewise.
14555         * resolv/Makefile (CFLAGS-libresolv): Likewise.
14556
14557 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
14558
14559         [BZ #19122]
14560         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
14561         attribute_hidden.
14562
14563 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14564
14565         [BZ #18743]
14566         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
14567         code to...
14568         (ELIDE_LOCK): ...here.
14569         (__get_new_count): New function with part of the code from
14570         __elide_lock that updates the value of adapt_count after a
14571         transaction abort.
14572         (__elided_trylock): Moved this code to...
14573         (ELIDE_TRYLOCK): ...here.
14574
14575 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14576
14577         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
14578         * configure: Regenerate.
14579         * INSTALL: Regenerate.
14580         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
14581         and tweak grammar.
14582
14583 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
14584
14585         * login/programs/pt_chown.c: Include signal.h
14586         (main): Clear any signal mask from the parent process.
14587
14588 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14589
14590         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
14591         * configure: Regenerated.
14592         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
14593         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
14594         $(gnu89-inline-CFLAGS).
14595
14596         * configure.ac (libc_cv_asm_weak_directive): Remove configure
14597         test.
14598         (libc_cv_asm_weakext_directive): Likewise.
14599         * configure: Regenerated.
14600         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
14601         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
14602         * include/libc-symbols.h
14603         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
14604         #error.
14605         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
14606         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
14607
14608         * sysdeps/arm/backtrace.c (__backtrace): Convert to
14609         prototype-style function definition.
14610         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
14611         * sysdeps/i386/ffs.c (__ffs): Likewise.
14612         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14613         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
14614         Likewise.
14615         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
14616         Likewise.
14617         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
14618         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
14619         Likewise.
14620         * sysdeps/m68k/ffs.c (__ffs): Likewise.
14621         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
14622         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
14623         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
14624         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
14625         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
14626         * sysdeps/mach/hurd/access.c (__access): Likewise.
14627         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
14628         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
14629         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
14630         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
14631         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
14632         (cthread_getspecific): Likewise.
14633         (cthread_setspecific): Likewise.
14634         (__libc_getspecific): Likewise.
14635         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
14636         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
14637         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
14638         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
14639         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
14640         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
14641         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
14642         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
14643         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
14644         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
14645         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
14646         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
14647         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
14648         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
14649         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
14650         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
14651         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
14652         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
14653         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
14654         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
14655         * sysdeps/mach/hurd/link.c (__link): Likewise.
14656         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
14657         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
14658         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
14659         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
14660         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
14661         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
14662         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
14663         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
14664         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
14665         * sysdeps/mach/hurd/rename.c (rename): Likewise.
14666         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
14667         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
14668         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
14669         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
14670         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
14671         * sysdeps/mach/hurd/send.c (__send): Likewise.
14672         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
14673         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
14674         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
14675         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
14676         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
14677         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
14678         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
14679         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
14680         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
14681         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
14682         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
14683         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
14684         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
14685         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
14686         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
14687         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
14688         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
14689         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
14690         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
14691         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
14692         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
14693         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
14694         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
14695         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
14696         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
14697         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
14698         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
14699         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
14700         * sysdeps/posix/alarm.c (alarm): Likewise.
14701         * sysdeps/posix/cuserid.c (cuserid): Likewise.
14702         * sysdeps/posix/dirfd.c (dirfd): Likewise.
14703         * sysdeps/posix/dup.c (__dup): Likewise.
14704         * sysdeps/posix/dup2.c (__dup2): Likewise.
14705         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
14706         (main): Likewise.
14707         * sysdeps/posix/flock.c (__flock): Likewise.
14708         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
14709         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
14710         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
14711         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
14712         * sysdeps/posix/isatty.c (__isatty): Likewise.
14713         * sysdeps/posix/killpg.c (killpg): Likewise.
14714         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
14715         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
14716         * sysdeps/posix/raise.c (raise): Likewise.
14717         * sysdeps/posix/remove.c (remove): Likewise.
14718         * sysdeps/posix/rename.c (rename): Likewise.
14719         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
14720         * sysdeps/posix/seekdir.c (seekdir): Likewise.
14721         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
14722         * sysdeps/posix/sigignore.c (sigignore): Likewise.
14723         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
14724         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
14725         * sysdeps/posix/sigset.c (sigset): Likewise.
14726         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
14727         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
14728         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
14729         * sysdeps/posix/time.c (time): Likewise.
14730         * sysdeps/posix/ttyname.c (getttyname): Likewise.
14731         (ttyname): Likewise.
14732         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
14733         * sysdeps/posix/utime.c (utime): Likewise.
14734         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
14735         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
14736         Likewise.
14737         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
14738         (pthread_spin_trylock): Likewise.
14739         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
14740         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
14741         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
14742         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
14743         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
14744         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
14745         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
14746         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
14747         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
14748         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
14749         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
14750         * sysdeps/s390/ffs.c (__ffs): Likewise.
14751         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
14752         Likewise.
14753         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
14754         Likewise.
14755         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
14756         Likewise.
14757         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
14758         (pthread_barrier_destroy): Likewise.
14759         * sysdeps/sparc/nptl/pthread_barrier_wait.c
14760         (__pthread_barrier_wait): Likewise.
14761         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
14762         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
14763         (__pthread_barrier_wait): Likewise.
14764         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
14765         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
14766         (memcmp_not_common_alignment): Likewise.
14767         (MEMCMP): Likewise.
14768         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
14769         (_wordcopy_fwd_dest_aligned): Likewise.
14770         (_wordcopy_bwd_aligned): Likewise.
14771         (_wordcopy_bwd_dest_aligned): Likewise.
14772         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
14773         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
14774         * sysdeps/unix/bsd/stty.c (stty): Likewise.
14775         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
14776         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
14777         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
14778         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
14779         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
14780         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
14781         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
14782         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
14783         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
14784         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
14785         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
14786         * sysdeps/unix/stime.c (stime): Likewise.
14787         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
14788         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
14789         Likewise.  Use internal_function.
14790         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
14791         Convert to prototype-style function definition.
14792         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
14793         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
14794         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
14795         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
14796         Likewise.  Use internal_function.
14797         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
14798         prototype-style function definition
14799         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14800         Likewise.
14801         (__getlogin_r): Likewise.
14802         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
14803         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
14804         (__pthread_cond_broadcast): Likewise.
14805         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
14806         (__pthread_cond_destroy): Likewise.
14807         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
14808         (__pthread_cond_init): Likewise.
14809         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
14810         (__pthread_cond_signal): Likewise.
14811         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
14812         (__pthread_cond_wait): Likewise.
14813         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
14814         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
14815         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
14816         Likewise.
14817         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
14818         Likewise.
14819         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
14820         Likewise.
14821         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
14822         Likewise.
14823         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
14824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
14825         (__ftruncate64): Likewise.
14826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
14827         (truncate64): Likewise.
14828         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
14829         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
14830         (pthread_getcpuclockid): Likewise.
14831         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
14832         Likewise.
14833         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
14834         Likewise.
14835         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
14836         Likewise.
14837         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
14838         Likewise.
14839         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
14840         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
14841         (__libc_sigaction): Likewise.
14842         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
14843         Likewise.
14844         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
14845         (__sigprocmask): Likewise.
14846         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
14847         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
14848         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
14849         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
14850         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
14851         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
14852         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
14853         Likewise.
14854         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
14855         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
14856         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
14857         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
14858         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
14859         Likewise.
14860         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
14861         (__sigprocmask): Likewise.
14862         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
14863         (cfgetispeed): Likewise.
14864         (cfsetospeed): Likewise.
14865         (cfsetispeed): Likewise.
14866         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
14867         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
14868         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
14869         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
14870         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
14871         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
14872         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
14873         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
14874         Likewise.
14875         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
14876         Likewise.
14877         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
14878         Likewise.
14879         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
14880         Likewise.
14881         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
14882
14883 2015-10-17  Florian Weimer  <fweimer@redhat.com>
14884
14885         sunrpc: Rewrite with explicit TLS access using __thread.
14886         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
14887         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
14888         directly.
14889         (__rpc_thread_variables): Access thread_rpc_vars directly.
14890         Eliminate redundant assignment of the tvp variable.
14891
14892 2015-10-17  Florian Weimer  <fweimer@redhat.com>
14893
14894         malloc: Rewrite with explicit TLS access using __thread.
14895         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
14896         (tsd_setspecific, tsd_getspecific): Remove.
14897         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
14898         (tsd_setspecific, tsd_getspecific): Likewise.
14899         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
14900         (tsd_setspecific, tsd_getspecific): Likewise.
14901         * malloc/arena.c (thread_arena): New TLS variable.
14902         (arena_key): Remove variable.
14903         (arena_get): Use thread_arena.
14904         (arena_lookup): Remove macro.
14905         (malloc_atfork, free_atfork, ptmalloc_lock_all)
14906         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
14907         (_int_new_arena, get_free_list, reused_arena)
14908         (arena_thread_freeres): Use thread_arena.
14909         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
14910         tsd_getspecific, tsd_setspecific from safety annotations.
14911         (Allocating Cleared Space): Remove arena_lookup from safety
14912         annotations.
14913
14914 2015-10-17  Florian Weimer  <fweimer@redhat.com>
14915
14916         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
14917         struct scratch_buffer instead of extend_alloca.
14918
14919 2015-10-17  Florian Weimer  <fweimer@redhat.com>
14920
14921         * sysdeps/unix/sysv/linux/kernel-features.h
14922         (__ASSUME_SOCK_CLOEXEC): Remove.
14923         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
14924         (__have_paccept): Remove unused macro.
14925         * include/unistd.h (__have_sock_cloexec): Remove declaration.
14926         * misc/syslog.c (openlog_internal): Remove fallback code for
14927         !__ASSUME_SOCK_CLOEXEC.
14928         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
14929         missing SOCK_CLOEXEC.
14930         * nscd/connections.c (have_sock_cloexec): Remove definition.
14931         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
14932         * nscd/nscd_helper.c (open_socket): Remove fallback code for
14933         !__ASSUME_SOCK_CLOEXEC.
14934         * resolv/res_send.c (__have_o_nonblock): Remove definition.
14935         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
14936         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
14937         definition.
14938         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
14939         code for !__ASSUME_SOCK_CLOEXEC.
14940
14941 2015-10-17  Florian Weimer  <fweimer@redhat.com>
14942
14943         [BZ #18982]
14944         * manual/stdio.texi (Variable Arguments Output): Add portability
14945         note, explaining that vfprintf clobbers the va_list pointer.
14946
14947 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
14948
14949         * math/libm-test.inc (fabs_test_data): Add more tests.
14950         (fdim_test_data): Likewise.
14951         (fma_test_data): Likewise.
14952         (fmax_test_data): Likewise.
14953         (fmin_test_data): Likewise.
14954         (fmod_test_data): Likewise.
14955
14956 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
14957
14958         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
14959         data.
14960
14961 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
14962
14963         * math/libm-test.inc (ceil_test_data): Add more tests and more
14964         expectations for "inexact".
14965         (floor_test_data): Add more tests.
14966         (round_test_data): Likewise.
14967         (trunc_test_data): Likewise.
14968
14969         * crypt/cert.c (good_bye): Convert to prototype-style function
14970         definition.
14971         (get8): Likewise.
14972         (put8): Likewise.
14973         * crypt/crypt-entry.c (crypt): Likewise.
14974         (__fcrypt): Likewise.
14975         * crypt/crypt_util.c (_ufc_prbits): Likewise.
14976         (_ufc_set_bits): Likewise.
14977         (_ufc_clearmem): Likewise.
14978         (__init_des_r): Likewise.
14979         (shuffle_sb): Likewise.
14980         (shuffle_sb): Likewise.
14981         (_ufc_setup_salt_r): Likewise.
14982         (_ufc_mk_keytab_r): Likewise.
14983         (_ufc_dofinalperm_r): Likewise.
14984         (encrypt): Likewise.
14985         (__setkey_r): Likewise.
14986         (setkey): Likewise.
14987         * crypt/md5.c (md5_init_ctx): Likewise.
14988         (md5_read_ctx): Likewise.
14989         (md5_finish_ctx): Likewise.
14990         (md5_stream): Likewise.
14991         (md5_buffer): Likewise.
14992         (md5_process_bytes): Likewise.
14993         * crypt/sha256.c (__sha256_init_ctx): Likewise.
14994         (__sha256_finish_ctx): Likewise.
14995         (__sha256_process_bytes): Likewise.
14996         * crypt/sha512.c (__sha512_init_ctx): Likewise.
14997         (__sha512_finish_ctx): Likewise.
14998         (__sha512_process_bytes): Likewise.
14999         * ctype/isctype.c (__isctype): Likewise.
15000         * debug/backtrace.c (__backtrace): Likewise.
15001         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
15002         * debug/fgets_chk.c (__fgets_chk): Likewise.
15003         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
15004         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
15005         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
15006         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
15007         * debug/memset_chk.c (__memset_chk): Likewise.
15008         * debug/strcat_chk.c (__strcat_chk): Likewise.
15009         * debug/strncat_chk.c (__strncat_chk): Likewise.
15010         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
15011         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
15012         * dirent/dirfd.c (dirfd): Likewise.
15013         * dirent/getdents.c (__getdirentries): Likewise.
15014         * dirent/getdents64.c (getdirentries64): Likewise.
15015         * dirent/rewinddir.c (__rewinddir): Likewise.
15016         * dirent/seekdir.c (seekdir): Likewise.
15017         * dirent/telldir.c (telldir): Likewise.
15018         * elf/sln.c (makesymlinks): Likewise.
15019         (makesymlink): Likewise.
15020         * gmon/gmon.c (__moncontrol): Likewise.
15021         (__monstartup): Likewise.
15022         (write_hist): Likewise.
15023         (write_call_graph): Likewise.
15024         (write_bb_counts): Likewise.
15025         * grp/setgroups.c (setgroups): Likewise.
15026         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15027         * inet/inet_net.c (inet_network): Likewise.
15028         * inet/inet_netof.c (inet_netof): Likewise.
15029         * inet/rcmd.c (rresvport_af): Likewise.
15030         (rresvport): Likewise.
15031         * io/access.c (__access): Likewise.
15032         * io/chdir.c (__chdir): Likewise.
15033         * io/chmod.c (__chmod): Likewise.
15034         * io/chown.c (__chown): Likewise.
15035         * io/close.c (__close): Likewise.
15036         * io/creat.c (creat): Likewise.
15037         * io/creat64.c (creat64): Likewise.
15038         * io/dup.c (__dup): Likewise.
15039         * io/dup2.c (__dup2): Likewise.
15040         * io/dup3.c (__dup3): Likewise.
15041         * io/euidaccess.c (__euidaccess): Likewise.
15042         * io/faccessat.c (faccessat): Likewise.
15043         * io/fchmod.c (__fchmod): Likewise.
15044         * io/fchmodat.c (fchmodat): Likewise.
15045         * io/fchown.c (__fchown): Likewise.
15046         * io/fchownat.c (fchownat): Likewise.
15047         * io/fcntl.c (__fcntl): Likewise.
15048         * io/flock.c (__flock): Likewise.
15049         * io/fts.c (fts_load): Likewise.
15050         (fts_close): Likewise.
15051         (fts_read): Likewise.
15052         (fts_set): Likewise.
15053         (fts_children): Likewise.
15054         (fts_build): Likewise.
15055         (fts_stat): Likewise.
15056         (fts_sort): Likewise.
15057         (fts_alloc): Likewise.
15058         (fts_lfree): Likewise.
15059         (fts_palloc): Likewise.
15060         (fts_padjust): Likewise.
15061         (fts_maxarglen): Likewise.
15062         (fts_safe_changedir): Likewise.
15063         * io/getwd.c (getwd): Likewise.
15064         * io/isatty.c (__isatty): Likewise.
15065         * io/lchown.c (__lchown): Likewise.
15066         * io/link.c (__link): Likewise.
15067         * io/linkat.c (linkat): Likewise.
15068         * io/lseek.c (__libc_lseek): Likewise.
15069         * io/mkdir.c (__mkdir): Likewise.
15070         * io/mkdirat.c (mkdirat): Likewise.
15071         * io/mkfifo.c (mkfifo): Likewise.
15072         * io/mkfifoat.c (mkfifoat): Likewise.
15073         * io/open.c (__libc_open): Likewise.
15074         * io/open64.c (__libc_open64): Likewise.
15075         * io/readlink.c (__readlink): Likewise.
15076         * io/readlinkat.c (readlinkat): Likewise.
15077         * io/rmdir.c (__rmdir): Likewise.
15078         * io/symlink.c (__symlink): Likewise.
15079         * io/symlinkat.c (symlinkat): Likewise.
15080         * io/ttyname.c (ttyname): Likewise.
15081         * io/ttyname_r.c (__ttyname_r): Likewise.
15082         * io/umask.c (__umask): Likewise.
15083         * io/unlink.c (__unlink): Likewise.
15084         * io/unlinkat.c (unlinkat): Likewise.
15085         * io/utime.c (utime): Likewise.
15086         * libio/clearerr.c (clearerr): Likewise.
15087         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
15088         * libio/feof.c (_IO_feof): Likewise.
15089         * libio/feof_u.c (feof_unlocked): Likewise.
15090         * libio/ferror.c (_IO_ferror): Likewise.
15091         * libio/ferror_u.c (ferror_unlocked): Likewise.
15092         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
15093         * libio/fileno.c (__fileno): Likewise.
15094         * libio/fputc.c (fputc): Likewise.
15095         * libio/fputc_u.c (fputc_unlocked): Likewise.
15096         * libio/fputwc.c (fputwc): Likewise.
15097         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
15098         * libio/freopen.c (freopen): Likewise.
15099         * libio/freopen64.c (freopen64): Likewise.
15100         * libio/fseek.c (fseek): Likewise.
15101         * libio/fseeko.c (fseeko): Likewise.
15102         * libio/fseeko64.c (fseeko64): Likewise.
15103         * libio/ftello.c (__ftello): Likewise.
15104         * libio/ftello64.c (ftello64): Likewise.
15105         * libio/fwide.c (fwide): Likewise.
15106         * libio/genops.c (_IO_un_link): Likewise.
15107         (_IO_link_in): Likewise.
15108         (_IO_least_marker): Likewise.
15109         (_IO_switch_to_main_get_area): Likewise.
15110         (_IO_switch_to_backup_area): Likewise.
15111         (_IO_switch_to_get_mode): Likewise.
15112         (_IO_free_backup_area): Likewise.
15113         (_IO_switch_to_put_mode): Likewise.
15114         (__overflow): Likewise.
15115         (__underflow): Likewise.
15116         (__uflow): Likewise.
15117         (_IO_setb): Likewise.
15118         (_IO_doallocbuf): Likewise.
15119         (_IO_default_underflow): Likewise.
15120         (_IO_default_uflow): Likewise.
15121         (_IO_default_xsputn): Likewise.
15122         (_IO_sgetn): Likewise.
15123         (_IO_default_xsgetn): Likewise.
15124         (_IO_sync): Likewise.
15125         (_IO_default_setbuf): Likewise.
15126         (_IO_default_seekpos): Likewise.
15127         (_IO_default_doallocate): Likewise.
15128         (_IO_init): Likewise.
15129         (_IO_old_init): Likewise.
15130         (_IO_default_sync): Likewise.
15131         (_IO_default_finish): Likewise.
15132         (_IO_default_seekoff): Likewise.
15133         (_IO_sputbackc): Likewise.
15134         (_IO_sungetc): Likewise.
15135         (_IO_set_column): Likewise.
15136         (_IO_set_column): Likewise.
15137         (_IO_adjust_column): Likewise.
15138         (_IO_get_column): Likewise.
15139         (_IO_init_marker): Likewise.
15140         (_IO_remove_marker): Likewise.
15141         (_IO_marker_difference): Likewise.
15142         (_IO_marker_delta): Likewise.
15143         (_IO_seekmark): Likewise.
15144         (_IO_unsave_markers): Likewise.
15145         (_IO_nobackup_pbackfail): Likewise.
15146         (_IO_default_pbackfail): Likewise.
15147         (_IO_default_seek): Likewise.
15148         (_IO_default_stat): Likewise.
15149         (_IO_default_read): Likewise.
15150         (_IO_default_write): Likewise.
15151         (_IO_default_showmanyc): Likewise.
15152         (_IO_default_imbue): Likewise.
15153         (_IO_iter_next): Likewise.
15154         (_IO_iter_file): Likewise.
15155         * libio/getc.c (_IO_getc): Likewise.
15156         * libio/getwc.c (_IO_getwc): Likewise.
15157         * libio/iofclose.c (_IO_new_fclose): Likewise.
15158         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15159         * libio/iofflush.c (_IO_fflush): Likewise.
15160         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
15161         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
15162         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
15163         * libio/iofgets.c (_IO_fgets): Likewise.
15164         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
15165         * libio/iofgetws.c (fgetws): Likewise.
15166         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
15167         * libio/iofopen64.c (_IO_fopen64): Likewise.
15168         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15169         (_IO_cookie_write): Likewise.
15170         (_IO_cookie_seek): Likewise.
15171         (_IO_cookie_close): Likewise.
15172         (_IO_cookie_seekoff): Likewise.
15173         (_IO_old_cookie_seek): Likewise.
15174         * libio/iofputs.c (_IO_fputs): Likewise.
15175         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
15176         * libio/iofputws.c (fputws): Likewise.
15177         * libio/iofputws_u.c (fputws_unlocked): Likewise.
15178         * libio/iofread.c (_IO_fread): Likewise.
15179         * libio/iofread_u.c (__fread_unlocked): Likewise.
15180         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
15181         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
15182         * libio/ioftell.c (_IO_ftell): Likewise.
15183         * libio/iofwrite.c (_IO_fwrite): Likewise.
15184         * libio/iogetdelim.c (_IO_getdelim): Likewise.
15185         * libio/iogets.c (_IO_gets): Likewise.
15186         * libio/iopadn.c (_IO_padn): Likewise.
15187         * libio/iopopen.c (_IO_new_proc_open): Likewise.
15188         (_IO_new_popen): Likewise.
15189         (_IO_new_proc_close): Likewise.
15190         * libio/ioputs.c (_IO_puts): Likewise.
15191         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
15192         (_IO_seekoff): Likewise.
15193         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
15194         (_IO_seekpos): Likewise.
15195         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
15196         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
15197         * libio/ioungetc.c (_IO_ungetc): Likewise.
15198         * libio/ioungetwc.c (ungetwc): Likewise.
15199         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15200         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
15201         * libio/iowpadn.c (_IO_wpadn): Likewise.
15202         * libio/libc_fatal.c (__libc_fatal): Likewise.
15203         * libio/memstream.c (__open_memstream): Likewise.
15204         (_IO_mem_sync): Likewise.
15205         (_IO_mem_finish): Likewise.
15206         * libio/oldfileops.c (_IO_old_file_init): Likewise.
15207         (_IO_old_file_close_it): Likewise.
15208         (_IO_old_file_finish): Likewise.
15209         (_IO_old_file_fopen): Likewise.
15210         (_IO_old_file_attach): Likewise.
15211         (_IO_old_file_setbuf): Likewise.
15212         (_IO_old_do_write): Likewise.
15213         (old_do_write): Likewise.
15214         (_IO_old_file_underflow): Likewise.
15215         (_IO_old_file_overflow): Likewise.
15216         (_IO_old_file_sync): Likewise.
15217         (_IO_old_file_seekoff): Likewise.
15218         (_IO_old_file_write): Likewise.
15219         (_IO_old_file_xsputn): Likewise.
15220         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
15221         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15222         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
15223         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
15224         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
15225         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
15226         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
15227         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
15228         (_IO_old_popen): Likewise.
15229         (_IO_old_proc_close): Likewise.
15230         * libio/oldpclose.c (__old_pclose): Likewise.
15231         * libio/pclose.c (__new_pclose): Likewise.
15232         * libio/peekc.c (_IO_peekc_locked): Likewise.
15233         * libio/putc.c (_IO_putc): Likewise.
15234         * libio/putc_u.c (putc_unlocked): Likewise.
15235         * libio/putchar.c (putchar): Likewise.
15236         * libio/putchar_u.c (putchar_unlocked): Likewise.
15237         * libio/putwc.c (putwc): Likewise.
15238         * libio/putwc_u.c (putwc_unlocked): Likewise.
15239         * libio/putwchar.c (putwchar): Likewise.
15240         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
15241         * libio/rewind.c (rewind): Likewise.
15242         * libio/setbuf.c (setbuf): Likewise.
15243         * libio/setlinebuf.c (setlinebuf): Likewise.
15244         * libio/vasprintf.c (_IO_vasprintf): Likewise.
15245         * libio/vscanf.c (_IO_vscanf): Likewise.
15246         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
15247         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
15248         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
15249         * libio/wgenops.c (_IO_least_wmarker): Likewise.
15250         (_IO_switch_to_main_wget_area): Likewise.
15251         (_IO_switch_to_wbackup_area): Likewise.
15252         (_IO_wsetb): Likewise.
15253         (_IO_wdefault_pbackfail): Likewise.
15254         (_IO_wdefault_finish): Likewise.
15255         (_IO_wdefault_uflow): Likewise.
15256         (__woverflow): Likewise.
15257         (__wuflow): Likewise.
15258         (__wunderflow): Likewise.
15259         (_IO_wdefault_xsputn): Likewise.
15260         (_IO_wdefault_xsgetn): Likewise.
15261         (_IO_wdoallocbuf): Likewise.
15262         (_IO_wdefault_doallocate): Likewise.
15263         (_IO_switch_to_wget_mode): Likewise.
15264         (_IO_free_wbackup_area): Likewise.
15265         (_IO_switch_to_wput_mode): Likewise.
15266         (_IO_sputbackwc): Likewise.
15267         (_IO_sungetwc): Likewise.
15268         (_IO_adjust_wcolumn): Likewise.
15269         (_IO_init_wmarker): Likewise.
15270         (_IO_wmarker_delta): Likewise.
15271         (_IO_seekwmark): Likewise.
15272         (_IO_unsave_wmarkers): Likewise.
15273         * libio/wmemstream.c (open_wmemstream): Likewise.
15274         (_IO_wmem_sync): Likewise.
15275         (_IO_wmem_finish): Likewise.
15276         * locale/nl_langinfo.c (nl_langinfo): Likewise.
15277         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
15278         * locale/programs/simple-hash.c (init_hash): Likewise.
15279         (delete_hash): Likewise.
15280         (insert_entry): Likewise.
15281         (set_entry): Likewise.
15282         (next_prime): Likewise.
15283         (is_prime): Likewise.
15284         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
15285         (xmalloc): Likewise.
15286         (xrealloc): Likewise.
15287         * locale/programs/xstrdup.c (xstrdup): Likewise.
15288         * localedata/collate-test.c (xstrcoll): Likewise.
15289         * localedata/xfrm-test.c (xstrcmp): Likewise.
15290         * login/getlogin_r.c (__getlogin_r): Likewise.
15291         * login/getpt.c (__posix_openpt): Likewise.
15292         * login/login_tty.c (login_tty): Likewise.
15293         * login/setlogin.c (setlogin): Likewise.
15294         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
15295         (mach_msg_destroy_port): Likewise.
15296         (mach_msg_destroy_memory): Likewise.
15297         * malloc/mcheck.c (flood): Likewise.
15298         * misc/acct.c (acct): Likewise.
15299         * misc/brk.c (__brk): Likewise.
15300         * misc/chflags.c (chflags): Likewise.
15301         * misc/chroot.c (chroot): Likewise.
15302         * misc/fchflags.c (fchflags): Likewise.
15303         * misc/fstab.c (getfsspec): Likewise.
15304         (getfsfile): Likewise.
15305         * misc/fsync.c (fsync): Likewise.
15306         * misc/ftruncate.c (__ftruncate): Likewise.
15307         * misc/ftruncate64.c (__ftruncate64): Likewise.
15308         * misc/getdomain.c (getdomainname): Likewise.
15309         (getdomainname): Likewise.
15310         * misc/gethostname.c (__gethostname): Likewise.
15311         * misc/getpass.c (getpass): Likewise.
15312         * misc/getttyent.c (skip): Likewise.
15313         (value): Likewise.
15314         * misc/gtty.c (gtty): Likewise.
15315         * misc/hsearch.c (hsearch): Likewise.
15316         (hcreate): Likewise.
15317         * misc/hsearch_r.c (__hcreate_r): Likewise.
15318         (__hdestroy_r): Likewise.
15319         * misc/ioctl.c (__ioctl): Likewise.
15320         * misc/mkdtemp.c (mkdtemp): Likewise.
15321         * misc/mkostemp.c (mkostemp): Likewise.
15322         * misc/mkostemp64.c (mkostemp64): Likewise.
15323         * misc/mkostemps.c (mkostemps): Likewise.
15324         * misc/mkostemps64.c (mkostemps64): Likewise.
15325         * misc/mkstemp.c (mkstemp): Likewise.
15326         * misc/mkstemp64.c (mkstemp64): Likewise.
15327         * misc/mkstemps.c (mkstemps): Likewise.
15328         * misc/mkstemps64.c (mkstemps64): Likewise.
15329         * misc/mktemp.c (__mktemp): Likewise.
15330         * misc/preadv.c (preadv): Likewise.
15331         * misc/preadv64.c (preadv64): Likewise.
15332         * misc/pwritev.c (pwritev): Likewise.
15333         * misc/pwritev64.c (pwritev64): Likewise.
15334         * misc/readv.c (__readv): Likewise.
15335         * misc/revoke.c (revoke): Likewise.
15336         * misc/setdomain.c (setdomainname): Likewise.
15337         * misc/setegid.c (setegid): Likewise.
15338         * misc/seteuid.c (seteuid): Likewise.
15339         * misc/sethostid.c (sethostid): Likewise.
15340         * misc/sethostname.c (sethostname): Likewise.
15341         * misc/setregid.c (__setregid): Likewise.
15342         * misc/setreuid.c (__setreuid): Likewise.
15343         * misc/sstk.c (sstk): Likewise.
15344         * misc/stty.c (stty): Likewise.
15345         * misc/syscall.c (syscall): Likewise.
15346         * misc/syslog.c (setlogmask): Likewise.
15347         * misc/truncate.c (__truncate): Likewise.
15348         * misc/truncate64.c (truncate64): Likewise.
15349         * misc/ualarm.c (ualarm): Likewise.
15350         * misc/usleep.c (usleep): Likewise.
15351         * misc/ustat.c (ustat): Likewise.
15352         * misc/writev.c (__writev): Likewise.
15353         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
15354         * nptl/old_pthread_cond_broadcast.c
15355         (__pthread_cond_broadcast_2_0): Likewise.
15356         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
15357         Likewise.
15358         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
15359         Likewise.
15360         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
15361         Likewise.
15362         * nptl/pt-raise.c (raise): Likewise.
15363         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
15364         Likewise.
15365         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
15366         * nptl/pthread_barrierattr_destroy.c
15367         (pthread_barrierattr_destroy): Likewise.
15368         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
15369         Likewise.
15370         * nptl/pthread_barrierattr_setpshared.c
15371         (pthread_barrierattr_setpshared): Likewise.
15372         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
15373         Likewise.
15374         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
15375         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
15376         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
15377         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
15378         Likewise.
15379         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
15380         Likewise.
15381         * nptl/pthread_condattr_getpshared.c
15382         (pthread_condattr_getpshared): Likewise.
15383         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
15384         Likewise.
15385         * nptl/pthread_condattr_setpshared.c
15386         (pthread_condattr_setpshared): Likewise.
15387         * nptl/pthread_detach.c (pthread_detach): Likewise.
15388         * nptl/pthread_equal.c (__pthread_equal): Likewise.
15389         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
15390         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
15391         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
15392         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
15393         Likewise.
15394         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
15395         Likewise.
15396         * nptl/pthread_mutex_getprioceiling.c
15397         (pthread_mutex_getprioceiling): Likewise.
15398         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
15399         Likewise.
15400         * nptl/pthread_mutexattr_getprotocol.c
15401         (pthread_mutexattr_getprotocol): Likewise.
15402         * nptl/pthread_mutexattr_getpshared.c
15403         (pthread_mutexattr_getpshared): Likewise.
15404         * nptl/pthread_mutexattr_getrobust.c
15405         (pthread_mutexattr_getrobust): Likewise.
15406         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
15407         Likewise.
15408         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
15409         Likewise.
15410         * nptl/pthread_mutexattr_setprioceiling.c
15411         (pthread_mutexattr_setprioceiling): Likewise.
15412         * nptl/pthread_mutexattr_setprotocol.c
15413         (pthread_mutexattr_setprotocol): Likewise.
15414         * nptl/pthread_mutexattr_setpshared.c
15415         (pthread_mutexattr_setpshared): Likewise.
15416         * nptl/pthread_mutexattr_setrobust.c
15417         (pthread_mutexattr_setrobust): Likewise.
15418         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
15419         Likewise.
15420         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
15421         Likewise.
15422         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
15423         Likewise.
15424         * nptl/pthread_rwlockattr_getkind_np.c
15425         (pthread_rwlockattr_getkind_np): Likewise.
15426         * nptl/pthread_rwlockattr_getpshared.c
15427         (pthread_rwlockattr_getpshared): Likewise.
15428         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
15429         Likewise.
15430         * nptl/pthread_rwlockattr_setkind_np.c
15431         (pthread_rwlockattr_setkind_np): Likewise.
15432         * nptl/pthread_rwlockattr_setpshared.c
15433         (pthread_rwlockattr_setpshared): Likewise.
15434         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
15435         Likewise.
15436         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
15437         Likewise.
15438         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
15439         Likewise.
15440         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
15441         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
15442         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
15443         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
15444         * nptl/sem_close.c (sem_close): Likewise.
15445         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
15446         * nptl/sem_init.c (__old_sem_init): Likewise.
15447         * nptl/sigaction.c (__sigaction): Likewise.
15448         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15449         * posix/_exit.c (_exit): Likewise.
15450         * posix/alarm.c (alarm): Likewise.
15451         * posix/confstr.c (confstr): Likewise.
15452         * posix/fpathconf.c (__fpathconf): Likewise.
15453         * posix/getgroups.c (__getgroups): Likewise.
15454         * posix/getpgid.c (__getpgid): Likewise.
15455         * posix/group_member.c (__group_member): Likewise.
15456         * posix/pathconf.c (__pathconf): Likewise.
15457         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
15458         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
15459         * posix/setgid.c (__setgid): Likewise.
15460         * posix/setpgid.c (__setpgid): Likewise.
15461         * posix/setuid.c (__setuid): Likewise.
15462         * posix/sleep.c (__sleep): Likewise.
15463         * posix/sysconf.c (__sysconf): Likewise.
15464         * posix/times.c (__times): Likewise.
15465         * posix/uname.c (__uname): Likewise.
15466         * posix/waitid.c (__waitid): Likewise.
15467         * pwd/getpw.c (__getpw): Likewise.
15468         * resolv/base64.c (b64_pton): Likewise.
15469         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
15470         * resolv/gethnamaddr.c (Dprintf): Likewise.
15471         (gethostbyname): Likewise.
15472         (gethostbyname2): Likewise.
15473         (gethostbyaddr): Likewise.
15474         (_sethtent): Likewise.
15475         (_gethtbyname): Likewise.
15476         (_gethtbyname2): Likewise.
15477         (_gethtbyaddr): Likewise.
15478         (map_v4v6_address): Likewise.
15479         (map_v4v6_hostent): Likewise.
15480         (addrsort): Likewise.
15481         (ht_sethostent): Likewise.
15482         (ht_gethostbyname): Likewise.
15483         (ht_gethostbyaddr): Likewise.
15484         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
15485         (inet_net_ntop_ipv4): Likewise.
15486         * resolv/inet_neta.c (inet_neta): Likewise.
15487         * resolv/inet_ntop.c (inet_ntop): Likewise.
15488         (inet_ntop4): Likewise.
15489         (inet_ntop6): Likewise.
15490         * resolv/inet_pton.c (__inet_pton): Likewise.
15491         (inet_pton4): Likewise.
15492         (inet_pton6): Likewise.
15493         * resolv/res_debug.c (loc_aton): Likewise.
15494         (loc_ntoa): Likewise.
15495         * resource/getpriority.c (__getpriority): Likewise.
15496         * resource/getrusage.c (__getrusage): Likewise.
15497         * resource/nice.c (nice): Likewise.
15498         * resource/setpriority.c (__setpriority): Likewise.
15499         * resource/setrlimit64.c (setrlimit64): Likewise.
15500         * resource/vlimit.c (vlimit): Likewise.
15501         * resource/vtimes.c (vtimes): Likewise.
15502         * rt/aio_error.c (aio_error): Likewise.
15503         * rt/aio_return.c (aio_return): Likewise.
15504         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
15505         * signal/kill.c (__kill): Likewise.
15506         * signal/killpg.c (killpg): Likewise.
15507         * signal/raise.c (raise): Likewise.
15508         * signal/sigaction.c (__sigaction): Likewise.
15509         * signal/sigaddset.c (sigaddset): Likewise.
15510         * signal/sigaltstack.c (sigaltstack): Likewise.
15511         * signal/sigandset.c (sigandset): Likewise.
15512         * signal/sigblock.c (__sigblock): Likewise.
15513         * signal/sigdelset.c (sigdelset): Likewise.
15514         * signal/sigempty.c (sigemptyset): Likewise.
15515         * signal/sigfillset.c (sigfillset): Likewise.
15516         * signal/sighold.c (sighold): Likewise.
15517         * signal/sigignore.c (sigignore): Likewise.
15518         * signal/sigintr.c (siginterrupt): Likewise.
15519         * signal/sigisempty.c (sigisemptyset): Likewise.
15520         * signal/sigismem.c (sigismember): Likewise.
15521         * signal/signal.c (signal): Likewise.
15522         * signal/sigorset.c (sigorset): Likewise.
15523         * signal/sigpause.c (__sigpause): Likewise.
15524         * signal/sigpending.c (sigpending): Likewise.
15525         * signal/sigprocmask.c (__sigprocmask): Likewise.
15526         * signal/sigrelse.c (sigrelse): Likewise.
15527         * signal/sigreturn.c (__sigreturn): Likewise.
15528         * signal/sigset.c (sigset): Likewise.
15529         * signal/sigsetmask.c (__sigsetmask): Likewise.
15530         * signal/sigstack.c (sigstack): Likewise.
15531         * signal/sigsuspend.c (__sigsuspend): Likewise.
15532         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
15533         * signal/sysv_signal.c (__sysv_signal): Likewise.
15534         * socket/accept.c (accept): Likewise.
15535         * socket/accept4.c (__libc_accept4): Likewise.
15536         * socket/bind.c (__bind): Likewise.
15537         * socket/connect.c (__connect): Likewise.
15538         * socket/getpeername.c (getpeername): Likewise.
15539         * socket/getsockname.c (__getsockname): Likewise.
15540         * socket/getsockopt.c (getsockopt): Likewise.
15541         * socket/listen.c (__listen): Likewise.
15542         * socket/recv.c (__recv): Likewise.
15543         * socket/recvmsg.c (__recvmsg): Likewise.
15544         * socket/send.c (__send): Likewise.
15545         * socket/sendmsg.c (__sendmsg): Likewise.
15546         * socket/shutdown.c (shutdown): Likewise.
15547         * socket/sockatmark.c (sockatmark): Likewise.
15548         * socket/socket.c (__socket): Likewise.
15549         * stdio-common/ctermid.c (ctermid): Likewise.
15550         * stdio-common/cuserid.c (cuserid): Likewise.
15551         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
15552         * stdio-common/remove.c (remove): Likewise.
15553         * stdio-common/rename.c (rename): Likewise.
15554         * stdio-common/renameat.c (renameat): Likewise.
15555         * stdio-common/tempname.c (__gen_tempname): Likewise.
15556         * stdio-common/xbug.c (InitBuffer): Likewise.
15557         (AppendToBuffer): Likewise.
15558         (ReadFile): Likewise.
15559         * stdlib/a64l.c (a64l): Likewise.
15560         * stdlib/drand48_r.c (drand48_r): Likewise.
15561         * stdlib/getcontext.c (getcontext): Likewise.
15562         * stdlib/getenv.c (getenv): Likewise.
15563         * stdlib/l64a.c (l64a): Likewise.
15564         * stdlib/llabs.c (llabs): Likewise.
15565         * stdlib/lldiv.c (lldiv): Likewise.
15566         * stdlib/lrand48_r.c (lrand48_r): Likewise.
15567         * stdlib/mrand48_r.c (mrand48_r): Likewise.
15568         * stdlib/putenv.c (putenv): Likewise.
15569         * stdlib/random.c (__srandom): Likewise.
15570         (__initstate): Likewise.
15571         (__setstate): Likewise.
15572         * stdlib/random_r.c (__srandom_r): Likewise.
15573         (__setstate_r): Likewise.
15574         (__random_r): Likewise.
15575         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
15576         * stdlib/setcontext.c (setcontext): Likewise.
15577         * stdlib/setenv.c (setenv): Likewise.
15578         (unsetenv): Likewise.
15579         * stdlib/srand48.c (srand48): Likewise.
15580         * stdlib/srand48_r.c (__srand48_r): Likewise.
15581         * stdlib/swapcontext.c (swapcontext): Likewise.
15582         * stdlib/system.c (__libc_system): Likewise.
15583         * stdlib/tst-strtod.c (expand): Likewise.
15584         * stdlib/tst-strtol.c (expand): Likewise.
15585         * stdlib/tst-strtoll.c (expand): Likewise.
15586         * streams/fattach.c (fattach): Likewise.
15587         * streams/fdetach.c (fdetach): Likewise.
15588         * streams/getmsg.c (getmsg): Likewise.
15589         * streams/isastream.c (isastream): Likewise.
15590         * string/ffs.c (__ffs): Likewise.
15591         * string/ffsll.c (ffsll): Likewise.
15592         * string/memcmp.c (memcmp_common_alignment): Likewise.
15593         (memcmp_not_common_alignment): Likewise.
15594         (MEMCMP): Likewise.
15595         * string/memcpy.c (memcpy): Likewise.
15596         * string/memmove.c (MEMMOVE): Likewise.
15597         * string/memset.c (memset): Likewise.
15598         * string/rawmemchr.c (RAWMEMCHR): Likewise.
15599         * string/strchrnul.c (STRCHRNUL): Likewise.
15600         * string/strerror.c (strerror): Likewise.
15601         * string/strndup.c (__strndup): Likewise.
15602         * string/strverscmp.c (__strverscmp): Likewise.
15603         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
15604         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
15605         (clnttcp_freeres): Likewise.
15606         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
15607         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
15608         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
15609         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
15610         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
15611         (xdr_callhdr): Likewise.
15612         * sunrpc/rpcinfo.c (udpping): Likewise.
15613         (tcpping): Likewise.
15614         (pstatus): Likewise.
15615         (pmapdump): Likewise.
15616         (brdcst): Likewise.
15617         (deletereg): Likewise.
15618         (getprognum): Likewise.
15619         (getvers): Likewise.
15620         (get_inet_address): Likewise.
15621         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
15622         * sunrpc/svc_udp.c (svcudp_create): Likewise.
15623         (svcudp_stat): Likewise.
15624         (svcudp_recv): Likewise.
15625         (svcudp_reply): Likewise.
15626         (svcudp_getargs): Likewise.
15627         (svcudp_freeargs): Likewise.
15628         (svcudp_destroy): Likewise.
15629         * sunrpc/xdr.c (xdr_bytes): Likewise.
15630         (xdr_netobj): Likewise.
15631         (xdr_string): Likewise.
15632         (xdr_wrapstring): Likewise.
15633         * sunrpc/xdr_float.c (xdr_float): Likewise.
15634         (xdr_double): Likewise.
15635         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
15636         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
15637         * sysvipc/ftok.c (ftok): Likewise.
15638         * sysvipc/msgctl.c (msgctl): Likewise.
15639         * sysvipc/msgget.c (msgget): Likewise.
15640         * sysvipc/msgrcv.c (msgrcv): Likewise.
15641         * sysvipc/msgsnd.c (msgsnd): Likewise.
15642         * sysvipc/semget.c (semget): Likewise.
15643         * sysvipc/semop.c (semop): Likewise.
15644         * sysvipc/shmat.c (shmat): Likewise.
15645         * sysvipc/shmctl.c (shmctl): Likewise.
15646         * sysvipc/shmdt.c (shmdt): Likewise.
15647         * sysvipc/shmget.c (shmget): Likewise.
15648         * termios/cfmakeraw.c (cfmakeraw): Likewise.
15649         * termios/speed.c (cfgetospeed): Likewise.
15650         (cfgetispeed): Likewise.
15651         (cfsetospeed): Likewise.
15652         (cfsetispeed): Likewise.
15653         * termios/tcflow.c (tcflow): Likewise.
15654         * termios/tcflush.c (tcflush): Likewise.
15655         * termios/tcgetattr.c (__tcgetattr): Likewise.
15656         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
15657         * termios/tcgetsid.c (tcgetsid): Likewise.
15658         * termios/tcsendbrk.c (tcsendbreak): Likewise.
15659         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
15660         * time/adjtime.c (__adjtime): Likewise.
15661         * time/dysize.c (dysize): Likewise.
15662         * time/ftime.c (ftime): Likewise.
15663         * time/getitimer.c (__getitimer): Likewise.
15664         * time/gettimeofday.c (__gettimeofday): Likewise.
15665         * time/gmtime.c (__gmtime_r): Likewise.
15666         (gmtime): Likewise.
15667         * time/localtime.c (__localtime_r): Likewise.
15668         (localtime): Likewise.
15669         * time/offtime.c (__offtime): Likewise.
15670         * time/settimeofday.c (__settimeofday): Likewise.
15671         * time/stime.c (stime): Likewise.
15672         * time/strftime_l.c (tm_diff): Likewise.
15673         (iso_week_days): Likewise.
15674         * time/strptime.c (strptime): Likewise.
15675         * time/time.c (time): Likewise.
15676         * time/timespec_get.c (timespec_get): Likewise.
15677         * time/tzset.c (tzset_internal): Likewise.
15678         (compute_change): Likewise.
15679         (__tz_compute): Likewise.
15680         * wcsmbs/btowc.c (__btowc): Likewise.
15681         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
15682         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
15683         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
15684         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
15685         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
15686         * wcsmbs/wcscat.c (__wcscat): Likewise.
15687         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
15688         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
15689         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
15690         * wcsmbs/wcscspn.c (wcscspn): Likewise.
15691         * wcsmbs/wcsdup.c (wcsdup): Likewise.
15692         * wcsmbs/wcslen.c (__wcslen): Likewise.
15693         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
15694         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
15695         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
15696         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
15697         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
15698         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
15699         * wcsmbs/wcsspn.c (wcsspn): Likewise.
15700         * wcsmbs/wcsstr.c (wcsstr): Likewise.
15701         * wcsmbs/wcstok.c (wcstok): Likewise.
15702         * wcsmbs/wctob.c (wctob): Likewise.
15703         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
15704         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15705         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
15706         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
15707         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
15708         * wcsmbs/wmemset.c (__wmemset): Likewise.
15709         * wctype/wcfuncs.c (__towlower): Likewise.
15710         (__towupper): Likewise.
15711
15712         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
15713         (lll_unlock_elision): Add adapt_count parameter.
15714
15715 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
15716
15717         * sysdeps/nptl/configure.ac: Do not give errors based on the
15718         results of top-level configure tests.
15719         * sysdeps/nptl/configure: Regenerated.
15720
15721         * configure.ac (libc_cv_Bgroup): Remove configure test.
15722         * configure: Regenerated.
15723         * config.make.in (have-Bgroup): Remove variable.
15724
15725         * configure.ac (sizeof_long_double): Remove configure test.
15726         * configure: Regenerated.
15727         * config.make.in (sizeof-long-double): Remove variable.
15728
15729         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
15730         * configure: Regenerated.
15731         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
15732         variable.
15733         (exceptions): Likewise.
15734         * sysdeps/arm/configure: Regenerated.
15735         * config.make.in (exceptions): Remove variable.
15736         * Makeconfig (uses-callbacks): Use -fexceptions instead of
15737         $(exceptions).
15738         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
15739         (CFLAGS-vdprintf_chk.c): Likewise.
15740         (CFLAGS-printf_chk.c): Likewise.
15741         (CFLAGS-fprintf_chk.c): Likewise.
15742         (CFLAGS-vprintf_chk.c): Likewise.
15743         (CFLAGS-vfprintf_chk.c): Likewise.
15744         (CFLAGS-gets_chk.c): Likewise.
15745         (CFLAGS-fgets_chk.c): Likewise.
15746         (CFLAGS-fgets_u_chk.c): Likewise.
15747         (CFLAGS-fread_chk.c): Likewise.
15748         (CFLAGS-fread_u_chk.c): Likewise.
15749         (CFLAGS-wprintf_chk.c): Likewise.
15750         (CFLAGS-fwprintf_chk.c): Likewise.
15751         (CFLAGS-vwprintf_chk.c): Likewise.
15752         (CFLAGS-vfwprintf_chk.c): Likewise.
15753         (CFLAGS-fgetws_chk.c): Likewise.
15754         (CFLAGS-fgetws_u_chk.c): Likewise.
15755         * libio/Makefile (CFLAGS-fileops.c): Likewise.
15756         (CFLAGS-fputc.c): Likewise.
15757         (CFLAGS-fputwc.c): Likewise.
15758         (CFLAGS-freopen64.c): Likewise.
15759         (CFLAGS-freopen.c): Likewise.
15760         (CFLAGS-fseek.c): Likewise.
15761         (CFLAGS-fseeko64.c): Likewise.
15762         (CFLAGS-fseeko.c): Likewise.
15763         (CFLAGS-ftello64.c): Likewise.
15764         (CFLAGS-ftello.c): Likewise.
15765         (CFLAGS-fwide.c): Likewise.
15766         (CFLAGS-genops.c): Likewise.
15767         (CFLAGS-getc.c): Likewise.
15768         (CFLAGS-getchar.c): Likewise.
15769         (CFLAGS-getwc.c): Likewise.
15770         (CFLAGS-getwchar.c): Likewise.
15771         (CFLAGS-iofclose.c): Likewise.
15772         (CFLAGS-iofflush.c): Likewise.
15773         (CFLAGS-iofgetpos64.c): Likewise.
15774         (CFLAGS-iofgetpos.c): Likewise.
15775         (CFLAGS-iofgets.c): Likewise.
15776         (CFLAGS-iofgetws.c): Likewise.
15777         (CFLAGS-iofputs.c): Likewise.
15778         (CFLAGS-iofputws.c): Likewise.
15779         (CFLAGS-iofread.c): Likewise.
15780         (CFLAGS-iofsetpos64.c): Likewise.
15781         (CFLAGS-iofsetpos.c): Likewise.
15782         (CFLAGS-ioftell.c): Likewise.
15783         (CFLAGS-iofwrite.c): Likewise.
15784         (CFLAGS-iogetdelim.c): Likewise.
15785         (CFLAGS-iogetline.c): Likewise.
15786         (CFLAGS-iogets.c): Likewise.
15787         (CFLAGS-iogetwline.c): Likewise.
15788         (CFLAGS-ioputs.c): Likewise.
15789         (CFLAGS-ioseekoff.c): Likewise.
15790         (CFLAGS-ioseekpos.c): Likewise.
15791         (CFLAGS-iosetbuffer.c): Likewise.
15792         (CFLAGS-iosetvbuf.c): Likewise.
15793         (CFLAGS-ioungetc.c): Likewise.
15794         (CFLAGS-ioungetwc.c): Likewise.
15795         (CFLAGS-oldfileops.c): Likewise.
15796         (CFLAGS-oldiofclose.c): Likewise.
15797         (CFLAGS-oldiofgetpos64.c): Likewise.
15798         (CFLAGS-oldiofgetpos.c): Likewise.
15799         (CFLAGS-oldiofsetpos64.c): Likewise.
15800         (CFLAGS-oldiofsetpos.c): Likewise.
15801         (CFLAGS-peekc.c): Likewise.
15802         (CFLAGS-putc.c): Likewise.
15803         (CFLAGS-putchar.c): Likewise.
15804         (CFLAGS-putwc.c): Likewise.
15805         (CFLAGS-putwchar.c): Likewise.
15806         (CFLAGS-rewind.c): Likewise.
15807         (CFLAGS-wfileops.c): Likewise.
15808         (CFLAGS-wgenops.c): Likewise.
15809         (CFLAGS-oldiofopen.c): Likewise.
15810         (CFLAGS-iofopen.c): Likewise.
15811         (CFLAGS-iofopen64.c): Likewise.
15812         (CFLAGS-oldtmpfile.c): Likewise.
15813         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
15814         (CFLAGS-fprintf.c): Likewise.
15815         (CFLAGS-printf.c): Likewise.
15816         (CFLAGS-vfwprintf.c): Likewise.
15817         (CFLAGS-vfscanf.c): Likewise.
15818         (CFLAGS-vfwscanf.c): Likewise.
15819         (CFLAGS-fscanf.c): Likewise.
15820         (CFLAGS-scanf.c): Likewise.
15821         (CFLAGS-isoc99_vfscanf.c): Likewise.
15822         (CFLAGS-isoc99_vscanf.c): Likewise.
15823         (CFLAGS-isoc99_fscanf.c): Likewise.
15824         (CFLAGS-isoc99_scanf.c): Likewise.
15825         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
15826         (CFLAGS-isoc99_fwscanf.c): Likewise.
15827         (CFLAGS-isoc99_vwscanf.c): Likewise.
15828         (CFLAGS-isoc99_vfwscanf.c): Likewise.
15829
15830         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
15831         after mkstemp64.
15832         * login/tst-utmp.c (do_prepare): Likewise.
15833         * rt/tst-aio.c (do_prepare): Likewise.
15834         * rt/tst-aio64.c (do_prepare): Likewise.
15835
15836 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15837
15838         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
15839         (__lll_lock_elision): Remove adapt_count decrement...
15840         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15841         (__lll_trylock_elision): Likewise.
15842         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15843         (__lll_unlock_elision): ... to here. And utilize
15844         new adapt_count parameter.
15845         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
15846         (__lll_unlock_elision): Update to include adapt_count
15847         parameter.
15848         (lll_unlock_elision): Pass pointer to adapt_count
15849         variable.
15850
15851 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15852
15853         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
15854         Add elision adapt_count parameter to list of arguments.
15855         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
15856         (lll_unlock_elision): Update with new parameter list
15857         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
15858         (lll_unlock_elision): Likewise.
15859         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
15860         (lll_unlock_elision): Likewise.
15861
15862 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
15863
15864         [BZ #19122]
15865         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
15866         attribute_hidden.
15867
15868         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
15869         attribute_hidden.
15870         [IS_IN (rtld)] (__strdup): Likewise.
15871         [IS_IN (rtld)] (__strerror_r): Likewise.
15872         [IS_IN (rtld)] (__strsep_g): Likewise.
15873         [IS_IN (rtld)] (memchr): Likewise.
15874         [IS_IN (rtld)] (memcmp): Likewise.
15875         [IS_IN (rtld)] (memcpy): Likewise.
15876         [IS_IN (rtld)] (memmove): Likewise.
15877         [IS_IN (rtld)] (memset): Likewise.
15878         [IS_IN (rtld)] (rawmemchr): Likewise.
15879         [IS_IN (rtld)] (stpcpy): Likewise.
15880         [IS_IN (rtld)] (strchr): Likewise.
15881         [IS_IN (rtld)] (strcmp): Likewise.
15882         [IS_IN (rtld)] (strlen): Likewise.
15883         [IS_IN (rtld)] (strnlen): Likewise.
15884         [IS_IN (rtld)] (strsep): Likewise.
15885
15886         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
15887         attribute_hidden.
15888         [IS_IN (rtld)] (__strtoul_internal): Likewise.
15889
15890         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
15891         attribute_hidden.
15892         [IS_IN (rtld)] (__libc_sigaction): Likewise.
15893
15894         * include/setjmp.h (__longjmp): Add attribute_hidden.
15895         [IS_IN (rtld)] (__sigsetjmp): Likewise.
15896
15897         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
15898         Add attribute_hidden.
15899
15900         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
15901         [IS_IN (rtld)] (__open): Likewise.
15902         [IS_IN (rtld)] (__fcntl): Likewise.
15903
15904         * include/dirent.h (__opendirat): Add attribute_hidden.
15905         (__getdents): Likewise.
15906         (__getdents64): Likewise.
15907         (__alloc_dir): Likewise.
15908         [IS_IN (rtld)] (__closedir): Likewise.
15909         [IS_IN (rtld)] (__fdopendir): Likewise.
15910         [IS_IN (rtld)] (__readdir): Likewise.
15911         [IS_IN (rtld)] (__readdir64): Likewise.
15912         [IS_IN (rtld)] (__rewinddir): Likewise.
15913
15914         * include/dlfcn.h (_dl_catch_error): Moved to ...
15915         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
15916         attribute_hidden.
15917
15918         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
15919         (_itoa_word): Likewise.
15920
15921         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
15922         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
15923         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
15924         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
15925         (_dl_higher_prime_number): Likewise.
15926         (_dl_debug_printf_c): Likewise.
15927         (_dl_signal_cerror): Likewise.
15928         (_dl_receive_error): Likewise.
15929         (_dl_reloc_bad_type): Likewise.
15930         (_dl_resolve_conflicts): Likewise.
15931         (_dl_check_all_versions): Likewise.
15932         (_dl_check_map_versions): Likewise.
15933         (_dl_sort_fini): Likewise.
15934         (_dl_debug_initialize): Likewise.
15935         (_dl_init_paths): Likewise.
15936         (_dl_show_auxv): Likewise.
15937         (_dl_next_ld_env_entry): Likewise.
15938         (_dl_important_hwcaps): Likewise.
15939         (_dl_load_cache_lookup): Likewise.
15940         (_dl_update_slotinfo): Likewise.
15941         (_dl_show_scope): Likewise.
15942
15943         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
15944         attribute_hidden.
15945         (_wordcopy_fwd_dest_aligned): Likewise.
15946         (_wordcopy_bwd_aligned): Likewise.
15947         (_wordcopy_bwd_dest_aligned): Likewise.
15948
15949         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15950         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
15951         Likewise.
15952         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
15953         Likewise.
15954         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
15955
15956 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
15957
15958         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
15959         GCC 5 requirement.
15960
15961 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
15962
15963         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
15964         test.
15965         * sysdeps/i386/configure: Regenerated.
15966         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
15967         code unconditional.
15968
15969         * configure.ac (libc_cv_asm_previous_directive): Remove configure
15970         test.
15971         (libc_cv_asm_popsection_directive): Likewise.
15972         * configure: Regenerated.
15973         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
15974         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
15975         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
15976         (__make_section_unallocated): Make definition unconditional.
15977         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
15978         Remove conditional definition.
15979         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
15980         (__make_section_unallocated): Likewise.
15981
15982         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
15983         * configure: Regenerated.
15984         * config.make.in (static-libgcc): Remove variable.
15985         * Makerules (build-shlib-helper): Use -static-libgcc instead of
15986         $(static-libgcc).
15987         (build-module-helper): Likewise.
15988
15989         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
15990         * configure: Regenerated.
15991
15992 2015-10-15  Florian Weimer  <fweimer@redhat.com>
15993
15994         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
15995         (struct char_buffer): New type.
15996         (char_buffer_start, char_buffer_size, char_buffer_error)
15997         (char_buffer_rewind, char_buffer_add): New functions.
15998         (ADDW): Remove macro, replaced by the char_buffer_add function.
15999         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
16000         of extend_alloca.  Make control flow more explicit.
16001
16002 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16003
16004         [BZ #19137]
16005         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
16006         Add -fomit-frame-pointer.
16007         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
16008
16009 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16010
16011         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
16012         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
16013         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
16014         only if !__GNUC_PREREQ (5,0).
16015         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
16016         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
16017         (INTERNAL_SYSCALL_NCS): Likewise.
16018         (LOADREGS_0): New macro for GCC 5.
16019         (ASMARGS_0): Likewise.
16020         (LOADREGS_1): Likewise.
16021         (ASMARGS_1): Likewise.
16022         (LOADREGS_2): Likewise.
16023         (ASMARGS_2): Likewise.
16024         (LOADREGS_3): Likewise.
16025         (ASMARGS_3): Likewise.
16026         (LOADREGS_4): Likewise.
16027         (ASMARGS_4): Likewise.
16028         (LOADREGS_5): Likewise.
16029         (ASMARGS_5): Likewise.
16030         (LOADREGS_6): Likewise.
16031         (ASMARGS_6): Likewise.
16032
16033 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16034
16035         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
16036         -fomit-frame-pointer.
16037         (CFLAGS-mmap64.c): Likewise.
16038         (CFLAGS-semtimedop.c): Likewise.
16039         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
16040         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
16041         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16042         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16043
16044 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16045
16046         [BZ #18928]
16047         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
16048         _dl_pointer_guard member.
16049         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
16050         initializer.
16051         (security_init): Always set up pointer guard.
16052         (process_envvars): Do not process LD_POINTER_GUARD.
16053
16054 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
16055
16056         [BZ #19134]
16057         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
16058         (.LC2): Likewise.
16059         (.LC3): Likewise.
16060         (__lround): Do not add 0.5 to integer or out-of-range arguments.
16061
16062 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16063
16064         [BZ #19129]
16065         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
16066         r0 and r1.
16067
16068 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
16069
16070         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
16071
16072 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
16073
16074         * include/stap-probe.h: Fix macro definition formatting.
16075
16076 2015-10-14  Florian Weimer  <fweimer@redhat.com>
16077
16078         [BZ #19074]
16079         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
16080         load and store num_ifs.
16081
16082 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16083
16084         [BZ #18822]
16085         * sysdeps/unix/sysv/linux/sched_getaffinity.c
16086         (__sched_getaffinity_new): Add libc_hidden_proto and
16087         libc_hidden_def.
16088
16089 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16090
16091         [BZ #19007]
16092         * scripts/localplt.awk: Also allow GOT references.
16093         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
16094         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
16095         with "+ REL R_386_GLOB_DAT".
16096         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
16097         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
16098
16099 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16100
16101         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
16102         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16103         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
16104         Likewise.
16105         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
16106         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
16107         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
16108         INTERNAL_SYSCALLINTERNAL_SYSCALL and
16109         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16110         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
16111         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
16112         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
16113         Likewise.
16114         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
16115
16116 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16117
16118         [BZ #19125]
16119         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
16120         <math_private.h> and <stdint.h>.
16121         (__llround): Avoid conversions to and from long long int, and
16122         subtractions, where those might raise spurious exceptions.
16123         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16124         <math_private.h> and <stdint.h>.
16125         (__llroundf): Avoid conversions to and from long long int, and
16126         subtractions, where those might raise spurious exceptions.
16127
16128 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16129
16130         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
16131         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16132         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
16133         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
16134         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
16135         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
16136         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
16137         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
16138         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
16139         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
16140         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
16141         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
16142         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
16143         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
16144         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
16145         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
16146         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
16147         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
16148         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
16149         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
16150         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
16151         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
16152         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
16153         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
16154         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
16155         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
16156         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
16157         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
16158         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
16159         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
16160         (__xstat64_conv): Likewise.
16161         (__xstat32_conv): Likewise.
16162
16163 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16164
16165         * sysdeps/unix/sysv/linux/sysdep.h: New file.
16166         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
16167         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
16168         <sysdeps/unix/sysv/linux/sysdep.h>.
16169         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
16170         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
16171         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
16172         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
16173         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
16174         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
16175         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
16176         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
16177         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
16178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
16179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
16180         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16181         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16182         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16183         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16184         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16185         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
16186         (sysdep-dl-routines): Add sysdep.
16187         [$(subdir) == nptl] (libpthread-routines): Likewise.
16188         [$(subdir) == rt] (librt-routines): Likewise.
16189         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
16190         PIC when branching to SYSCALL_ERROR_LABEL.
16191         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
16192         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
16193         <sysdeps/unix/sysv/linux/sysdep.h>.
16194         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
16195         (SYSCALL_ERROR_ERRNO): Removed.
16196         (SYSCALL_ERROR_HANDLER): Changed to empty.
16197         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
16198         (__syscall_error): New prototype.
16199         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
16200         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
16201
16202 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16203
16204         [BZ #19124]
16205         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
16206         (_dl_runtime_resolve_avx512): Make it a hidden alias of
16207         _dl_runtime_resolve_avx.
16208         (_dl_runtime_profile_avx512): Make it a hidden alias of
16209         _dl_runtime_profile_avx.
16210
16211 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16212
16213         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
16214         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
16215         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
16216         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
16217
16218         [BZ #16422]
16219         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
16220         New configure test.
16221         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
16222         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
16223         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
16224         <math_private.h> and <stdint.h>.
16225         (__llrint): Avoid conversions to long long int where those might
16226         raise spurious exceptions.
16227         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16228         <math_private.h> and <stdint.h>.
16229         (__llrintf): Avoid conversions to long long int where those might
16230         raise spurious exceptions.
16231
16232 2015-10-12  Andreas Schwab  <schwab@suse.de>
16233
16234         [BZ #18969]
16235         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
16236         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
16237         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
16238         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
16239         $(gen-locales).
16240         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
16241         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
16242         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
16243         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
16244         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
16245         $(gen-locales).
16246         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
16247         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
16248         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
16249         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
16250         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
16251         ($(objpfx)tst-ftell-active-handler.out)
16252         ($(objpfx)tst-ftell-append.out)
16253         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
16254         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
16255         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
16256         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
16257         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
16258         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
16259         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
16260         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
16261         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
16262         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
16263         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
16264         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
16265         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
16266         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
16267         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
16268         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
16269         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
16270         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
16271         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
16272         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
16273         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
16274         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
16275         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
16276         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
16277         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
16278         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
16279         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
16280         $(gen-locales).
16281         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
16282         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
16283         $(gen-locales).
16284         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
16285         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
16286         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
16287         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
16288         $(gen-locales).
16289         * libio/tst_wprintf2.c (main): Use explicit locale.
16290         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
16291
16292 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16293
16294         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
16295         __msg_sig_post.
16296         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
16297
16298 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16299
16300         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
16301         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16302
16303         * sysdeps/arm/libm-test-ulps: Regenerated.
16304
16305         [BZ #15470]
16306         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
16307
16308         [BZ #16399]
16309         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
16310         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
16311         and <fix-fp-int-convert-overflow.h>.
16312         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16313         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16314         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
16315         and <fix-fp-int-convert-overflow.h>.
16316         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
16317         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16318         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
16319         <fix-fp-int-convert-overflow.h>.
16320         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16321         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16322         * sysdeps/ieee754/dbl-64/s_lround.c: Include
16323         <fix-fp-int-convert-overflow.h>.
16324         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
16325         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16326         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
16327         and <fix-fp-int-convert-overflow.h>.
16328         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16329         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16330         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
16331         <limits.h> and <fix-fp-int-convert-overflow.h>.
16332         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16333         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16334         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
16335         and <fix-fp-int-convert-overflow.h>.
16336         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16337         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16338         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
16339         and <fix-fp-int-convert-overflow.h>.
16340         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16341         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16342         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
16343
16344 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
16345
16346         [BZ #18589]
16347         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
16348         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
16349         $(gen-locales).
16350
16351 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16352             Phil Blundell <pb@pbcl.net>
16353
16354         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
16355         * nptl/tst-cancel26.c: New file.
16356         * nptl/tst-cancel27.c: Likewise.
16357
16358 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
16359
16360         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
16361         __ILP32__ isn't defined.
16362         (lrint): Likewise.
16363         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
16364         (lrintf): Likewise.
16365         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
16366         (lrintl): Likewise.
16367         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
16368         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
16369         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
16370
16371 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16372
16373         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16374         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16375
16376         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
16377         file.
16378         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
16379         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
16380
16381 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16382
16383         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
16384         configure test.
16385         * sysdeps/i386/configure: Regenerated.
16386         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
16387         configure test.
16388         * sysdeps/x86_64/configure: Regenerated.
16389         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
16390         Make code unconditional.
16391
16392         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
16393         test.
16394         * sysdeps/i386/configure: Regenerated.
16395         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
16396         test.
16397         * sysdeps/x86_64/configure: Regenerated.
16398         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
16399         Make code unconditional.
16400         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
16401         Likewise.
16402         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
16403         Likewise.
16404         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16405         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
16406         code unconditional.
16407         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16408         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
16409         code unconditional.
16410         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16411         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
16412         code unconditional.
16413         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
16414         code unconditional.
16415         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16416         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
16417         code unconditional.
16418         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16419         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
16420         code unconditional.
16421         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16422         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
16423         code unconditional.
16424         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16425         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
16426         code unconditional.
16427         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16428         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
16429
16430         [BZ #19095]
16431         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
16432         mantissa to long int before shifting left.
16433
16434 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16435
16436         [BZ #19094]
16437         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
16438         <limits.h>.
16439         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16440         when result overflows but exception would not result from cast.
16441         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
16442         <limits.h>.
16443         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16444         when result overflows but exception would not result from cast.
16445         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
16446         <limits.h>.
16447         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16448         when result overflows but exception would not result from cast.
16449         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
16450         <limits.h>.
16451         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16452         when result overflows but exception would not result from cast.
16453         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
16454         <limits.h>.
16455         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16456         when result overflows but exception would not result from cast.
16457         * math/libm-test.inc (lrint_test_data): Add more tests.
16458         (llrint_test_data): Likewise.
16459
16460 2015-10-08  Roland McGrath  <roland@hack.frob.com>
16461
16462         [BZ #18872]
16463         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
16464         Move out from under [$(run-built-tests) = yes] conditional.
16465         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
16466         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
16467
16468 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
16469
16470         [BZ #18589]
16471         * string/Makefile (tests): Add bug-strcoll2.
16472         (LOCALES): Add cs_CZ.UTF-8.
16473         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
16474
16475         [BZ #18589]
16476         * string/bug-strcoll2.c: New file.
16477         * locale/categories.def: Revert commit
16478         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
16479         * locale/langinfo.h: Likewise.
16480         * locale/localeinfo.h: Likewise.
16481         * locale/C-collate.c: Likewise.
16482         * locale/programs/ld-collate.c (collate_output): Likewise.
16483         * string/strcoll_l.c (STRDIFF): Likewise.
16484         (STRCOLL): Likewise.
16485         * wcsmbs/wcscoll_l.c: Likewise.
16486
16487 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16488
16489         * math/libm-test.inc (lround_test_data): Do not expect the absence
16490         of "inexact" for some tests with non-integer arguments.
16491         (llround_test_data): Likewise.
16492
16493         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
16494         test.
16495         (libc_cv_cc_sse2avx): Likewise.
16496         * sysdeps/i386/configure: Regenerated.
16497         * sysdeps/i386/i686/multiarch/Makefile
16498         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
16499         [$(subdir) = math].
16500         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
16501         code unconditional.
16502         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16503         Likewise.
16504         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
16505         Likewise.
16506         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16507         Likewise.
16508         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
16509         test.
16510         (libc_cv_cc_sse2avx): Likewise.
16511         * sysdeps/x86_64/configure: Regenerated.
16512         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
16513         unconditional.
16514         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
16515         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
16516         unconditional.
16517         (_dl_runtime_profile)
16518         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
16519         conditional code.
16520         * sysdeps/x86_64/fpu/multiarch/Makefile
16521         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
16522         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
16523         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16524         * sysdeps/x86_64/fpu/multiarch/e_exp.c
16525         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16526         * sysdeps/x86_64/fpu/multiarch/e_log.c
16527         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16528         * sysdeps/x86_64/fpu/multiarch/s_atan.c
16529         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16530         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16531         Likewise.
16532         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16533         Likewise.
16534         * sysdeps/x86_64/fpu/multiarch/s_sin.c
16535         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16536         * sysdeps/x86_64/fpu/multiarch/s_tan.c
16537         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16538         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
16539         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
16540         (HAVE_SSE2AVX_SUPPORT): Likewise.
16541
16542 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
16543
16544         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
16545         instead of #pragma optimize.
16546
16547 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16548
16549         [BZ #17195]
16550         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
16551         as is similarly done in systrim and _int_free already.
16552
16553 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16554
16555         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
16556
16557 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16558
16559         [BZ #19088]
16560         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
16561         <limits.h>.
16562         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16563         overflows but exception would not result from cast.
16564         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
16565         and <limits.h>.
16566         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16567         overflows but exception would not result from cast.
16568         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
16569         <limits.h>.
16570         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16571         overflows but exception would not result from cast.
16572         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
16573         <limits.h>.
16574         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16575         overflows but exception would not result from cast.
16576         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
16577         <limits.h>.
16578         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16579         overflows but exception would not result from cast.
16580         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
16581         <limits.h>.
16582         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16583         overflows but exception would not result from cast.
16584         * math/libm-test.inc (lround_test_data): Add more tests.
16585         (llround_test_data): Likewise.
16586
16587 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
16588
16589         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
16590         (CFLAGS-ialloc.c): Ditto.
16591         (CFLAGS-scheck.c): Ditto.
16592
16593 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16594
16595         [BZ #19086]
16596         * manual/filesys.texi (Storage Allocation): Fix argument order for
16597         posix_fallocate64.
16598
16599 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16600
16601         [BZ #19085]
16602         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
16603         exponent below 48 inside case for non-overflowing exponent.
16604         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
16605
16606 2015-10-07  Florian Weimer  <fweimer@redhat.com>
16607
16608         * iconvdata/cp737.h (from_idx): Add const.
16609         * iconvdata/cp775.h (from_idx): Likewise.
16610
16611 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16612
16613         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
16614         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
16615         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
16616
16617         [BZ #19079]
16618         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
16619         file, conditioned on [!_LP64].
16620         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
16621         [!_LP64] (__lround): Do not define as function or alias.
16622         [!_LP64] (lround): Likewise.
16623         [!_LP64] (__lroundl): Likewise.
16624         [!_LP64] (lroundl): Likewise.
16625         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
16626         macro.
16627         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
16628         Likewise.
16629
16630 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
16631
16632         * math/libm-test.inc (lrint_test_data): Add more tests.
16633         (llrint_test_data): Likewise.
16634         (lround_test_data): Likewise.
16635         (llround_test_data): Likewise.
16636
16637         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
16638         (llrint_test_data): Add tests used for lrint.
16639
16640         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
16641         test.
16642         * sysdeps/i386/configure: Regenerated.
16643         * sysdeps/i386/i686/multiarch/Makefile
16644         [$(config-cflags-sse4) = yes]: Make code unconditional.
16645         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
16646         Likewise.
16647         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
16648         Likewise.
16649         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
16650         test.
16651         * sysdeps/x86_64/configure: Regenerated.
16652         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
16653         Make code unconditional.
16654         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
16655         Likewise.
16656         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
16657         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
16658
16659         * scripts/rpm2dynsym.sh: Remove file.
16660
16661 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16662
16663         * configure.ac (libc_cv_cxx_thread_local): Define.
16664         * configure: Regenerate.
16665         * config.make.in (have-cxx-thread_local): Define.
16666         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
16667         (LDLIBS-tst-thread_local1): Define.
16668         (tests): Add tst-thread_local1.
16669         [have-cxx-thread_local != yes] (tests-unsupported): Add
16670         tst-thread_local1.
16671         * nptl/tst-thread_local1.cc: New file.
16672
16673 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
16674
16675         [BZ #19078]
16676         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
16677         (u_thres): Likewise.
16678         (__expl): Determine whether to call __kernel_standard_l based on
16679         value of result, not argument.
16680
16681         * math/libm-test.inc (scalb_test_data): Add more expectations for
16682         the "inexact" exception.
16683
16684         [BZ #19077]
16685         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
16686         0.0L for argument 1.0L.
16687
16688         [BZ #19076]
16689         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
16690         constant 0.0L when computing infinite result.
16691
16692 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16693
16694         [BZ #10432]
16695         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
16696         malloc_usable_size.
16697
16698 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16699
16700         [BZ #19018]
16701         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
16702         Mangle function pointer before storing it.
16703         (__call_tls_dtors): Demangle function pointer before calling it.
16704
16705 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16706
16707         [BZ #19012]
16708         * iconv/gconv_db.c (gen_steps): Check for additional errors.
16709         Clean up on failure.
16710
16711 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
16712
16713         [BZ #19071]
16714         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
16715         long int variable to store possibly incremented high part of
16716         mantissa.
16717         * math/libm-test.inc (lround_test_data): Add tests used for
16718         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
16719         for tests requiring 64-bit long.  Do not condition tests on
16720         [TEST_FLOAT] unnecessarily.
16721         (llround_test_data): Add tests used for lround.  Add another
16722         expectation for the "inexact" exception.  Do not condition tests
16723         on [TEST_FLOAT] unnecessarily.
16724
16725         [BZ #887]
16726         [BZ #19049]
16727         [BZ #19050]
16728         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
16729         * sysdeps/ieee754/dbl-64/e_log10.c: Include
16730         <fix-int-fp-convert-zero.h>.
16731         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16732         * sysdeps/ieee754/dbl-64/e_log2.c: Include
16733         <fix-int-fp-convert-zero.h>.
16734         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16735         * sysdeps/ieee754/dbl-64/s_erf.c: Include
16736         <fix-int-fp-convert-zero.h>.
16737         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16738         * sysdeps/ieee754/dbl-64/s_logb.c: Include
16739         <fix-int-fp-convert-zero.h>.
16740         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16741         * sysdeps/ieee754/flt-32/e_log10f.c: Include
16742         <fix-int-fp-convert-zero.h>.
16743         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16744         * sysdeps/ieee754/flt-32/e_log2f.c: Include
16745         <fix-int-fp-convert-zero.h>.
16746         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16747         * sysdeps/ieee754/flt-32/s_erff.c: Include
16748         <fix-int-fp-convert-zero.h>.
16749         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16750         * sysdeps/ieee754/flt-32/s_logbf.c: Include
16751         <fix-int-fp-convert-zero.h>.
16752         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16753         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
16754         <fix-int-fp-convert-zero.h>.
16755         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16756         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
16757         <fix-int-fp-convert-zero.h>.
16758         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16759         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
16760         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
16761         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
16762         file.
16763         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
16764
16765 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
16766
16767         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16768
16769 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
16770
16771         [BZ #19059]
16772         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
16773         overflowing computation.
16774         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16775         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
16776         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16777         Likewise.
16778         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16779         Likewise.
16780         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
16781         Likewise.
16782         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16783         Likewise.
16784         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16785         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16786         Likewise.
16787         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16788         Likewise.
16789         * math/libm-test.inc (nexttoward_test_data): Add more tests.
16790
16791         * nss/rewrite_field.c (__nss_rewrite_field): Use
16792         internal_function.
16793         * nss/valid_field.c (__nss_valid_field): Likewise.
16794         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
16795
16796 2015-10-02  Florian Weimer  <fweimer@redhat.com>
16797
16798         [BZ #18724]
16799         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
16800         (__nss_invalid_field_characters, __nss_valid_field)
16801         (__nss_valid_list_field, __nss_rewrite_field): Declare.
16802         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
16803         tst-field.c: New file.
16804         * nss/Makefile (routines): Add valid_field, rewrite_field.
16805         (tests-static): Define unconditionally.
16806         (tests): Include tests-static.
16807         [build-static-nss] (tests-static): Use append.
16808         [build-static-nss] (tests): Remove modification.
16809         * nss/getent.c (print_group): Call putgrent.  Report error.
16810         (print_gshadow): Call putsgent.  Report error.
16811         (print_passwd): Call putpwent.  Report error.
16812         (print_shadow): Call putspent.  Report error.
16813         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
16814         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
16815         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
16816         name, password, directory, shell fields for valid syntax.  Rewrite
16817         GECOS field to match syntax.
16818         * pwd/Makefile (tests): Add tst-putpwent.
16819         * pwd/tst-putpwent.c: New file.
16820         * grp/putgrent.c (putgrent): Convert to ISO function definition.
16821         Check grName, grpasswd, gr_mem fields for valid syntax.
16822         Change loop variable i to size_t.
16823         * grp/Makefile (tests): Add tst-putgrent.
16824         * grp/tst-putgrent.c: New file.
16825         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
16826         valid syntax.
16827         * shadow/Makefile (tests): Add tst-putspent.
16828         * shadow/tst-putspent.c: New file.
16829         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
16830         sg_mem fields for valid syntax.
16831         * gshadow/Makefile (tests): Add tst-putsgent.
16832         * gshadow/tst-putsgent.c: New file.
16833
16834 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16835
16836         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
16837         assembly instructions.
16838
16839 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16840
16841         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
16842         prefix from operands.
16843
16844 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
16845
16846         [BZ #16347]
16847         [BZ #19046]
16848         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
16849         <libc-internal.h>.
16850         (MAXLGM): Do not use diagnostic control macros.
16851         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
16852         threshold for ldbl-128ibm.
16853         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
16854         instead of multiplying by log then subtracting.
16855         * math/auto-libm-test-in: Add more tests of lgamma.
16856         * math/auto-libm-test-out: Regenerated.
16857
16858         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
16859         (TYPE_HEX_DIG): Likewise.
16860         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
16861         precisions when printing floating-point numbers.
16862         (check_float_internal): Likewise.
16863
16864 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
16865
16866         [BZ #16620]
16867         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
16868         of log (10) rounded downward to 48 bits.
16869         (log10_low): Use corresponding low part of log (10).
16870
16871         [BZ #19032]
16872         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
16873         compute result as (x - x) / (x - x) not as 0 / 0.
16874         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
16875         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
16876
16877         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
16878         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
16879         and expm1.
16880         * math/auto-libm-test-out: Regenerated.
16881         * math/libm-test.inc (acos_test_data): Add more tests.
16882         (asin_test_data): Likewise.
16883         (asinh_test_data): Likewise.
16884         (atan_test_data): Likewise.
16885         (atanh_test_data): Likewise.
16886         (atan2_test_data): Likewise.
16887         (cbrt_test_data): Likewise.
16888         (ceil_test_data): Likewise.
16889         (copysign_test_data): Likewise.
16890         (cos_test_data): Likewise.
16891         (cosh_test_data): Likewise.
16892         (erf_test_data): Likewise.
16893         (erfc_test_data): Likewise.
16894         (exp_test_data): Likewise.
16895         (exp10_test_data): Likewise.
16896         (exp2_test_data): Likewise.
16897         (expm1_test_data): Likewise.
16898         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16899
16900 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
16901
16902         [BZ #19006]
16903         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
16904         to ...
16905         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
16906         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
16907         to ...
16908         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
16909         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
16910         to ...
16911         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
16912         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
16913         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
16914         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
16915         to ...
16916         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
16917         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
16918         Moved to ...
16919         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
16920         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
16921         Moved to ...
16922         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
16923         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
16924         to ...
16925         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
16926         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
16927         Moved to ...
16928         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
16929         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
16930         to ...
16931         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
16932         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
16933         Removed.
16934         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
16935         Likewise.
16936         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
16937         Likewise.
16938         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
16939         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
16940         Likewise.
16941         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
16942         Likewise.
16943         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
16944         Likewise.
16945         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
16946         Likewise.
16947         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
16948         Likewise.
16949         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
16950         Likewise.
16951         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
16952         Likewise.
16953         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
16954         Likewise.
16955         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
16956         Likewise.
16957         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
16958         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
16959         Likewise.
16960         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
16961         Likewise.
16962         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
16963         Likewise.
16964         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
16965         Likewise.
16966         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
16967         Likewise.
16968         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
16969         Replace ../i486/pthread_cond_timedwait.S with
16970         ../pthread_cond_timedwait.S.
16971
16972 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
16973
16974         * math/libm-test.inc (acos_test_data): Refine expectations for
16975         errno and "inexact" exceptions.
16976         (acosh_test_data): Likewise.
16977         (asin_test_data): Likewise.
16978         (asinh_test_data): Likewise.
16979         (atan_test_data): Likewise.
16980         (atanh_test_data): Likewise.
16981         (atan2_test_data): Likewise.
16982         (cbrt_test_data): Likewise.
16983         (ceil_test_data): Likewise.
16984         (copysign_test_data): Likewise.
16985         (cosh_test_data): Likewise.
16986         (erf_test_data): Likewise.
16987         (erfc_test_data): Likewise.
16988         (exp_test_data): Likewise.
16989         (exp10_test_data): Likewise.
16990         (exp2_test_data): Likewise.
16991         (expm1_test_data): Likewise.
16992         (fabs_test_data): Likewise.
16993         (floor_test_data): Likewise.
16994         (fma_test_data): Likewise.
16995         (fmax_test_data): Likewise.
16996         (fmin_test_data): Likewise.
16997         (fmod_test_data): Likewise.
16998         (fpclassify_test_data): Likewise.
16999         (frexp_test_data): Likewise.
17000         (hypot_test_data): Likewise.
17001         (ilogb_test_data): Likewise.
17002         (isgreater_test_data): Likewise.
17003         (isgreaterequal_test_data): Likewise.
17004         (isinf_test_data): Likewise.
17005         (isless_test_data): Likewise.
17006         (islessequal_test_data): Likewise.
17007         (islessgreater_test_data): Likewise.
17008         (isnan_test_data): Likewise.
17009         (isnormal_test_data): Likewise.
17010         (issignaling_test_data): Likewise.
17011         (isunordered_test_data): Likewise.
17012         (j0_test_data): Likewise.
17013         (j1_test_data): Likewise.
17014         (jn_test_data): Likewise.
17015         (lgamma_test_data): Likewise.
17016         (lrint_test_data): Likewise.
17017         (llrint_test_data): Likewise.
17018         (log_test_data): Likewise.
17019         (log10_test_data): Likewise.
17020         (log1p_test_data): Likewise.
17021         (log2_test_data): Likewise.
17022         (logb_test_data): Likewise.
17023         (lround_test_data): Likewise.
17024         (llround_test_data): Likewise.
17025         (modf_test_data): Likewise.
17026         (nearbyint_test_data): Likewise.
17027         (nextafter_test_data): Likewise.
17028         (nexttoward_test_data): Likewise.
17029         (pow_test_data): Likewise.
17030         (remainder_test_data): Likewise.
17031         (remquo_test_data): Likewise.
17032         (rint_test_data): Likewise.
17033         (round_test_data): Likewise.
17034         (signbit_test_data): Likewise.
17035         (sinh_test_data): Likewise.
17036         (sqrt_test_data): Likewise.
17037         (tanh_test_data): Likewise.
17038         (tgamma_test_data): Likewise.
17039         (trunc_test_data): Likewise.
17040         (y0_test_data): Likewise.
17041         (y1_test_data): Likewise.
17042         (yn_test_data): Likewise.
17043         (significand_test_data): Likewise.
17044
17045 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
17046
17047         * manual/filesys.texi (Storage Allocation): Document that
17048         posix_fallocate emulation fails when fd is open with O_WRONLY.
17049
17050 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
17051
17052         [BZ #19016]
17053         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
17054         allow more cases with X^2 + Y^2 >= 0.5.
17055         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
17056         normal element in sum instead of special-casing based on values of
17057         arguments.
17058         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
17059         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
17060         -1 as normal element in sum instead of special-casing based on
17061         values of arguments.
17062         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
17063         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
17064         (__x2y2m1): Update comment.
17065         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
17066         as normal element in sum instead of special-casing based on values
17067         of arguments.
17068         * math/s_clog.c (__clog): Handle more cases using log1p without
17069         hypot.
17070         * math/s_clog10.c (__clog10): Likewise.
17071         * math/s_clog10f.c (__clog10f): Likewise.
17072         * math/s_clog10l.c (__clog10l): Likewise.
17073         * math/s_clogf.c (__clogf): Likewise.
17074         * math/s_clogl.c (__clogl): Likewise.
17075         * math/auto-libm-test-in: Add more tests of clog and clog10.
17076         * math/auto-libm-test-out: Regenerated.
17077         * sysdeps/i386/fpu/libm-test-ulps: Update.
17078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17079
17080 2015-09-28  Martin Sebor  <msebor@redhat.com>
17081
17082         [BZ #18969]
17083         * string/Makefile (LOCALES): Define.
17084         (gen-locales.mk): Include.
17085         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
17086         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
17087         * string/tst-strxfrm2.c (do_test): Print the name of the locale
17088         on setlocale failure.
17089
17090 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
17091
17092         [BZ #18985]
17093         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
17094         (__strftime_internal): Likewise.
17095         * time/tst-strftime.c (do_bz18985): New test.
17096         (do_test): Call it.
17097
17098 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
17099
17100         [BZ #18956]
17101         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
17102         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
17103         extracting high part.
17104         * math/auto-libm-test-in: Add another test of pow.
17105         * math/auto-libm-test-out: Regenerated.
17106         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17107
17108 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17109
17110         [BZ #18825]
17111         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
17112         New macro.
17113         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
17114         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17115         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
17116         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
17117         DBL_NARROW_EVAL, reloading the PIC register as needed.
17118         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
17119         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
17120         FLT_NARROW_EVAL.  Use separate return path for case when first
17121         argument is NaN.
17122         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
17123         DEFINE_LDBL_MIN.
17124         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
17125         PIC register.
17126         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
17127         math_check_force_underflow_nonneg.
17128         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
17129         underflow for subnormal result.
17130         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17131         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
17132         math_check_force_underflow_nonneg.
17133         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
17134         math_check_force_underflow.
17135         * sysdeps/x86_64/fpu/x86_64-math-asm.h
17136         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
17137         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
17138         DEFINE_LDBL_MIN.
17139         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
17140         * math/auto-libm-test-in: Add more tests of pow.
17141         * math/auto-libm-test-out: Regenerated.
17142
17143 2015-09-25  Florian Weimer  <fweimer@redhat.com>
17144
17145         * nss/bug17079.c (init_test_items): Add diagnostic for
17146         inconsistent entries.
17147         (test_buffer_size): Skip inconsistent entries.
17148
17149 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17150
17151         [BZ #13304]
17152         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
17153         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17154         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
17155
17156         [BZ #13304]
17157         * sysdeps/microblaze/s_fma.c: New file.
17158         * sysdeps/microblaze/s_fmaf.c: Likewise.
17159         * sysdeps/microblaze/sfp-machine.h: Likewise.
17160
17161 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
17162
17163         [BZ #17250]
17164         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
17165         member.
17166
17167 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17168
17169         [BZ #18803]
17170         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
17171         (MO): New macro.
17172         (__ieee754_hypot) [PIC]: Load PIC register.
17173         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
17174         DBL_NARROW_EVAL.
17175         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
17176         math_check_force_underflow_nonneg in case where result might be
17177         tiny.
17178         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
17179         Likewise.
17180         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
17181         Likewise.
17182         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17183         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17184         * math/auto-libm-test-in: Add more tests of hypot.
17185         * math/auto-libm-test-out: Regenerated.
17186
17187 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
17188
17189         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
17190
17191 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17192
17193         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
17194         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
17195         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17196         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17197         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
17198         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17199         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17200
17201         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
17202         LOAD_PIC_REG.
17203
17204         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
17205         (FLT_CHECK_FORCE_UFLOW): Likewise.
17206         (DBL_CHECK_FORCE_UFLOW): Likewise.
17207         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
17208         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
17209         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
17210         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17211         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17212         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17213         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17214         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17215         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
17216         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17217         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
17218         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
17219         (flt_min): Replace with use of DEFINE_FLT_MIN.
17220         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
17221         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
17222         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17223         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
17224         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
17225         (flt_min): Replace with use of DEFINE_FLT_MIN.
17226         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
17227         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
17228         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17229         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
17230         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
17231         (flt_min): Replace with use of DEFINE_FLT_MIN.
17232         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
17233         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
17234         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17235         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17236         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
17237         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17238         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17239         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
17240         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17241         (__atan): Use DBL_CHECK_FORCE_UFLOW.
17242         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
17243         (flt_min): Replace with use of DEFINE_FLT_MIN.
17244         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
17245         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
17246         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17247         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
17248         main computation.
17249         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
17250         (flt_min): Replace with use of DEFINE_FLT_MIN.
17251         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
17252         main computation.
17253         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
17254         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17255         (MO): New macro.
17256         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
17257         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
17258         (flt_min): Replace with use of DEFINE_FLT_MIN.
17259         (MO): New macro.
17260         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
17261         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
17262         (__log1pl): Use MO.
17263
17264         [BZ #19003]
17265         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
17266         $(config-cflags-nofma).
17267
17268 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17269
17270         * sysdeps/aarch64/libm-test-ulps: Regenerated.
17271
17272 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
17273
17274         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
17275         (TWO127): Likewise.
17276
17277         * sysdeps/generic/math_private.h (fabs_tg): New macro.
17278         (min_of_type): Likewise.
17279         (math_check_force_underflow): Likewise.
17280         (math_check_force_underflow_nonneg): Likewise.
17281         (math_check_force_underflow_complex): Likewise.
17282         * math/e_exp2l.c (__ieee754_exp2l): Use
17283         math_check_force_underflow_nonneg.
17284         * math/k_casinh.c (__kernel_casinh): Likewise.
17285         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17286         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17287         * math/s_catan.c (__catan): Use
17288         math_check_force_underflow_complex.
17289         * math/s_catanf.c (__catanf): Likewise.
17290         * math/s_catanh.c (__catanh): Likewise.
17291         * math/s_catanhf.c (__catanhf): Likewise.
17292         * math/s_catanhl.c (__catanhl): Likewise.
17293         * math/s_catanl.c (__catanl): Likewise.
17294         * math/s_ccosh.c (__ccosh): Likewise.
17295         * math/s_ccoshf.c (__ccoshf): Likewise.
17296         * math/s_ccoshl.c (__ccoshl): Likewise.
17297         * math/s_cexp.c (__cexp): Likewise.
17298         * math/s_cexpf.c (__cexpf): Likewise.
17299         * math/s_cexpl.c (__cexpl): Likewise.
17300         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
17301         * math/s_clog10.c (__clog10): Likewise.
17302         * math/s_clog10f.c (__clog10f): Likewise.
17303         * math/s_clog10l.c (__clog10l): Likewise.
17304         * math/s_clogf.c (__clogf): Likewise.
17305         * math/s_clogl.c (__clogl): Likewise.
17306         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
17307         * math/s_csinf.c (__csinf): Likewise.
17308         * math/s_csinh.c (__csinh): Likewise.
17309         * math/s_csinhf.c (__csinhf): Likewise.
17310         * math/s_csinhl.c (__csinhl): Likewise.
17311         * math/s_csinl.c (__csinl): Likewise.
17312         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
17313         * math/s_csqrtf.c (__csqrtf): Likewise.
17314         * math/s_csqrtl.c (__csqrtl): Likewise.
17315         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
17316         * math/s_ctanf.c (__ctanf): Likewise.
17317         * math/s_ctanh.c (__ctanh): Likewise.
17318         * math/s_ctanhf.c (__ctanhf): Likewise.
17319         * math/s_ctanhl.c (__ctanhl): Likewise.
17320         * math/s_ctanl.c (__ctanl): Likewise.
17321         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
17322         instead of volatile.
17323         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
17324         math_check_force_underflow.
17325         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
17326         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
17327         volatile when forcing underflow.
17328         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
17329         math_check_force_underflow_nonneg.
17330         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
17331         Likewise.
17332         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
17333         math_check_force_underflow.
17334         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17335         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17336         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17337         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
17338         math_check_force_underflow_nonneg.
17339         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
17340         math_check_force_underflow.
17341         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
17342         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
17343         instead of volatile.
17344         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
17345         math_check_force_underflow.
17346         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
17347         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
17348         math_check_force_underflow_nonneg.
17349         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
17350         math_check_force_underflow.
17351         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17352         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
17353         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
17354         math_check_force_underflow_nonneg.
17355         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
17356         Likewise.
17357         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
17358         math_check_force_underflow.
17359         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
17360         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17361         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
17362         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
17363         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17364         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
17365         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
17366         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
17367         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
17368         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
17369         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17370         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
17371         Likewise.
17372         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
17373         math_check_force_underflow_nonneg.
17374         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
17375         Likewise.
17376         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
17377         math_check_force_underflow.
17378         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17379         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
17380         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17381         Likewise.
17382         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
17383         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
17384         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
17385         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
17386         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
17387         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
17388         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
17389         instead of volatile.
17390         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
17391         math_check_force_underflow.
17392         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
17393         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
17394         math_check_force_underflow.
17395         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
17396         Likewise.
17397         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
17398         Use math_check_force_underflow_nonneg.
17399         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
17400         math_check_force_underflow.
17401         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
17402         Likewise.
17403         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17404         Likewise.
17405         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17406         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
17407         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
17408         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
17409         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
17410         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
17411         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17412         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
17413         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
17414         math_check_force_underflow_nonneg.
17415         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
17416         math_check_force_underflow.
17417         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17418         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
17419         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
17420         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
17421         math_check_force_underflow_nonneg.
17422         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
17423         math_check_force_underflow.
17424         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
17425         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
17426         instead of volatile.
17427         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
17428         math_check_force_underflow.
17429
17430         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
17431         * stdlib/strtod_l.c: Include <math_private.h>.
17432         (overflow_value): Use math_narrow_eval.
17433         (underflow_value): Likewise.
17434         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17435         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17436         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17437         (__ieee754_gamma_r): Likewise.
17438         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
17439         Likewise.
17440         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
17441         Likewise.
17442         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
17443         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
17444         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
17445         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
17446         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17447         (__ieee754_gammaf_r): Likewise.
17448         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17449         Likewise.
17450         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
17451         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
17452         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
17453         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
17454         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
17455         volatile.
17456         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
17457         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
17458         math_narrow_eval.
17459         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17460         Likewise.
17461         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17462         Likewise.
17463         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
17464         Likewise.
17465         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
17466         volatile.
17467         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
17468         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
17469         math_narrow_eval.
17470         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17471         Likewise.
17472         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17473         Likewise.
17474
17475 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
17476
17477         * nptl/Versions: Remove ignored symbols.
17478
17479 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17480
17481         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
17482         * nss/Makefile (tests): Update.
17483
17484 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17485
17486         * nss/bug18287.c: New file.
17487         * nss/Makefile (tests): Add bug18287.
17488
17489 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17490
17491         * mach/Versions (__mach_host_self_): Add symbol.
17492
17493 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17494
17495         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
17496         vm_page_size.
17497
17498 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17499
17500         Really fix sysdeps/i386/fpu/s_scalbn.S build
17501
17502         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
17503         (libc: GLIBC_2_22): Remove unused version set.
17504
17505 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17506
17507         * config.make.in (enable-timezone-tools): New variable.
17508         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
17509         (enable_timezone_tools): Export to generated files.
17510         * configure: Regenerate.
17511         * INSTALL: Regenerate.
17512         * manual/install.texi (--disable-timezone-tools): Document new flag.
17513         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
17514         ifeq ($(enable-timezone-tools),yes) check.
17515
17516 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17517
17518         * timezone/Makefile: Revert previous change.
17519
17520         [BZ #18980]
17521         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
17522         (DEFINE_DBL_MIN): Likewise.
17523         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17524         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17525         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17526         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17527         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
17528         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17529         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17530         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
17531         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
17532         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17533         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17534         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
17535         (flt_min): Replace with use of DEFINE_FLT_MIN.
17536         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17537         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
17538         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17539         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17540         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
17541         (flt_min): Replace with use of DEFINE_FLT_MIN.
17542         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17543         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
17544         (flt_min): Replace with use of DEFINE_FLT_MIN.
17545         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17546         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
17547         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
17548         (__ieee754_hypot): Use DBL_NARROW_EVAL.
17549         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
17550         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
17551         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
17552         (__ieee754_pow): Use DBL_NARROW_EVAL.
17553         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
17554         (__ieee754_powf): Use FLT_NARROW_EVAL.
17555         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
17556         (__ieee754_expf_sse2): Convert double-precision result to single
17557         precision.
17558         * sysdeps/i386/fpu/libm-test-ulps: Update.
17559
17560 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17561
17562         * timezone/Makefile: Ignore unused variable errors due to private.h
17563         (time_t_min) and (time_t_max).
17564         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
17565         Likewise.
17566
17567 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17568
17569         [BZ #18981]
17570         * sysdeps/i386/fpu/i386-math-asm.h: New file.
17571         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
17572         (__ieee754_scalb): Use DBL_NARROW_EVAL.
17573         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
17574         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
17575         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
17576         (__scalbn): Use DBL_NARROW_EVAL.
17577         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
17578         (__scalbnf): Use FLT_NARROW_EVAL.
17579
17580 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17581
17582         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
17583         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
17584         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
17585         * stdio-common/printf_fp.c (___printf_fp):
17586         Use signbit to get the sign. Use isinf macro to allow inlining.
17587         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
17588         * stdio-common/printf_size.c (__printf_size): Likewise.
17589
17590 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17591
17592         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
17593
17594 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17595
17596         [BZ #18980]
17597         * sysdeps/generic/math_private.h: Include <float.h>.
17598         (math_narrow_eval): New macro.
17599         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17600         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
17601         math_narrow_eval on overflowing return value.
17602         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
17603         Likewise.
17604         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17605         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
17606         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
17607         Likewise.
17608         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17609
17610 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17611
17612         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
17613         * math/Makefile: Remove isinf_ns.c.
17614         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
17615         * math/multc3.c (__multc3): Likewise.
17616         * math/s_casin.c (__casin): Likewise.
17617         * math/s_casinf.c (__casinf): Likewise.
17618         * math/s_casinl.c (__casinl): Likewise.
17619         * math/s_cproj.c (__cproj): Likewise.
17620         * math/s_cprojf.c (__cprojf): Likewise.
17621         * math/s_cprojl.c (__cprofl): Likewise.
17622         * math/s_ctan.c (__ctan): Likewise.
17623         * math/s_ctanf.c (__ctanf): Likewise.
17624         * math/s_ctanh.c (__ctanh): Likewise.
17625         * math/s_ctanhf.c (__ctanhf): Likewise.
17626         * math/s_ctanhl.c (__ctanhl): Likewise.
17627         * math/s_ctanl.c (__ctanl): Likewise.
17628         * math/w_fmod.c (__fmod): Likewise.
17629         * math/w_fmodf.c (__fmodf): Likewise.
17630         * math/w_fmodl.c (_fmodl): Likewise.
17631         * math/w_remainder.c (__remainder): Likewise.
17632         * math/w_remainderf.c (__remainderf): Likewise.
17633         * math/w_remainderl.c (__remainderl): Likewise.
17634         * math/w_scalb.c (__scalb): Likewise.
17635         * math/w_scalbf.c (__scalbf): Likewise.
17636         * math/w_scalbl.c (__scalbl): Likewise.
17637         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
17638         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
17639         with isinf.
17640         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
17641         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
17642         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
17643         __isinf_nsf with isinf.
17644         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
17645         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
17646         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
17647         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
17648         with isinf.
17649         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
17650         __isinf_nsl with isinf.
17651         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
17652         with isinf.
17653         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
17654         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
17655         __isinf_nsl with isinf.
17656         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
17657         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
17658         with isinf.
17659
17660 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17661
17662         * resolv/base64.c (rcsid): Remove unused static.
17663         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
17664         static.  (tqpi1): Likewise.
17665         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
17666         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
17667         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
17668         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
17669         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
17670         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
17671         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
17672         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
17673         Likewise.
17674
17675 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
17676
17677         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
17678         <nptl/pthreadP.h>.
17679         (_longjmp_unwind): Use __libc_ptf_call.
17680         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
17681
17682 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
17683
17684         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
17685         * sysdeps/arm/__longjmp.S: Likewise.
17686
17687 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17688
17689         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
17690         Use __builtin_signbit.
17691         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
17692         Use __builtin_signbitf.
17693         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
17694         Use __builtin_signbitl.
17695         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
17696         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
17697
17698 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17699
17700         [BZ #15367]
17701         [BZ #17441]
17702
17703         * math/Makefile: Build test-snan.c with -fsignaling-nans.
17704         * math/math.h (fpclassify): Use __builtin_fpclassify when
17705         available.  (signbit): Use __builtin_signbit(f/l).
17706         (isfinite): Use__builtin_isfinite.  (isnormal): Use
17707         __builtin_isnormal.  (isnan): Use __builtin_isnan.
17708         (isinf): Use __builtin_isinf_sign.
17709
17710 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17711
17712         * benchtests/Makefile: Add bench-math-inlines, link with libm.
17713         * benchtests/bench-math-inlines.c: New benchmark.
17714         * benchtests/bench-util.h: New file.
17715         * benchtests/bench-util.c: New file.
17716         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
17717
17718 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
17719
17720         * elf/tst-dlmopen1.c: Define TEST_SO.
17721         (do_test): Use TEST_SO.
17722
17723         * elf/dl-load.c: Include libc-internal.h.
17724         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
17725
17726 2015-09-18  Vincent Bernat  <vincent@bernat.im>
17727
17728         [BZ #17887]
17729         * time/strptime_l.c (__strptime_internal): Make %z accept
17730         [+-]HH:MM time zones.
17731
17732 2015-09-18  Vincent Bernat  <vincent@bernat.im>
17733
17734         [BZ #17886]
17735         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
17736         valid time zone.
17737
17738 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
17739
17740         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
17741         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
17742         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
17743         (__ASSUME_FDATASYNC): Delete.
17744
17745 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
17746
17747         * conform/linknamespace.pl: Require weak undefined symbols to be
17748         in the standard namespace.
17749         (%strong_syms): Rename to %seen_syms.
17750         (%strong_seen): Rename to %seen_where.
17751
17752 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
17753
17754         [BZ #18970]
17755         * misc/error.c (error): Replace pthread_setcancelstate with
17756         __pthread_setcancelstate.
17757         (error_at_line): Likewise.
17758         * posix/wordexp.c (parse_comm): Likewise.
17759         * stdlib/fmtmsg.c (fmtmsg): Likewise.
17760         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
17761         (__pthread_setcancelstate): This.
17762         (pthread_setcancelstate): Add an alias.
17763         * nptl/nptl-init.c (pthread_functions): Replace
17764         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
17765         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
17766         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
17767         hidden_proto.
17768         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
17769         it with hidden_def.
17770         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
17771         (pthread_setcancelstate): Renamed to ...
17772         (__pthread_setcancelstate): This.
17773         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
17774         __libc_ptf_call with __pthread_setcancelstate.
17775
17776 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
17777             Andreas Schwab  <schwab@suse.de>
17778
17779         [BZ #17118]
17780         * math/s_ctan.c (__ctan): Determine sign of zero real part of
17781         result when imaginary part of argument is infinite using sine and
17782         cosine.
17783         * math/s_ctanf.c (__ctanf): Likewise.
17784         * math/s_ctanl.c (__ctanl): Likewise.
17785         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
17786         of result when real part of argument is infinite using sine and
17787         cosine.
17788         * math/s_ctanhf.c (__ctanhf): Likewise.
17789         * math/s_ctanhl.c (__ctanhl): Likewise.
17790         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
17791         (ctanh_test_data): Add more tests of ctanh.
17792
17793 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
17794
17795         [BZ #15384]
17796         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
17797         bit-mask as in subtraction.
17798         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
17799         Likewise.
17800         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
17801         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
17802         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
17803
17804         [BZ #18951]
17805         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
17806         underflow exception for small results.
17807         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
17808         Likewise.
17809         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
17810         Likewise.
17811         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
17812         Likewise.
17813         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
17814         Likewise.
17815         * math/auto-libm-test-in: Add more tests of tgamma.
17816         * math/auto-libm-test-out: Regenerated.
17817
17818 2015-09-17  Andreas Schwab  <schwab@suse.de>
17819
17820         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
17821
17822 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
17823
17824         [BZ #18977]
17825         * math/bits/mathcalls.h
17826         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
17827         not declare.
17828         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
17829         Likewise.
17830         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
17831         Likewise.
17832         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
17833         Likewise.
17834         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
17835         Likewise.
17836         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
17837         Likewise.
17838         * conform/data/math.h-data
17839         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
17840         function.
17841         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
17842         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
17843         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
17844         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
17845         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
17846         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
17847         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
17848         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
17849         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
17850         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
17851         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
17852
17853         [BZ #6803]
17854         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
17855         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
17856         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
17857         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
17858         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
17859         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
17860         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
17861         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
17862         [NO_LONG_DOUBLE] (scalbnl): Likewise.
17863         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
17864         Likewise.
17865         [NO_LONG_DOUBLE] (scalbnl): Likewise.
17866         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
17867         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
17868         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
17869         long_double_symbol calls.
17870         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
17871         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
17872         strong alias of __ldexpl.
17873         (scalbnl): Define using long_double_symbol.
17874         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
17875         Remove alias.
17876         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
17877         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
17878         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
17879         (scalbln_test_data): Add more errno expectations.
17880
17881 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
17882
17883         Cache the host port like we cache the task port.  This way we do not
17884         need to call the kernel just to get the port.  Furthermore, we no
17885         longer increase the reference count on every invocation of
17886         `mach_host_self'.
17887
17888         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
17889         Protect declarations against the macro expansion.
17890         * mach/mach_init.c (__mach_host_self_): New variable.
17891         (mach_init): Initialize `__mach_host_self_'.
17892         * mach/mach_init.h (__mach_host_self_): New declaration.
17893         (__mach_host_self, mach_host_self): New macros.
17894         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
17895         Release reference.
17896
17897 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
17898
17899         [BZ #4404]
17900         * po/de.po: Update from Translation Project.
17901
17902         [BZ #16415]
17903         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
17904         (__expm1l): Remove code to handle positive infinity and overflow.
17905         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
17906         variable.
17907         (__expm1l): Remove code to handle positive infinity and overflow.
17908
17909 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17910             Paul Pluzhnikov  <ppluzhnikov@google.com>
17911
17912         [BZ #18872]
17913         * stdio-common/Makefile (tst-printf-bz18872): New test.
17914         (tst-printf-bz18872-mem.out): Likewise.
17915         * stdio-common/tst-printf-bz18872.sh: Generate new test.
17916         * stdio-common/vfprintf.c: Fix memory leaks.
17917
17918 2015-09-16  Andreas Schwab  <schwab@suse.de>
17919
17920         [BZ #17244]
17921         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
17922         Remove extra va_start/va_end calls.
17923
17924         [BZ #17243]
17925         * posix/execl.c (execl): Add missing va_end.
17926         * posix/execle.c (execle): Likewise.
17927         * posix/execlp.c (execlp): Likewise.
17928
17929 2015-09-15  Roland McGrath  <roland@hack.frob.com>
17930
17931         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
17932         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
17933
17934 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
17935
17936         [BZ #18967]
17937         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
17938         undefine around includes of <bits/mathcalls.h>.
17939         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
17940         not declare function.
17941         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
17942         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
17943         (scalb): Likewise.
17944         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
17945         not define macro.
17946         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
17947         variable.
17948         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
17949         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
17950         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
17951
17952         [BZ #18857]
17953         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
17954         return non-finite argument without doing ordered comparisons on
17955         it.
17956
17957         [BZ #16296]
17958         * math/fenv.h (fegetround): Use __attribute_pure__.
17959         * include/fenv.h (__fegetround): Likewise.
17960
17961         [BZ #18595]
17962         * math/s_ctan.c (__ctan): Force underflow exception for results
17963         whose real or imaginary part has small absolute value.
17964         * math/s_ctanf.c (__ctanf): Likewise.
17965         * math/s_ctanh.c (__ctanh): Likewise.
17966         * math/s_ctanhf.c (__ctanhf): Likewise.
17967         * math/s_ctanhl.c (__ctanhl): Likewise.
17968         * math/s_ctanl.c (__ctanl): Likewise.
17969         * math/auto-libm-test-in: Do not allow missing underflow for ctan
17970         and ctanh.  Add more tests of ctan and ctanh.
17971
17972         [BZ #15918]
17973         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
17974         handling of cases where one argument is an infinity.
17975
17976         [BZ #18875]
17977         [BZ #18966]
17978         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
17979         (MO): New macro.
17980         (__ieee754_exp10): For small results, force underflow exception
17981         and remove excess range and precision from return value.
17982         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
17983         (MO): New macro.
17984         (__ieee754_exp10f): For small results, force underflow exception
17985         and remove excess range and precision from return value.
17986         * math/auto-libm-test-in: Add more tests of exp10.
17987         * math/auto-libm-test-out: Regenerated.
17988
17989 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
17990
17991         [BZ #18875]
17992         [BZ #18961]
17993         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
17994         (MO): New macro.
17995         (__ieee754_exp): For small results, force underflow exception and
17996         remove excess range and precision from return value.
17997         (__exp_finite): Likewise.
17998         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
17999         (MO): New macro.
18000         (__ieee754_expf): For small results, force underflow exception and
18001         remove excess range and precision from return value.
18002         (__expf_finite): Likewise.
18003         * math/auto-libm-test-in: Add more tests of exp.
18004         * math/auto-libm-test-out: Regenerated.
18005
18006         [BZ #16521]
18007         [BZ #18875]
18008         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
18009         small results.
18010         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
18011         (MO): New macro.
18012         (__ieee754_exp2): For small results, force underflow exception and
18013         remove excess range and precision from return value.
18014         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
18015         (MO): New macro.
18016         (__ieee754_exp2f): For small results, force underflow exception
18017         and remove excess range and precision from return value.
18018         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
18019         (MO): New macro.
18020         (__ieee754_exp2l): Force underflow exception for small results.
18021         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
18022         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
18023         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
18024         (MO): New macro.
18025         (__ieee754_exp2l): Force underflow exception for small results.
18026         * math/auto-libm-test-in: Add more tests or exp2.
18027         * math/auto-libm-test-out: Regenerated.
18028
18029 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
18030
18031         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
18032
18033         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
18034         /dev/null.
18035
18036 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18037
18038         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18039         io fs process)): Drop spurious backslash.
18040
18041 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
18042
18043         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
18044         Use sysinfo system call instead of parsing /proc/meminfo.
18045         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
18046         Likewise.
18047
18048 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
18049
18050         [BZ #16985]
18051         * programs/localedef.c (main): Display argv[remaining] when
18052         output_path is NULL.
18053
18054 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18055
18056         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
18057         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
18058         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
18059         tanh.
18060         * math/auto-libm-test-out: Regenerated.
18061         * sysdeps/i386/fpu/libm-test-ulps: Update.
18062         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18063         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18065
18066 2015-09-11  Roland McGrath  <roland@hack.frob.com>
18067
18068         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
18069         Use 'override' keyword to freeze the value here, preventing
18070         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
18071
18072 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18073
18074         [BZ #14912]
18075         * sysdeps/aarch64/bits/atomic.h: Move to ...
18076         * sysdeps/aarch64/atomic-machine.h: ...here.
18077         (_AARCH64_BITS_ATOMIC_H): Rename macro to
18078         _AARCH64_ATOMIC_MACHINE_H.
18079         * sysdeps/alpha/bits/atomic.h: Move to ...
18080         * sysdeps/alpha/atomic-machine.h: ...here.
18081         * sysdeps/arm/bits/atomic.h: Move to ...
18082         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
18083         * bits/atomic.h: Move to ...
18084         * sysdeps/generic/atomic-machine.h: ...here.
18085         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18086         * sysdeps/i386/bits/atomic.h: Move to ...
18087         * sysdeps/i386/atomic-machine.h: ...here.
18088         * sysdeps/ia64/bits/atomic.h: Move to ...
18089         * sysdeps/ia64/atomic-machine.h: ...here.
18090         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
18091         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
18092         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18093         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
18094         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
18095         * sysdeps/microblaze/bits/atomic.h: Move to ...
18096         * sysdeps/microblaze/atomic-machine.h: ...here.
18097         * sysdeps/mips/bits/atomic.h: Move to ...
18098         * sysdeps/mips/atomic-machine.h: ...here.
18099         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
18100         * sysdeps/powerpc/bits/atomic.h: Move to ...
18101         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
18102         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
18103         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
18104         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
18105         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
18106         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
18107         <atomic-machine.h> instead of <bits/atomic.h>.
18108         * sysdeps/s390/bits/atomic.h: Move to ...
18109         * sysdeps/s390/atomic-machine.h: ...here.
18110         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
18111         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
18112         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18113         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
18114         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
18115         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
18116         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
18117         * sysdeps/tile/bits/atomic.h: Move to ...
18118         * sysdeps/tile/atomic-machine.h: ...here.
18119         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
18120         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
18121         <sysdeps/tile/atomic-machine.h> instead of
18122         <sysdeps/tile/bits/atomic.h>.
18123         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18124         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
18125         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
18126         <sysdeps/tile/atomic-machine.h> instead of
18127         <sysdeps/tile/bits/atomic.h>.
18128         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18129         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
18130         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
18131         <sysdeps/arm/atomic-machine.h> instead of
18132         <sysdeps/arm/bits/atomic.h>.
18133         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
18134         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
18135         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18136         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
18137         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
18138         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18139         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
18140         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
18141         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
18142         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
18143         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
18144         * sysdeps/x86_64/bits/atomic.h: Move to ...
18145         * sysdeps/x86_64/atomic-machine.h: ...here.
18146         * include/atomic.h: Include <atomic-machine.h> instead of
18147         <bits/atomic.h>.
18148
18149         * sysdeps/mips/mips32/libm-test-ulps: Update.
18150         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18151
18152         [BZ #18952]
18153         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
18154         not convert non-integer negative arguments to int to determine the
18155         value of signgam.
18156         * math/auto-libm-test-in: Add more tests of lgamma.
18157         * math/auto-libm-test-out: Regenerated.
18158
18159         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
18160         cosh, csqrt, erfc, expm1 and lgamma.
18161         * math/auto-libm-test-out: Regenerated.
18162         * sysdeps/i386/fpu/libm-test-ulps: Update.
18163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18164
18165 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
18166
18167         [BZ #2542]
18168         [BZ #2543]
18169         [BZ #2558]
18170         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
18171         __lgamma_neg for arguments from -28.0 to -2.0.
18172         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
18173         __lgamma_negf for arguments from -15.0 to -2.0.
18174         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
18175         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
18176         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
18177         Call __lgamma_negl for arguments from -33.0 to -2.0.
18178         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
18179         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
18180         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18181         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
18182         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
18183         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
18184         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
18185         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
18186         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
18187         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
18188         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
18189         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
18190         (__lgamma_neg): Likewise.
18191         (__lgamma_negl): Likewise.
18192         (__lgamma_product): Likewise.
18193         (__lgamma_productl): Likewise.
18194         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
18195         * math/auto-libm-test-in: Add more tests of lgamma.
18196         * math/auto-libm-test-out: Regenerated.
18197         * sysdeps/i386/fpu/libm-test-ulps: Update.
18198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18199
18200 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
18201
18202         [BZ #18675]
18203         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
18204
18205 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
18206
18207         [BZ #14912]
18208         * bits/libc-lock.h: Move to ...
18209         * sysdeps/generic/libc-lock.h: ...here.
18210         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18211         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
18212         * sysdeps/mach/hurd/libc-lock.h: ...here.
18213         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18214         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
18215         * sysdeps/mach/bits/libc-lock.h: Move to ...
18216         * sysdeps/mach/libc-lock.h: ...here.
18217         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18218         * sysdeps/nptl/bits/libc-lock.h: Move to ...
18219         * sysdeps/nptl/libc-lock.h: ...here.
18220         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18221         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
18222         * sysdeps/nptl/libc-lockP.h: ...here.
18223         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
18224         * crypt/crypt_util.c: Include <libc-lock.h> instead of
18225         <bits/libc-lock.h>.
18226         * dirent/scandir-tail.c: Likewise.
18227         * dlfcn/dlerror.c: Likewise.
18228         * elf/dl-close.c: Likewise.
18229         * elf/dl-iteratephdr.c: Likewise.
18230         * elf/dl-lookup.c: Likewise.
18231         * elf/dl-open.c: Likewise.
18232         * elf/dl-support.c: Likewise.
18233         * elf/dl-writev.h: Likewise.
18234         * elf/rtld.c: Likewise.
18235         * grp/fgetgrent.c: Likewise.
18236         * gshadow/fgetsgent.c: Likewise.
18237         * gshadow/sgetsgent.c: Likewise.
18238         * iconv/gconv_conf.c: Likewise.
18239         * iconv/gconv_db.c: Likewise.
18240         * iconv/gconv_dl.c: Likewise.
18241         * iconv/gconv_int.h: Likewise.
18242         * iconv/gconv_trans.c: Likewise.
18243         * include/link.h: Likewise.
18244         * inet/getnameinfo.c: Likewise.
18245         * inet/getnetgrent.c: Likewise.
18246         * inet/getnetgrent_r.c: Likewise.
18247         * intl/bindtextdom.c: Likewise.
18248         * intl/dcigettext.c: Likewise.
18249         * intl/finddomain.c: Likewise.
18250         * intl/gettextP.h: Likewise.
18251         * intl/loadmsgcat.c: Likewise.
18252         * intl/localealias.c: Likewise.
18253         * intl/textdomain.c: Likewise.
18254         * libidn/idn-stub.c: Likewise.
18255         * libio/libioP.h: Likewise.
18256         * locale/duplocale.c: Likewise.
18257         * locale/freelocale.c: Likewise.
18258         * locale/newlocale.c: Likewise.
18259         * locale/setlocale.c: Likewise.
18260         * login/getutent_r.c: Likewise.
18261         * login/getutid_r.c: Likewise.
18262         * login/getutline_r.c: Likewise.
18263         * login/utmp-private.h: Likewise.
18264         * login/utmpname.c: Likewise.
18265         * malloc/mtrace.c: Likewise.
18266         * misc/efgcvt.c: Likewise.
18267         * misc/error.c: Likewise.
18268         * misc/fstab.c: Likewise.
18269         * misc/getpass.c: Likewise.
18270         * misc/mntent.c: Likewise.
18271         * misc/syslog.c: Likewise.
18272         * nis/nis_call.c: Likewise.
18273         * nis/nis_callback.c: Likewise.
18274         * nis/nss-default.c: Likewise.
18275         * nis/nss_compat/compat-grp.c: Likewise.
18276         * nis/nss_compat/compat-initgroups.c: Likewise.
18277         * nis/nss_compat/compat-pwd.c: Likewise.
18278         * nis/nss_compat/compat-spwd.c: Likewise.
18279         * nis/nss_nis/nis-alias.c: Likewise.
18280         * nis/nss_nis/nis-ethers.c: Likewise.
18281         * nis/nss_nis/nis-grp.c: Likewise.
18282         * nis/nss_nis/nis-hosts.c: Likewise.
18283         * nis/nss_nis/nis-network.c: Likewise.
18284         * nis/nss_nis/nis-proto.c: Likewise.
18285         * nis/nss_nis/nis-pwd.c: Likewise.
18286         * nis/nss_nis/nis-rpc.c: Likewise.
18287         * nis/nss_nis/nis-service.c: Likewise.
18288         * nis/nss_nis/nis-spwd.c: Likewise.
18289         * nis/nss_nisplus/nisplus-alias.c: Likewise.
18290         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
18291         * nis/nss_nisplus/nisplus-grp.c: Likewise.
18292         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
18293         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
18294         * nis/nss_nisplus/nisplus-network.c: Likewise.
18295         * nis/nss_nisplus/nisplus-proto.c: Likewise.
18296         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
18297         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
18298         * nis/nss_nisplus/nisplus-service.c: Likewise.
18299         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
18300         * nis/ypclnt.c: Likewise.
18301         * nptl/libc_pthread_init.c: Likewise.
18302         * nss/getXXbyYY.c: Likewise.
18303         * nss/getXXent.c: Likewise.
18304         * nss/getXXent_r.c: Likewise.
18305         * nss/nss_db/db-XXX.c: Likewise.
18306         * nss/nss_db/db-netgrp.c: Likewise.
18307         * nss/nss_db/nss_db.h: Likewise.
18308         * nss/nss_files/files-XXX.c: Likewise.
18309         * nss/nss_files/files-alias.c: Likewise.
18310         * nss/nsswitch.c: Likewise.
18311         * posix/regex_internal.h: Likewise.
18312         * posix/wordexp.c: Likewise.
18313         * pwd/fgetpwent.c: Likewise.
18314         * resolv/res_hconf.c: Likewise.
18315         * resolv/res_libc.c: Likewise.
18316         * shadow/fgetspent.c: Likewise.
18317         * shadow/lckpwdf.c: Likewise.
18318         * shadow/sgetspent.c: Likewise.
18319         * socket/opensock.c: Likewise.
18320         * stdio-common/reg-modifier.c: Likewise.
18321         * stdio-common/reg-printf.c: Likewise.
18322         * stdio-common/reg-type.c: Likewise.
18323         * stdio-common/vfprintf.c: Likewise.
18324         * stdio-common/vfscanf.c: Likewise.
18325         * stdlib/abort.c: Likewise.
18326         * stdlib/cxa_atexit.c: Likewise.
18327         * stdlib/fmtmsg.c: Likewise.
18328         * stdlib/random.c: Likewise.
18329         * stdlib/setenv.c: Likewise.
18330         * string/strsignal.c: Likewise.
18331         * sunrpc/auth_none.c: Likewise.
18332         * sunrpc/bindrsvprt.c: Likewise.
18333         * sunrpc/create_xid.c: Likewise.
18334         * sunrpc/key_call.c: Likewise.
18335         * sunrpc/rpc_thread.c: Likewise.
18336         * sysdeps/arm/backtrace.c: Likewise.
18337         * sysdeps/generic/ldsodefs.h: Likewise.
18338         * sysdeps/generic/stdio-lock.h: Likewise.
18339         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
18340         * sysdeps/i386/backtrace.c: Likewise.
18341         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18342         * sysdeps/m68k/backtrace.c: Likewise.
18343         * sysdeps/mach/hurd/cthreads.c: Likewise.
18344         * sysdeps/mach/hurd/dirstream.h: Likewise.
18345         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18346         * sysdeps/nptl/malloc-machine.h: Likewise.
18347         * sysdeps/nptl/stdio-lock.h: Likewise.
18348         * sysdeps/posix/dirstream.h: Likewise.
18349         * sysdeps/posix/getaddrinfo.c: Likewise.
18350         * sysdeps/posix/system.c: Likewise.
18351         * sysdeps/pthread/aio_suspend.c: Likewise.
18352         * sysdeps/s390/s390-32/backtrace.c: Likewise.
18353         * sysdeps/s390/s390-64/backtrace.c: Likewise.
18354         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18355         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
18356         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
18357         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
18358         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
18359         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
18360         * sysdeps/unix/sysv/linux/system.c: Likewise.
18361         * sysdeps/x86_64/backtrace.c: Likewise.
18362         * time/alt_digit.c: Likewise.
18363         * time/era.c: Likewise.
18364         * time/tzset.c: Likewise.
18365         * wcsmbs/wcsmbsload.c: Likewise.
18366         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
18367         instead of <bits/libc-lock.h> in comment.
18368
18369 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
18370
18371         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
18372         Only use .set mips2 if the current ISA is below mips2.
18373         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
18374         Likewise.
18375         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
18376         mips32r2 if the current ISA is below mips32r2.
18377         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
18378         (TLS_IE): Updated to use the TLD_RDHWR macro.
18379         (TLS_LE): Likewise.
18380         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
18381         __ASSEMBLER__ condition.
18382
18383 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18384
18385         Fix parallel build of before-compile targets.
18386
18387         * sysdeps/mach/Makefile ($(patsubst
18388         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
18389         mach-before-compile target.
18390         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18391         io fs process)): Move rule to dedicated hurd-before-compile target.
18392
18393 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18394
18395         Fix rules generating headers in hurd/ and mach/ when initial make call
18396         has subdir= explicitly set.
18397
18398         * sysdeps/mach/Makefile ($(patsubst
18399         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
18400         calling $(MAKE).
18401         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18402         io fs process)): Force subdir to hurd when calling $(MAKE).
18403         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
18404         subdir to mach when calling $(MAKE).
18405
18406 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
18407
18408         Check sysheaders when looking for Mach and Hurd headers
18409
18410         * sysdeps/mach/configure.ac: Add sysheaders check.
18411         * sysdeps/mach/configure: Regenerate.
18412         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
18413         * sysdeps/mach/hurd/configure: Regenerate.
18414
18415 2015-09-04  Roland McGrath  <roland@hack.frob.com>
18416
18417         [BZ #18921]
18418         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
18419         Fix inverted sense of test of 'o_directory_works' value.
18420         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
18421         Bernhard Voelker <mail@bernhard-voelker.de>.
18422
18423 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18424
18425         [BZ #14912]
18426         * bits/linkmap.h: Move to ...
18427         * sysdeps/generic/linkmap.h: ...here.
18428         * sysdeps/aarch64/bits/linkmap.h: Move to ...
18429         * sysdeps/aarch64/linkmap.h: ...here.
18430         * sysdeps/arm/bits/linkmap.h: Move to ...
18431         * sysdeps/arm/linkmap.h: ...here.
18432         * sysdeps/hppa/bits/linkmap.h: Move to ...
18433         * sysdeps/hppa/linkmap.h: ...here.
18434         * sysdeps/ia64/bits/linkmap.h: Move to ...
18435         * sysdeps/ia64/linkmap.h: ...here.
18436         * sysdeps/mips/bits/linkmap.h: Move to ...
18437         * sysdeps/mips/linkmap.h: ...here.
18438         * sysdeps/s390/bits/linkmap.h: Move to ...
18439         * sysdeps/s390/linkmap.h: ...here.
18440         * sysdeps/sh/bits/linkmap.h: Move to ...
18441         * sysdeps/sh/linkmap.h: ...here.
18442         * sysdeps/x86/bits/linkmap.h: Move to ...
18443         * sysdeps/x86/linkmap.h: ...here.
18444         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
18445
18446 2015-09-04  Andreas Schwab  <schwab@suse.de>
18447
18448         [BZ #18635]
18449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
18450         (__makecontext): Terminate FDE before return label.
18451         (__novec_makecontext): Likewise.
18452
18453 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18454
18455         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
18456         first member of struct sv in syscall macro.
18457
18458 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18459
18460         [BZ #14912]
18461         * bits/stdio-lock.h: Move to ...
18462         * sysdeps/generic/stdio-lock.h: ...here.
18463         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18464         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
18465         * sysdeps/nptl/stdio-lock.h: ...here.
18466         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18467         * include/libio.h: Include <stdio-lock.h> instead of
18468         <bits/stdio-lock.h>.
18469         * sysdeps/nptl/fork.c: Likewise.
18470         * sysdeps/pthread/flockfile.c: Likewise.
18471         * sysdeps/pthread/ftrylockfile.c: Likewise.
18472         * sysdeps/pthread/funlockfile.c: Likewise.
18473
18474         [BZ #14912]
18475         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
18476         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
18477         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
18478         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
18479         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
18480         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
18481         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
18482
18483 2015-09-03  Roland McGrath  <roland@hack.frob.com>
18484
18485         * elf/Makefile (test-xfail-tst-protected1a): New variable.
18486         (test-xfail-tst-protected1b): New variable.
18487
18488 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
18489
18490         [BZ #14912]
18491         * bits/libc-tsd.h: Move to ...
18492         * sysdeps/generic/libc-tsd.h: ...here.
18493         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
18494         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
18495         * sysdeps/mach/hurd/libc-tsd.h: ...here.
18496         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
18497         * include/ctype.h: Include <libc-tsd.h> instead of
18498         <bits/libc-tsd.h>.
18499         * include/rpc/rpc.h: Likewise.
18500         * locale/localeinfo.h: Likewise.
18501         * sunrpc/rpc_thread.c: Likewise.
18502         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18503         * sysdeps/nptl/malloc-machine.h: Likewise.
18504
18505         * Makefile (headers): Remove bits/libc-lock.h.
18506         * libio/Makefile (headers): Remove bits/stdio-lock.h.
18507
18508         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
18509         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
18510         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
18511         <bits/stdio-lock.h>.
18512         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
18513         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
18514
18515 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18516
18517         [BZ #18757]
18518         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
18519         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
18520         BZ #18757.
18521
18522 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18523
18524         * malloc/mtrace.pl: Filter out NULL entries.
18525
18526 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
18527
18528         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
18529         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
18530         macro.
18531
18532         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
18533         (TCP_CC_INFO): Likewise.
18534         (TCP_SAVE_SYN): Likewise.
18535         (TCP_SAVED_SYN): Likewise.
18536
18537 2015-08-31  Brett Neumeier <brett@neumeier.us>
18538
18539         [BZ #18870]
18540         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
18541
18542 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18543
18544         [BZ #18873]
18545         Fix broken overflow check in posix_fallocate
18546         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
18547         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
18548         Fix parenthesization typo.
18549
18550 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
18551
18552         [BZ #18887]
18553         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
18554         tst-mntent-blank-passno.
18555         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
18556         * misc/tst-mntent-blank-corrupt.c: New test.
18557         * misc/tst-mntent-blank-passno.c: New test ripped from ...
18558         * misc/tst-mntent.c (do_test): ... here.
18559
18560 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
18561
18562         [BZ #4404]
18563         * po/de.po: Fix SIGALRM typo.
18564
18565 2015-08-28  James Perkins  <james@loowit.net>
18566
18567         * time/tst-strptime2.c (tests): Replace short list of test
18568         strings for strptime %z specifier with code which exhaustively
18569         tests every combination of sign and 0 to 5 digits. Tests for
18570         rejection of invalid strings.
18571
18572 2015-08-28  James Perkins  <james@loowit.net>
18573
18574         [BZ #16141]
18575         * time/strptime_l.c (__strptime_internal): Fix %z minutes
18576         calculation, removing incorrect decimal time rounding, so that
18577         all minute values result in a valid seconds value.
18578         * time/strptime_l.c (__strptime_internal): Extend %z time zone
18579         offset range limits to UTC-99:59 through UTC+99:59 to parse
18580         current and historical use cases.
18581         * time/tst-strptime2.c (tests): Modify and add tests for the
18582         strptime %z input field descriptor, specifically conversion of
18583         minutes to seconds and validating an offset range of -9959 to
18584         +9959.
18585
18586 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18587             Dmitry V. Levin  <ldv@altlinux.org>
18588
18589         [BZ #18877]
18590         * posix/Makefile (tests): Add tst-mmap-offset.
18591         * posix/tst-mmap.c: New file.
18592         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
18593         offset calculation for negative values.
18594
18595 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18596
18597         * sysdeps/i386/init-arch.h: New file.
18598         * sysdeps/i386/i586/init-arch.h: Likewise.
18599         * sysdeps/i386/i686/init-arch.h: Likewise.
18600         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
18601         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
18602         * sysdeps/x86/cpu-features.h (bit_I586): New.
18603         (bit_I686): Likewise.
18604         (bit_CX8): Likewise.
18605         (bit_CMOV): Likewise.
18606         (index_CX8): Likewise.
18607         (index_CMOV): Likewise.
18608         (index_I586): Likewise.
18609         (index_I686): Likewise.
18610         (reg_CX8): Likewise.
18611         (reg_CMOV): Likewise.
18612         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
18613         available at compile-time.
18614         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
18615         available at compile-time.
18616         * sysdeps/x86/init-arch.h (USE_I586): New macro.
18617         (USE_I686): Likewise.
18618
18619 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18620
18621         * sysdeps/i386/bcopy.S: New file.
18622         * sysdeps/i386/bzero.S: Likewise.
18623         * sysdeps/i386/memcpy.S: Likewise.
18624         * sysdeps/i386/memmove.S: Likewise.
18625         * sysdeps/i386/mempcpy.S: Likewise.
18626         * sysdeps/i386/memset.S: Likewise.
18627         * sysdeps/i386/bzero.c: Removed.
18628         * sysdeps/i386/memset.c: Likewise.
18629         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
18630         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
18631         * sysdeps/i386/i586/memset_chk.S: Likewise.
18632         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
18633         * sysdeps/i386/memcpy_chk.S: Here.
18634         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
18635         * sysdeps/i386/memmove_chk.S: Here.
18636         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
18637         * sysdeps/i386/mempcpy_chk.S: Likewise.
18638         * sysdeps/i386/i686/memset_chk.S: Moved to ...
18639         * sysdeps/i386/memset_chk.S: Likewise.
18640
18641 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
18642
18643         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
18644         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
18645         file, move DIAG_POP_NEEDS_COMMENT to end of file.
18646         * soft-fp/fmadf4.c: Ditto.
18647         * soft-fp/fmatf4.c: Ditto.
18648
18649 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18650
18651         * sysdeps/i386/i586/Implies: Removed.
18652         * sysdeps/i386/i686/Implies: Likewise.
18653
18654 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18655
18656         * sysdeps/i386/i486/strlen.S: Moved to ...
18657         * sysdeps/i386/strlen.S: Here.
18658
18659 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18660
18661         * sysdeps/i386/i486/strcat.S: Moved to ...
18662         * sysdeps/i386/strcat.S: Here.
18663
18664 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18665
18666         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
18667         * sysdeps/i386/pthread_spin_trylock.S: Here.
18668         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
18669         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
18670
18671 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18672
18673         * sysdeps/i386/i486/string-inlines.c: Moved to ...
18674         * sysdeps/i386/string-inlines.c: Here.
18675
18676 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18677
18678         * sysdeps/i386/i486/htonl.S: Moved ...
18679         * sysdeps/i386/htonl.S: here.
18680
18681 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18682
18683         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
18684         * sysdeps/i386/bits/atomic.h: Here.
18685
18686 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18687
18688         * sysdeps/i386/i486/Versions: Removed.
18689
18690 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
18691
18692         [BZ #2898]
18693         * misc/mktemp.c: Add mkdtemp to the link_warning message.
18694         Based on patch by Aurelien Jarno.
18695
18696 2015-08-26  Stan Shebs  <stanshebs@google.com>
18697
18698         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
18699         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18700
18701 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18702
18703         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
18704         * sysdeps/powerpc/dl-procinfo.c:
18705         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
18706         feature so it shows when LD_SHOW_AUXV=1.
18707
18708 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18709
18710         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
18711         (__arch_compare_and_exchange_val_32_acq): Remove and use common
18712         definition.  ISA 2.07B no longer requires full sync.
18713
18714 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
18715
18716         [BZ #18863]
18717         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
18718         (si_call_addr): Define.
18719         (si_syscall): Define.
18720         (si_arch): Define.
18721
18722 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18723
18724         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
18725         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
18726         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
18727         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
18728         (__memset_zero_constant_len_parameter): New.
18729         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
18730         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
18731         (__memset_zero_constant_len_parameter): Don't define if
18732         __memset_chk or USE_AS_BZERO are defined.
18733
18734         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
18735         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
18736         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
18737
18738         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
18739         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
18740         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
18741         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
18742         comments.
18743         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
18744         -mno-mmx for $(all-rtld-routines).
18745         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
18746         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
18747         i386.
18748
18749 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
18750
18751         * sysdeps/generic/unwind.h
18752         (_Unwind_Word): Use __mode__(__unwind_word__)
18753         instead of __mode__(__word__).
18754         (_Unwind_Sword): Likewise.
18755
18756         * sysdeps/s390/s390-64/utf8-utf16-z9.c
18757         (MAX_NEEDED_INPUT): New define.
18758         (MAX_NEEDED_OUTPUT): New define.
18759
18760         * NEWS: New item for IBM z13 string optimizations.
18761
18762         * sysdeps/s390/multiarch/memrchr-c.c: New File.
18763         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
18764         * sysdeps/s390/multiarch/memrchr.c: Likewise.
18765         * sysdeps/s390/multiarch/Makefile
18766         (sysdep_routines): Add memrchr functions.
18767         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18768         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
18769
18770         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
18771         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
18772         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
18773         * sysdeps/s390/multiarch/Makefile
18774         (sysdep_routines): Add wmemcmp functions.
18775         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18776         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
18777         * benchtests/bench-wmemcmp.c: New File.
18778         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
18779
18780         * sysdeps/s390/multiarch/wmemset-c.c: New File.
18781         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
18782         * sysdeps/s390/multiarch/wmemset.c: Likewise.
18783         * sysdeps/s390/multiarch/Makefile
18784         (sysdep_routines): Add wmemset functions.
18785         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18786         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
18787         * wcsmbs/wmemset.c: Use WMEMSET if defined.
18788         * string/test-memset.c: Add wmemset support.
18789         * wcsmbs/test-wmemset.c: New File.
18790         * wcsmbs/Makefile (strop-tests): Add wmemset.
18791         * benchtests/bench-memset.c: Add wmemset support.
18792         * benchtests/bench-wmemset.c: New File.
18793         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
18794
18795         * sysdeps/s390/multiarch/memccpy-c.c: New File.
18796         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
18797         * sysdeps/s390/multiarch/memccpy.c: Likewise.
18798         * sysdeps/s390/multiarch/Makefile
18799         (sysdep_routines): Add memccpy functions.
18800         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18801         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
18802         * string/memccpy.c: Use MEMCCPY if defined.
18803
18804         * sysdeps/s390/multiarch/memchr-vx.S: New File.
18805         * sysdeps/s390/multiarch/memchr.c: Likewise.
18806         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
18807         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
18808         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
18809         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
18810         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
18811         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
18812         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
18813         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
18814         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
18815         and rawmemchr functions.
18816         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18817         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
18818         and wmemchr.
18819         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
18820         * string/test-memchr.c: Add wmemchr support.
18821         * wcsmbs/test-wmemchr.c: New File.
18822         * wcsmbs/Makefile (strop-tests): Add wmemchr.
18823         * benchtests/bench-memchr.c: Add wmemchr support.
18824         * benchtests/bench-wmemchr.c: New File.
18825         * benchtests/Makefile (wcsmbs-bench): wmemchr.
18826
18827         * sysdeps/s390/multiarch/strcspn-c.c: New File.
18828         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
18829         * sysdeps/s390/multiarch/strcspn.c: Likewise.
18830         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
18831         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
18832         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
18833         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
18834         wcscspn functions.
18835         * sysdeps/s390/multiarch/ifunc-impl-list.c
18836         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
18837         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
18838         * string/test-strcspn.c: Add wcscspn support.
18839         * wcsmbs/test-wcscspn.c: New File.
18840         * wcsmbs/Makefile (strop-tests): Add wcscspn.
18841         * benchtests/bench-strcspn.c: Add wcscspn support.
18842         * benchtests/bench-wcscspn.c: New File.
18843         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
18844
18845         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
18846         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
18847         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
18848         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
18849         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
18850         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
18851         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
18852         wcspbrk functions.
18853         * sysdeps/s390/multiarch/ifunc-impl-list.c
18854         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
18855         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
18856         * string/test-strpbrk.c: Add wcspbrk support.
18857         * wcsmbs/test-wcspbrk.c: New File.
18858         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
18859         * benchtests/bench-strpbrk.c: Add wcspbrk support.
18860         * benchtests/bench-wcspbrk.c: New File.
18861         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
18862
18863         * sysdeps/s390/multiarch/strspn-c.c: New File.
18864         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
18865         * sysdeps/s390/multiarch/strspn.c: Likewise.
18866         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
18867         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
18868         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
18869         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
18870         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
18871         wcsspn functions.
18872         * sysdeps/s390/multiarch/ifunc-impl-list.c
18873         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
18874         * string/test-strspn.c: Add wcsspn support.
18875         * wcsmbs/test-wcsspn.c: New File.
18876         * wcsmbs/Makefile (strop-tests): Add wcsspn.
18877         * benchtests/bench-strspn.c: Add wcsspn support.
18878         * benchtests/bench-wcsspn.c: New File.
18879         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
18880
18881         * sysdeps/s390/multiarch/strrchr-c.c: New File.
18882         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
18883         * sysdeps/s390/multiarch/strrchr.c: Likewise.
18884         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
18885         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
18886         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
18887         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
18888         wcsrchr functions.
18889         * sysdeps/s390/multiarch/ifunc-impl-list.c
18890         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
18891         * benchtests/bench-wcsrchr.c: New File.
18892         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
18893
18894         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
18895         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
18896         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
18897         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
18898         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
18899         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
18900         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
18901         wcschrnul functions.
18902         * sysdeps/s390/multiarch/ifunc-impl-list.c
18903         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
18904         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
18905         * string/test-strchr.c: Add wcschrnul support.
18906         * wcsmbs/test-wcschrnul.c: New File.
18907         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
18908         * benchtests/bench-strchr.c: Add wcschrnul support.
18909         * benchtests/bench-wcschrnul.c: New File.
18910         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
18911
18912         * sysdeps/s390/multiarch/strchr-c.c: New File.
18913         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
18914         * sysdeps/s390/multiarch/strchr.c: Likewise.
18915         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
18916         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
18917         * sysdeps/s390/multiarch/wcschr.c: Likewise.
18918         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
18919         wcschr functions.
18920         * sysdeps/s390/multiarch/ifunc-impl-list.c
18921         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
18922         * string/strchr.c (STRCHR): Define and use macro.
18923         * benchtests/bench-wcschr.c: New File.
18924         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
18925
18926         * sysdeps/s390/multiarch/strncmp-c.c: New File.
18927         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
18928         * sysdeps/s390/multiarch/strncmp.c: Likewise.
18929         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
18930         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
18931         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
18932         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
18933         wcsncmp functions.
18934         * sysdeps/s390/multiarch/ifunc-impl-list.c
18935         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
18936         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
18937         * benchtests/bench-strncmp.c: Add wcsncmp support.
18938         * benchtests/bench-wcsncmp.c: New File.
18939         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
18940
18941         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
18942         * sysdeps/s390/multiarch/strcmp.c: Likewise.
18943         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
18944         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
18945         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
18946         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
18947         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
18948         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
18949         wcscmp functions.
18950         * sysdeps/s390/multiarch/ifunc-impl-list.c
18951         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
18952         * string/strcmp.c (STRCMP): Define and use macro.
18953         * benchtests/bench-wcscmp.c: New File.
18954         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
18955         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
18956         instead of _HAVE_STRING_ARCH_memchr.
18957
18958         * sysdeps/s390/multiarch/strncat-c.c: New File.
18959         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
18960         * sysdeps/s390/multiarch/strncat.c: Likewise.
18961         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
18962         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
18963         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
18964         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
18965         wcsncat functions.
18966         * sysdeps/s390/multiarch/ifunc-impl-list.c
18967         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
18968         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
18969         * string/test-strncat.c: Add wcsncat support.
18970         * wcsmbs/test-wcsncat.c: New File.
18971         * wcsmbs/Makefile (strop-tests): Add wcsncat.
18972         * benchtests/bench-strncat.c: Add wcsncat support.
18973         * benchtests/bench-wcsncat.c: New File.
18974         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
18975
18976         * sysdeps/s390/multiarch/strcat-c.c: New File.
18977         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
18978         * sysdeps/s390/multiarch/strcat.c: Likewise.
18979         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
18980         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
18981         * sysdeps/s390/multiarch/wcscat.c: Likewise.
18982         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
18983         wcscat functions.
18984         * sysdeps/s390/multiarch/ifunc-impl-list.c
18985         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
18986         * string/strcat.c (STRCAT): Define and use macro.
18987         * wcsmbs/wcscat.c: Use WCSCAT if defined.
18988         * string/test-strcat.c: Add wcscat support.
18989         * wcsmbs/test-wcscat.c: New File.
18990         * wcsmbs/Makefile (strop-tests): Add wcscat.
18991         * benchtests/bench-strcat.c: Add wcscat support.
18992         * benchtests/bench-wcscat.c: New File.
18993         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
18994
18995         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
18996         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
18997         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
18998         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
18999         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
19000         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
19001         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
19002         wcpncpy functions.
19003         * sysdeps/s390/multiarch/ifunc-impl-list.c
19004         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
19005         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
19006         * string/test-stpncpy.c: Add wcpncpy support.
19007         * wcsmbs/test-wcpncpy.c: New File.
19008         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
19009         * benchtests/bench-stpncpy.c: Add wcpncpy support.
19010         * benchtests/bench-wcpncpy.c: New File.
19011         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
19012
19013         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
19014         * sysdeps/s390/multiarch/strncpy.c: Likewise.
19015         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
19016         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
19017         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
19018         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
19019         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
19020         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
19021         wcsncpy functions.
19022         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
19023         * sysdeps/s390/multiarch/ifunc-impl-list.c
19024         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
19025         * string/test-strncpy.c: Add wcsncpy support.
19026         * wcsmbs/test-wcsncpy.c: New File.
19027         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
19028         * benchtests/bench-strncpy.c: Add wcsncpy support.
19029         * benchtests/bench-wcsncpy.c: New File.
19030         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
19031
19032         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
19033         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
19034         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
19035         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
19036         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
19037         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
19038         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
19039         wcpcpy functions.
19040         * string/stpcpy.c: Use STPCPY if defined.
19041         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
19042         * sysdeps/s390/multiarch/ifunc-impl-list.c
19043         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
19044         * string/test-stpcpy.c: Add wcpcpy support.
19045         * wcsmbs/test-wcpcpy.c: New File.
19046         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
19047         * benchtests/bench-stpcpy.c: Add wcpcpy support.
19048         * benchtests/bench-wcpcpy.c: New File.
19049         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
19050
19051         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
19052         * sysdeps/s390/multiarch/strcpy.c: Likewise.
19053         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
19054         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
19055         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
19056         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
19057         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
19058         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
19059         wcscpy functions.
19060         * sysdeps/s390/multiarch/ifunc-impl-list.c
19061         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
19062         * benchtests/bench-wcscpy.c: New File.
19063         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
19064
19065         * sysdeps/s390/multiarch/strnlen-c.c: New File.
19066         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
19067         * sysdeps/s390/multiarch/strnlen.c: Likewise.
19068         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
19069         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
19070         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
19071         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
19072         wcsnlen functions.
19073         * sysdeps/s390/multiarch/ifunc-impl-list.c
19074         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
19075         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
19076         * string/test-strnlen.c: Add wcsnlen support.
19077         * wcsmbs/test-wcsnlen.c: New File.
19078         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
19079         * benchtests/bench-strnlen.c: Add wcsnlen support.
19080         * benchtests/bench-wcsnlen.c: New File.
19081         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
19082
19083         * sysdeps/s390/multiarch/Makefile: New File.
19084         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
19085         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
19086         * sysdeps/s390/multiarch/strlen.c: Likewise.
19087         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
19088         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
19089         * sysdeps/s390/multiarch/wcslen.c: Likewise.
19090         * string/strlen.c (STRLEN): Define and use macro.
19091         * sysdeps/s390/multiarch/ifunc-impl-list.c
19092         (IFUNC_VX_IMPL): New macro function.
19093         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
19094         * benchtests/Makefile (wcsmbs-bench): New variable.
19095         (string-bench-all): Added wcsmbs-bench.
19096         * benchtests/bench-wcslen.c: New File.
19097
19098         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
19099         s390_vx_libc_ifunc2): New macro function.
19100
19101         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
19102         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
19103         assembler support.
19104         * sysdeps/s390/configure: Regenerated.
19105
19106         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
19107         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
19108
19109         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
19110         * sysdeps/s390/dl-procinfo.h: Add vector capability.
19111         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
19112
19113         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
19114         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
19115         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
19116         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
19117         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
19118         (memcmp, bcmp): Use __memcmp_default as alias source.
19119         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
19120         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
19121         Rename to __memcmp_default.
19122         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
19123         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
19124         (memcpy): Use __memcpy_default as alias source.
19125         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
19126         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
19127         Rename to __memcpy_default.
19128         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
19129         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
19130         (memset): Use __memset_default as alias source.
19131         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
19132         * sysdeps/s390/s390-32/memset.S (__memset_g5):
19133         Rename to __memset_default.
19134         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
19135         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
19136         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
19137         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
19138         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
19139         (memcmp, bcmp): Use __memcmp_default as alias source.
19140         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
19141         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
19142         Rename to __memcmp_default.
19143         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
19144         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
19145         (memcpy): Use __memcpy_default as alias source.
19146         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
19147         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
19148         Rename to __memcpy_default.
19149         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
19150         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
19151         (memset): Use __memset_default as alias source.
19152         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
19153         * sysdeps/s390/s390-64/memset.S (__memset_z900):
19154         Rename to __memset_default.
19155         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
19156         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
19157
19158         [BZ #18610]
19159         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
19160         __ieee_instruction_pointer to __unused.
19161         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
19162         __ieee_instruction_pointer.
19163         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
19164         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
19165         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
19166         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19167         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
19168         Mark dxc-field as reserved.
19169
19170 2015-08-25  Roland McGrath  <roland@hack.frob.com>
19171
19172         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
19173         if the weak reference is not null.
19174
19175 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19176
19177         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
19178
19179         [BZ #11214]
19180         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
19181
19182 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19183
19184         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
19185         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
19186         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
19187         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
19188         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
19189         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
19190         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
19191         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
19192         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
19193         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
19194         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
19195         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
19196         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
19197         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
19198         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
19199         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
19200         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
19201         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
19202
19203 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19204
19205         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
19206         register other than r0 for tabort, it has special meaning.
19207         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
19208         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
19209         transaction before starting syscall.
19210
19211 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19212
19213         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
19214
19215 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19216
19217         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
19218
19219         * sysdeps/x86_64/rtld-memcmp.c: Removed.
19220         * sysdeps/x86_64/rtld-memset.S: Likewise.
19221         * sysdeps/x86_64/rtld-strchr.S: Likewise.
19222         * sysdeps/x86_64/rtld-strlen.S: Likewise.
19223         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
19224         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
19225
19226         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
19227
19228 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
19229
19230         * debug/strcpy_chk.c: Improve performance.
19231         * debug/stpcpy_chk.c: Likewise.
19232         * sysdeps/x86_64/strcpy_chk.S: Remove.
19233         * sysdeps/x86_64/stpcpy_chk.S: Remove.
19234
19235         [BZ #18240]
19236         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
19237
19238 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19239
19240         [BZ #15128]
19241         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
19242         ifuncmain8.
19243         (modules-names): Add ifuncmod8.
19244         ($(objpfx)ifuncmain8): New rule.
19245         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
19246         <cpuid.h>.
19247         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
19248         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
19249         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
19250         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
19251         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
19252         * sysdeps/x86_64/dl-trampoline.h: Likewise.
19253         * sysdeps/x86_64/ifuncmain8.c: New file.
19254         * sysdeps/x86_64/ifuncmod8.c: Likewise.
19255         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
19256         Removed.
19257         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
19258         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
19259         Change rtld_savespace_sse to __glibc_unused2.
19260         (RTLD_CHECK_FOREIGN_CALL): Removed.
19261         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
19262         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
19263         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
19264
19265 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19266
19267         * sysdeps/aarch64/bzero.S (__bzero): Remove.
19268
19269 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19270
19271         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
19272         Unconditionally set __fpcr to avoid uninialized warning.
19273         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
19274
19275 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19276
19277         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
19278         is corrupt.
19279
19280         * malloc/arena.c (arena_get2): Drop unused argument.
19281         (arena_lock): Adjust.
19282         (arena_get_retry): Likewise.
19283
19284 2015-08-24  Andreas Schwab  <schwab@suse.de>
19285
19286         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
19287         Don't define.
19288         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19289         (__ASSUME_IPC64): Don't undef.
19290         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
19291         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
19292         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
19293         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
19294         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
19295         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
19296         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
19297         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
19298         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
19299         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
19300         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
19301         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
19302         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
19303         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
19304         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
19305         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
19306         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
19307         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
19308         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
19309         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
19310         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
19311
19312 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
19313
19314         * manual/Makefile (install): Only build manual when perl is available.
19315
19316 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19317
19318         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
19319         '#undef memcpy' by '#undef memchr'.
19320
19321 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19322
19323         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
19324         memchr not point to the internal __GI_memchr implementation.
19325
19326 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19327
19328         * timezone/Makefile (CFLAGS-zdump.c): Remove
19329         -Wno-strict-prototypes.
19330         (CFLAGS-zic.c): Likewise.
19331         (CFLAGS-ialloc.c): Likewise.
19332         (CFLAGS-scheck.c): Likewise.
19333
19334         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
19335         -Wno-error=undef.
19336
19337 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19338
19339         * i386/i686/multiarch/strcasestr-c.c: Removed.
19340         * x86_64/multiarch/strcasestr.c: Likewise.
19341         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19342         Remove strcasestr.
19343
19344 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19345
19346         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
19347
19348         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
19349         variables for high and low parts before possibly modifying them.
19350
19351 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19352
19353         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
19354         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
19355         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
19356         of "multiarch/init-arch.h".
19357         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
19358         * sysdeps/x86/init-arch.h: This.
19359
19360 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19361
19362         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
19363         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
19364
19365 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
19366
19367         [BZ #17787]
19368         * manual/macros.texi: Add twoexp macro.
19369         * manual/filesys.texi: Fix exponents.
19370         * manual/llio.texi: Likewise.
19371         * manual/stdio.texi: Likewise.
19372
19373 2015-08-20  Florian Weimer  <fweimer@redhat.com>
19374
19375         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
19376         incorrect use.
19377
19378 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19379
19380         [BZ #18370]
19381         * math/s_csqrt.c (__csqrt): Force underflow exception for results
19382         whose real or imaginary part has small absolute value.
19383         * math/s_csqrtf.c (__csqrtf): Likewise.
19384         * math/s_csqrtl.c (__csqrtl): Likewise.
19385         * math/auto-libm-test-in: Add more tests of csqrt.
19386         * math/auto-libm-test-out: Regenerated.
19387         * sysdeps/i386/fpu/libm-test-ulps: Update.
19388
19389 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19390
19391         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
19392         __ppc_set_ppr_very_low): New functions.
19393         * manual/platform.texi: Add documentation about
19394         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
19395
19396 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
19397
19398         * string/stpncpy.c (stpncpy): Improve performance using
19399         __strnlen/memcpy/memset.
19400
19401 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19402
19403         [BZ #18796]
19404         * scripts/test-installation.pl: Don't add -lmvec to build options if
19405         libmvec wasn't built.
19406
19407 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
19408
19409         [BZ #14341]
19410         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
19411         case when there is a gap between DT_REL and DT_JMPREL sections.
19412         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
19413         (LDFLAGS-tst-split-dynreloc): New.
19414         (tst-split-dynreloc-ENV): Likewise.
19415         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
19416         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
19417
19418 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19419
19420         [BZ #18822]
19421         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
19422         attribute_hidden.
19423         (__xstat64_conv): Likewise.
19424         (__xstat32_conv): Likewise.
19425
19426 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19427
19428         [BZ #18822]
19429         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19430         Don't load %ebx when calling __setcontext.  Call __setcontext
19431         with HIDDEN_JUMPTARGET.
19432         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
19433         libc_hidden_def.
19434
19435 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19436
19437         * sysdeps/i386/i686/Makefile
19438         [$(subdir) == string] (sysdep_routines): Moved to ...
19439         * sysdeps/i386/Makefile: Here.
19440         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
19441         * sysdeps/i386/cacheinfo.c: Here.
19442         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
19443         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
19444         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
19445         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
19446
19447 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19448
19449         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
19450         __i586__ is defined.
19451         (HAS_I686): Defined to 1 if __i686__ is defined.
19452
19453 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19454
19455         * elf/Makefile [$(have-z-execstack) = yes]
19456         (CPPFLAGS-tst-execstack.c): New variable.
19457
19458         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
19459         conditional to [defined UTMPX || _HAVE_UT_TYPE].
19460         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
19461         UTMPX || _HAVE_UT_TV].
19462         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
19463         UTMPX || _HAVE_UT_TV - 0].
19464
19465 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
19466
19467         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
19468         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
19469         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
19470
19471 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19472
19473         * sysdeps/powerpc/dl-procinfo.c:
19474         (_dl_powerpc_cap_flags): Added missing strings for some
19475         hwcap features.
19476         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
19477
19478 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19479
19480         Port the 0x7efe...feff pattern to GCC 6.
19481         See Steve Ellcey's bug report in:
19482         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
19483         * string/memrchr.c (MEMRCHR):
19484         * string/rawmemchr.c (RAWMEMCHR):
19485         * string/strchr.c (strchr):
19486         * string/strchrnul.c (STRCHRNUL):
19487         Rewrite code to avoid issues with signed shift overflow.
19488
19489 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
19490
19491         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
19492         whether cpuid is available only if HAS_CPUID is 0.
19493         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
19494         (HAS_I586): Likewise.
19495         (HAS_I686): Likewise.
19496
19497 2015-08-18  Zack Weinberg  <zackw@panix.com>
19498
19499         * misc/Versions (libc): Add GLIBC_2.23.
19500
19501 2015-08-18  Alan Modra  <amodra@gmail.com>
19502
19503         [BZ #18421]
19504         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
19505         .Lp__global.
19506         (_start): Load %dp via .Lp__global.
19507         [!SHARED]: Use .section .rodata.
19508
19509 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19510
19511         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
19512         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
19513
19514 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19515
19516         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
19517         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
19518
19519 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19520
19521         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
19522         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
19523
19524 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19525
19526         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
19527         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
19528
19529 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19530
19531         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
19532         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
19533
19534 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19535
19536         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
19537         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
19538
19539 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19540
19541         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
19542
19543 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19544
19545         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
19546         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
19547         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19548         (__ASSUME_LWS_CAS): Delete.
19549
19550 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19551
19552         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
19553         * sysdeps/hppa/configure: Regenerated.
19554         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
19555         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
19556         * sysdeps/hppa/nptl/tls.h: Likewise.
19557
19558 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
19559
19560         [BZ #18823]
19561         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
19562         for scaling up small arguments.
19563         * math/s_csqrtf.c (__csqrtf): Likewise.
19564         * math/s_csqrtl.c (__csqrtl): Likewise.
19565         * math/auto-libm-test-in: Add more tests of csqrt.
19566         * math/auto-libm-test-out: Regenerated.
19567
19568 2015-08-17  Andreas Schwab  <schwab@suse.de>
19569
19570         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
19571         version set GLIBC_2.19.
19572
19573 2015-08-16  Zack Weinberg  <zackw@panix.com>
19574
19575         [BZ #18681]
19576         * misc/regexp.h: This interface is no longer supported.
19577         Remove all contents, leaving only an #error directive.
19578         * misc/regexp.c (loc1, loc2, locs, step, advance):
19579         Demote to compatibility symbols.
19580
19581 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
19582
19583         [BZ #18084]
19584         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
19585         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
19586         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
19587         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
19588         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
19589         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
19590         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
19591         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
19592         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
19593
19594 2015-08-15  Zack Weinberg  <zackw@panix.com>
19595
19596         [BZ #18795]
19597         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
19598         buffer length is known to be too large, not if it's known to be
19599         small enough.
19600         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
19601         overflow at runtime, involving a length parameter, twice: once
19602         with a compile-time constant length parameter, once without.
19603
19604 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
19605
19606         [BZ #18824]
19607         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
19608         scaling x * y up instead of down.
19609         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19610         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19611         * math/auto-libm-test-in: Add more tests of fma.
19612         * math/auto-libm-test-out: Regenerated.
19613
19614 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
19615
19616         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19617
19618 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19619
19620         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
19621         unnecessary movq.
19622         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
19623         Likewise.
19624
19625 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
19626
19627         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
19628         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
19629         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
19630         and tgamma.
19631         * math/auto-libm-test-out: Regenerated.
19632         * sysdeps/i386/fpu/libm-test-ulps: Update.
19633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19634
19635         [BZ #16520]
19636         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
19637         (__tanh): Force underflow exception for arguments with small
19638         absolute value.
19639         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
19640         (__tanhf): Force underflow exception for arguments with small
19641         absolute value.
19642         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
19643         (__tanhl): Force underflow exception for arguments with small
19644         absolute value.
19645         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
19646         (__tanhl): Force underflow exception for arguments with small
19647         absolute value.
19648         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
19649         (__tanhl): Force underflow exception for arguments with small
19650         absolute value.
19651         * math/auto-libm-test-in: Add more tests of tanh.
19652         * math/auto-libm-test-out: Regenerated.
19653         * sysdeps/i386/fpu/libm-test-ulps: Update.
19654
19655 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19656
19657         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
19658         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
19659
19660 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19661
19662         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
19663         <cpuid.h>.
19664
19665 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19666
19667         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
19668         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
19669
19670 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19671
19672         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
19673         Remove $(objpfx)init-arch.o.
19674         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
19675         init-arch.
19676         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
19677         (INIT_ARCH_EXT): Defined as empty.
19678         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
19679         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
19680         __init_cpu_features call.  Replace HAS_XXX with
19681         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19682         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
19683         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
19684         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
19685         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
19686         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
19687         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
19688         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
19689         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
19690         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
19691         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
19692         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
19693         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
19694         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
19695         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
19696         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
19697         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
19698         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
19699         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
19700         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
19701         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
19702         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
19703         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
19704         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
19705         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
19706         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
19707         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
19708         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
19709         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
19710         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
19711         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
19712         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
19713         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
19714         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
19715         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
19716         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
19717
19718 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19719
19720         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
19721         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19722         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
19723         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
19724         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
19725         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
19726         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
19727         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
19728         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
19729         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
19730         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
19731         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
19732         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19733         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
19734         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
19735         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
19736         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
19737         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
19738         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
19739         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
19740         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
19741         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
19742         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
19743         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
19744         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
19745         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
19746         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
19747         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
19748         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
19749         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
19750         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
19751         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
19752         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
19753         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
19754         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
19755         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
19756         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
19757         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
19758         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
19759         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
19760         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
19761         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
19762         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
19763
19764 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19765
19766         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
19767         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19768         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
19769         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
19770         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
19771         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
19772         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
19773         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
19774         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
19775         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
19776         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
19777         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
19778         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
19779         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
19780         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
19781         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
19782         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
19783         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
19784         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
19785         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
19786         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
19787         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
19788         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
19789         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
19790         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19791         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
19792         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
19793         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
19794         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19795         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
19796         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
19797         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
19798         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
19799         * sysdeps/x86_64/multiarch/memset.S: Likewise.
19800         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19801         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
19802         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
19803         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
19804         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
19805         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
19806         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
19807         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
19808         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
19809
19810 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19811
19812         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
19813         (dl_platform_init): Call init_cpu_features.
19814         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
19815         * sysdeps/i386/i686/cacheinfo.c
19816         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
19817         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
19818         * sysdeps/i386/i686/multiarch/Versions: Removed.
19819         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
19820         Removed.
19821         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
19822         * sysdeps/unix/sysv/linux/x86/Makefile
19823         (libpthread-sysdep_routines): Remove init-arch.
19824         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
19825         <sysdeps/x86_64/dl-procinfo.c> instead of
19826         sysdeps/generic/dl-procinfo.c>.
19827         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
19828         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
19829         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
19830         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
19831         [$(subdir) == elf] (tests-static): Add
19832         tst-get-cpu-features-static.
19833         * sysdeps/x86/Versions: New file.
19834         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
19835         * sysdeps/x86/cpu-features.c: Likewise.
19836         * sysdeps/x86/cpu-features.h: Likewise.
19837         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
19838         * sysdeps/x86/libc-start.c: Likewise.
19839         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
19840         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
19841         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
19842         * sysdeps/x86_64/dl-procinfo.c: Likewise.
19843         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
19844         Assume USE_MULTIARCH is defined and don't check it.
19845         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
19846         (is_amd): Likewise.
19847         (max_cpuid): Likewise.
19848         (intel_check_word): Likewise.
19849         (__cache_sysconf): Don't call __init_cpu_features.
19850         (__x86_preferred_memory_instruction): Removed.
19851         (init_cacheinfo): Don't call __init_cpu_features. Replace
19852         __cpu_features with GLRO(dl_x86_cpu_features).
19853         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
19854         (dl_platform_init): Call init_cpu_features.
19855         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
19856         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
19857         * sysdeps/x86_64/multiarch/Versions: Removed.
19858         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
19859         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
19860         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
19861         Removed.
19862         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
19863
19864 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
19865
19866         [BZ #18820]
19867         * libio/Makefile (test-fmemopen-mem): New test.
19868         * libio/test-fmemopen.c (do_bz18820): New test.
19869         * libio/fmemopen.c (__fmemopen): Fix memory leak.
19870         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
19871
19872 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
19873
19874         [BZ #16734]
19875         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
19876         (FREE_BUF): Delete.
19877         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
19878         * libio/genops.c (_IO_setb): Use malloc and free directly.
19879         (_IO_default_doallocate, _IO_default_finish): Likewise.
19880         ( _IO_unbuffer_all): Likewise.
19881         ( libc_freeres_fn): Likewise.
19882         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
19883         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
19884         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
19885         (_IO_wdefault_doallocate): Likewise.
19886
19887 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19888
19889         [BZ #18086]
19890         * sysdeps/posix/nice.c (nice): Restore old errno.
19891         * posix/tst-nice.c (do_test): Add test for BZ #18086.
19892
19893 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
19894
19895         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
19896
19897 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19898
19899         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
19900         __bcopy and add a weak_alias to bcopy.
19901         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
19902         for static build.
19903
19904         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
19905         cleanup macro usage.
19906         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
19907         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
19908         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
19909         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
19910         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
19911         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
19912         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
19913         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
19914         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
19915         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
19916         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
19917         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
19918         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
19919         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
19920         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
19921         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
19922         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
19923         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
19924         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
19925
19926         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
19927         libc_hidden_def.
19928         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
19929
19930         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
19931         (sysdep_routines): Add strstr-ppc64.
19932         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
19933
19934 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
19935
19936         [BZ #18778]
19937         * elf/Makefile (tests): Add Add tst-nodelete2.
19938         (modules-names): Add tst-nodelete2mod.
19939         (tst-nodelete2mod.so-no-z-defs): New.
19940         ($(objpfx)tst-nodelete2): Likewise.
19941         ($(objpfx)tst-nodelete2.out): Likewise.
19942         (LDFLAGS-tst-nodelete2): Likewise.
19943         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
19944         out of loop through all loaded libraries.
19945         * elf/tst-nodelete2.c: New file.
19946         * elf/tst-nodelete2mod.c: Likewise.
19947         * elf/tst-znodelete-zlib.cc: Delete.
19948
19949 2015-08-11  Andreas Schwab  <schwab@suse.de>
19950
19951         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
19952         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
19953         (__openat64_nocancel): Likewise.
19954
19955 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
19956
19957         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
19958         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
19959         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
19960         * math/auto-libm-test-out: Regenerated.
19961         * sysdeps/i386/fpu/libm-test-ulps: Update.
19962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19963
19964 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
19965
19966         [BZ #18790]
19967         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
19968         threshold for returning +/- 1.
19969         * math/auto-libm-test-in: Add more tests of tanh.
19970         * math/auto-libm-test-out: Regenerated.
19971         * sysdeps/i386/fpu/libm-test-ulps: Update.
19972
19973 2015-08-10  Andreas Schwab  <schwab@suse.de>
19974
19975         [BZ #18781]
19976         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
19977         MORE_OFLAGS to oflag.
19978         * io/test-lfs.c (do_test): Test openat64.
19979
19980 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
19981
19982         [BZ #18789]
19983         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
19984         smaller threshold for returning the argument.
19985         * math/auto-libm-test-in: Add more tests of sinh.
19986         * math/auto-libm-test-out: Regenerated.
19987         * sysdeps/i386/fpu/libm-test-ulps: Update.
19988
19989 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
19990
19991         [BZ #18674]
19992         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
19993         break.
19994
19995 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
19996
19997         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
19998         (generated): Don't add $(addprefix z.,$(tzfiles)).
19999
20000 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20001
20002         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
20003         * scripts/sysd-rules.awk: Likewise.
20004
20005 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20006
20007         * iconvdata/tst-tables.sh: Change echo -n to printf.
20008         * nss/db-Makefile: Likewise.
20009         * posix/tst-getconf.sh: Likewise.
20010         * stdio-common/tst-unbputc.sh: Likewise.
20011
20012 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20013
20014         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
20015         MADV_*_PAGES defines behind this feature check.
20016
20017 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
20018
20019         [BZ #18480]
20020         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
20021         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
20022         Define.
20023         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
20024         LOAD_REGS_5, LOAD_REGS_6): Update.
20025         (INTERNAL_SYSCALL): Update using new LOAD defines.
20026         (INTERNAL_SYSCALL_NCS): Likewise.
20027         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
20028
20029 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20030
20031         [BZ #16734]
20032         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
20033
20034 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20035
20036         [BZ #17905]
20037         * catgets/Makefile (tst-catgets-mem): New test.
20038         * catgets/catgets.c (catopen): Don't use unbounded alloca.
20039         * catgets/open_catalog.c (__open_catalog): Likewise.
20040         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
20041
20042 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
20043
20044         [BZ #18787]
20045         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
20046         clobber registers.
20047         (atomic_compare_and_exchange_val_acq): Use register asms to assign
20048         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
20049         Cast return to __typeof (oldval).
20050
20051 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
20052
20053         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
20054         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
20055         and delete sys/syscall.h include.
20056
20057 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
20058
20059         [BZ #16517]
20060         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
20061         (tan): Force underflow exception for arguments with small absolute
20062         value.
20063         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
20064         (__kernel_tanf): Force underflow exception for arguments with
20065         small absolute value.
20066         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
20067         (__kernel_tanl): Force underflow exception for arguments with
20068         small absolute value.
20069         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
20070         (__kernel_tanl): Force underflow exception for arguments with
20071         small absolute value.
20072         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
20073         (__kernel_tanl): Force underflow exception for arguments with
20074         small absolute value.
20075         * math/auto-libm-test-in: Add more tests of tan.
20076         * math/auto-libm-test-out: Regenerated.
20077
20078 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20079
20080         Fix sysdeps/i386/fpu/s_scalbn.S build
20081
20082         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
20083
20084 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
20085
20086         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
20087
20088 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20089
20090         Fix gcrt0.o compilation
20091
20092         When static-start-installed-name is different from
20093         start-installed-name, we must not use the shared objects.
20094
20095         * csu/Makefile
20096         (extra-objs): Add gmon-start.o when building shared library and
20097         $(static-start-installed-name) is different from
20098         $(start-installed-name).
20099         $(objpfx)g$(static-start-installed-name): When building shared
20100         library and $(static-start-installed-name) is different from
20101         $(static-start-installed-name), revert to non-shared rule,
20102         i.e. using $(objpfx)% and gmon-start.o.
20103
20104 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
20105
20106         [BZ #16519]
20107         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
20108         (__ieee754_sinh): Force underflow exception for arguments with
20109         small absolute value.
20110         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
20111         (__ieee754_sinhf): Force underflow exception for arguments with
20112         small absolute value.
20113         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
20114         (__ieee754_sinhl): Force underflow exception for arguments with
20115         small absolute value.
20116         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
20117         (__ieee754_sinhl): Force underflow exception for arguments with
20118         small absolute value.
20119         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
20120         (__ieee754_sinhl): Force underflow exception for arguments with
20121         small absolute value.
20122         * math/auto-libm-test-in: Add more tests of sinh.
20123         * math/auto-libm-test-out: Regenerated.
20124         * sysdeps/i386/fpu/libm-test-ulps: Update.
20125
20126 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20127
20128         * libio/oldfileops.c: Include unistd.h.
20129
20130 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
20131
20132         * stdlib/isomac.c: Include ctype.h.
20133
20134 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
20135
20136         * dirent/tst-seekdir.c (main): Converted to ...
20137         (do_test): ... this.
20138         (TEST_FUNCTION): New macro.
20139         Include test-skeleton.c.
20140         * elf/tst-dlmodcount.c (main): Converted to ...
20141         (do_test): ... this.
20142         (TEST_FUNCTION): New macro.
20143         Include test-skeleton.c.
20144         * elf/tst-order-main.c (main): Converted to ...
20145         (do_test): ... this.
20146         (TEST_FUNCTION): New macro.
20147         Include test-skeleton.c.
20148         * elf/tst-pie2.c (main): Converted to ...
20149         (do_test): ... this.
20150         (TEST_FUNCTION): New macro.
20151         Include test-skeleton.c.
20152         * inet/tst-ether_aton.c (main): Converted to ...
20153         (do_test): ... this.
20154         (TEST_FUNCTION): New macro.
20155         Include test-skeleton.c.
20156         * misc/tst-mntent.c (main): Converted to ...
20157         (do_test): ... this.
20158         (TEST_FUNCTION): New macro.
20159         Include test-skeleton.c.
20160         * misc/tst-tsearch.c (main): Converted to ...
20161         (do_test): ... this.
20162         (TEST_FUNCTION): New macro.
20163         Include test-skeleton.c.
20164         * posix/tst-regexloc.c (main): Converted to ...
20165         (do_test): ... this.
20166         (TEST_FUNCTION): New macro.
20167         Include test-skeleton.c.
20168         * resolv/tst-aton.c (main): Converted to ...
20169         (do_test): ... this.
20170         (TEST_FUNCTION): New macro.
20171         Include test-skeleton.c.
20172         * stdio-common/test-fwrite.c (main): Converted to ...
20173         (do_test): ... this.
20174         (TEST_FUNCTION): New macro.
20175         Include test-skeleton.c.
20176         * stdio-common/tst-ferror.c (main): Converted to ...
20177         (do_test): ... this.
20178         (TEST_FUNCTION): New macro.
20179         Include test-skeleton.c.
20180         * stdio-common/tst-printf.c (main): Converted to ...
20181         (do_test): ... this.
20182         (TEST_FUNCTION): New macro.
20183         Include test-skeleton.c.
20184         * stdio-common/tst-printfsz.c (main): Converted to ...
20185         (do_test): ... this.
20186         (TEST_FUNCTION): New macro.
20187         Include test-skeleton.c.
20188         * stdlib/tst-strtod.c (main): Converted to ...
20189         (do_test): ... this.
20190         (TEST_FUNCTION): New macro.
20191         Include test-skeleton.c.
20192         * string/tst-strlen.c (main): Converted to ...
20193         (do_test): ... this.
20194         (TEST_FUNCTION): New macro.
20195         Include test-skeleton.c.
20196         * string/tst-svc.c (main): Converted to ...
20197         (do_test): ... this.
20198         (TEST_FUNCTION): New macro.
20199         Include test-skeleton.c.
20200         * time/tst-strptime.c (main): Converted to ...
20201         (do_test): ... this.
20202         (TEST_FUNCTION): New macro.
20203         Include test-skeleton.c.
20204         * timezone/tst-timezone.c (main): Converted to ...
20205         (do_test): ... this.
20206         (TEST_FUNCTION): New macro.
20207         Include test-skeleton.c.
20208
20209 2015-08-05  Zack Weinberg  <zackw@panix.com>
20210
20211         * misc/regexp.h: Update comments.
20212
20213 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
20214
20215         [BZ #18635]
20216         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
20217         before return label.
20218
20219 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20220
20221         [BZ #18661]
20222         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
20223         when calling __errno_location.
20224         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
20225         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
20226
20227 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20228
20229         [BZ #18661]
20230         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
20231         (__lll_timedwait_tid): Align stack to 16 bytes when calling
20232         __gettimeofday.
20233
20234 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20235
20236         [BZ #18661]
20237         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
20238         (__start_context): Don't use pop to restore %rdi so that stack
20239         is aligned to 16 bytes when calling __setcontext.
20240
20241 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20242
20243         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
20244         only for libc.
20245         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
20246
20247 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20248
20249         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
20250         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
20251         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
20252
20253 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20254
20255         * string/memccpy.c (memccpy):
20256         Improve performance by using memchr/memcpy/__mempcpy.
20257
20258 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20259
20260         * string/strncpy.c (strncpy):
20261         Improve performance by using __strnlen/memcpy.
20262
20263 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20264
20265         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
20266         Optimize to avoid an unnecessary FPCR read.
20267
20268 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20269
20270         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
20271         Optimize to reduce FPCR/FPSR accesses.
20272
20273 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20274
20275         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
20276         dead->data[category] != NULL.
20277
20278 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
20279
20280         [BZ #18647]
20281         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
20282         and |x| close to 1, use absolute value of x when computing log.
20283         * math/auto-libm-test-in: Add more tests of pow.
20284         * math/auto-libm-test-out: Regenerated.
20285
20286 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20287
20288         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
20289         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
20290         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
20291
20292 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
20293
20294         [BZ #18525]
20295         * locales/km_KH: Remove timezone definition.
20296         * locales/lo_LA: Likewise.
20297         * locales/my_MM: Likewise.
20298         * locales/nan_TW@latin: Likewise.
20299         * locales/th_TH: Likewise.
20300         * locales/uk_UA: Likewise.
20301
20302 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
20303
20304         [BZ #18265]
20305         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
20306         (wcsncat): Likewise.
20307         (wcscmp): Likewise.
20308         (wcsncmp): Likewise.
20309
20310 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20311
20312         * test-skeleton.c (usage): New function.
20313         (main): Call usage when opt is '?'.
20314
20315 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20316
20317         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
20318         before first use.
20319
20320 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20321
20322         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
20323         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
20324         in there too.
20325
20326 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
20327
20328         * version.h (RELEASE): Set to "development".
20329         (VERSION): Set to "2.22.90"
20330
20331         * version.h (RELEASE): Set to "stable".
20332         (VERSION): Set to "2.22"
20333         * include/features.h (__GLIBC_MINOR__): Set to 22.
20334
20335 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
20336
20337         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
20338         Restructure macro to avoid "value computed is not used" warning.
20339         (atomic_compare_and_exchange_val_acq): Likewise.
20340
20341 2015-08-04  Andreas Schwab  <schwab@suse.de>
20342
20343         [BZ #18635]
20344         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
20345         ret.
20346         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
20347
20348 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
20349
20350         * po/pl.po: Updated translation.
20351         * po/uk.po: Likewise.
20352         * po/fi.po: Likewise.
20353         * po/ko.po: Likewise.
20354         * po/ru.po: Likewise.
20355         * po/vi.po: Likewise.
20356
20357 2015-07-31  Zack Weinberg  <zackw@panix.com>
20358
20359         [BZ #18681]
20360         * regexp.h: Add unconditional #warning stating that this header
20361         will be removed soon.  Revise banner comment to match.
20362         (compile): Consistently use ERROR instead of RETURN to report
20363         errors (partial fix for bz#18681).
20364         * regexp.c: Don't include regexp.h. Remove some unnecessary
20365         declarations.
20366
20367 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
20368
20369         * po/libc.pot: Regenerated.
20370
20371 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
20372
20373         [BZ #18740]
20374         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
20375         float-vlen4-arch-ext-cflags): Removed.
20376         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
20377         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
20378
20379 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20380
20381         [BZ #14113]
20382         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
20383         aligned to __aligned__.
20384         (pthread_cond_t, pthread_rwlock_t): Likewise.
20385
20386 2015-07-30  Torvald Riegel  <triegel@redhat.com>
20387
20388         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
20389
20390 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20391
20392         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
20393         (struct sigaction): Change sa_flags from a long to an int, and add
20394         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
20395
20396 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20397
20398         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
20399         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
20400         sysdeps/generic/sysdep.h include.
20401         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
20402         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
20403         sysdeps/hppa/sysdep.h.
20404         (ENTRY, PSEUDO): Undefine before defining.
20405
20406 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20407
20408         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
20409         from scratch to use INTERNAL_SYSCALL.
20410
20411 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
20412
20413         [BZ #18078]
20414         * scripts/check-localplt.awk: Support alternate relocations.
20415         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
20416         sections.
20417         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
20418         malloc entries with + REL R_386_GLOB_DAT.
20419         * sysdeps/x86_64/localplt.data: New file.
20420
20421 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
20422
20423         [BZ #18731]
20424         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
20425         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20426         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
20427
20428 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20429
20430         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
20431
20432 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20433
20434         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
20435         directly in terms of __sync_fetch_and_add and delete (int) cast.
20436
20437 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20438
20439         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
20440         the -D_ASM_IA64_CURRENT_H flag.
20441
20442 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20443
20444         [BZ #18641]
20445         * pwd/pwd.h (putpwent): Delete __nonnull markings.
20446
20447 2015-07-27  Andreas Schwab  <schwab@suse.de>
20448
20449         * conform/conformtest.pl (checknamespace): Filter out string
20450         literals while tokenizing.
20451
20452 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20453
20454         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20455         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
20456         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20457
20458 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20459
20460         * nptl/tst-join7mod.c: Add #include <string.h>.
20461
20462 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20463
20464         * sysdeps/nios2/libm-test-ulps: Update.
20465
20466 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20467
20468         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
20469         Fix order of arguments to the rt_sigprocmask syscall.
20470         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
20471         Likewise.
20472
20473 2015-07-24  Roland McGrath  <roland@hack.frob.com>
20474
20475         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
20476
20477 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20478
20479         [BZ #18457]
20480         * nptl/Makefile (tests): New test case tst-join7.
20481         (modules-names): New test case module tst-join7mod.
20482         * nptl/tst-join7.c: New file.
20483         * nptl/tst-join7mod.c: New file.
20484         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
20485         all translation units in libc.so, libpthread.so and rtld.
20486
20487 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20488
20489         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20490
20491 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
20492
20493         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
20494         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
20495         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
20496         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
20497         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
20498         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
20499         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
20500         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20501         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20502         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20503         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20504         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20505         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
20506         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
20507         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
20508         implementation.
20509
20510 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20511
20512         [BZ #17711]
20513         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20514         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
20515         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20516         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20517         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
20518         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20519
20520 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20521
20522         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
20523         instead of just saying load lock in the comments.
20524
20525 2015-07-23  Roland McGrath  <roland@hack.frob.com>
20526
20527         * sysdeps/unix/Subdirs: Moved ...
20528         * sysdeps/posix/Subdirs: ... here.
20529         * login/pty.h (struct termios, struct winsize): Add forward decls.
20530         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
20531         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
20532         * sysdeps/arm/nacl/libc.abilist: Updated.
20533         * sysdeps/nacl/libutil.abilist: New file.
20534
20535         * bits/signum.h: Update comments to mention 1003.1-2013 too.
20536         (SIGWINCH): New macro.
20537
20538         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
20539         * sysdeps/arm/nacl/libc.abilist: Add it.
20540
20541 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20542
20543         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
20544
20545 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20546
20547         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20548         Swap __glibc_reserved0 and sa_flags order.
20549
20550 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
20551
20552         [BZ #18657]
20553         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
20554         are pending TLS destructor calls.
20555         * include/link.h (struct link_map): Add concurrency note for
20556         L_TLS_DTOR_COUNT.
20557         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
20558         Don't touch the link map flag.  Atomically increment
20559         l_tls_dtor_count.
20560         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
20561         Avoid taking the load lock and don't touch the link map flag.
20562         * stdlib/tst-tls-atexit-nodelete.c: New test case.
20563         * stdlib/Makefile (tests): Use it.
20564         * stdlib/tst-tls-atexit.c (do_test): dlopen
20565         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
20566         to allow tst-tls-atexit-nodelete test case to use it.
20567
20568 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20569
20570         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
20571         to bits/types.h.
20572         (msgqnum_t): New typedef.
20573         (msglen_t): Likewise.
20574         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
20575         and msg_qbytes type to msglen_t.
20576
20577 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20578
20579         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
20580         pad0 to __glibc_reserved0.
20581         (struct stat64): Likewise.
20582
20583 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20584
20585         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20586         Change sa_flags from a long to an int and add __glibc_reserved0 before
20587         it for padding.
20588
20589 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20590
20591         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
20592         anonymous by deleting "siginfo" name.
20593
20594 2015-07-21  Roland McGrath  <roland@hack.frob.com>
20595
20596         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
20597         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
20598         rather than __nacl_irt_filename.
20599         * sysdeps/nacl/xstat.c (__xstat): Likewise.
20600
20601         * NEWS: New item for arm-nacl port.
20602         * sysdeps/arm/nacl/libc.abilist: New file.
20603         * sysdeps/nacl/ld.abilist: New file.
20604         * sysdeps/nacl/libBrokenLocale.abilist: New file.
20605         * sysdeps/nacl/libanl.abilist: New file.
20606         * sysdeps/nacl/libcrypt.abilist: New file.
20607         * sysdeps/nacl/libdl.abilist: New file.
20608         * sysdeps/nacl/libm.abilist: New file.
20609         * sysdeps/nacl/libpthread.abilist: New file.
20610         * sysdeps/nacl/libresolv.abilist: New file.
20611         * sysdeps/nacl/librt.abilist: New file.
20612
20613 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
20614
20615         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
20616         __startcontext to initialize the new context.
20617         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
20618         up CFI directive to forbid further backtracing.
20619
20620 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
20621
20622         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
20623         reference.
20624         * charmaps/ANSI_X3.4-1968: Likewise.
20625         * charmaps/BS_4730: Likewise.
20626         * charmaps/BS_VIEWDATA: Likewise.
20627         * charmaps/CP1250: Likewise.
20628         * charmaps/CP1251: Likewise.
20629         * charmaps/CP1252: Likewise.
20630         * charmaps/CP1253: Likewise.
20631         * charmaps/CP1254: Likewise.
20632         * charmaps/CP1255: Likewise.
20633         * charmaps/CP1256: Likewise.
20634         * charmaps/CSN_369103: Likewise.
20635         * charmaps/EBCDIC-DK-NO: Likewise.
20636         * charmaps/GB_1988-80: Likewise.
20637         * charmaps/GREEK-CCITT: Likewise.
20638         * charmaps/GREEK7: Likewise.
20639         * charmaps/INIS-8: Likewise.
20640         * charmaps/ISIRI-3342: Likewise.
20641         * charmaps/ISO_2033-1983: Likewise.
20642         * charmaps/ISO_5427-EXT: Likewise.
20643         * locales/POSIX: Likewise.
20644         * locales/ar_SA: Likewise.
20645         * locales/be_BY: Likewise.
20646         * locales/be_BY@latin: Likewise.
20647         * locales/ca_ES: Likewise.
20648         * locales/cs_CZ: Likewise.
20649         * locales/da_DK: Likewise.
20650         * locales/de_BE: Likewise.
20651         * locales/de_CH: Likewise.
20652         * locales/de_LU: Likewise.
20653         * locales/en_AU: Likewise.
20654         * locales/en_BW: Likewise.
20655         * locales/en_CA: Likewise.
20656         * locales/en_DK: Likewise.
20657         * locales/en_GB: Likewise.
20658         * locales/en_IE: Likewise.
20659         * locales/en_NZ: Likewise.
20660         * locales/en_ZA: Likewise.
20661         * locales/en_ZW: Likewise.
20662         * locales/es_AR: Likewise.
20663         * locales/es_BO: Likewise.
20664         * locales/es_CL: Likewise.
20665         * locales/es_CO: Likewise.
20666         * locales/es_DO: Likewise.
20667         * locales/es_EC: Likewise.
20668         * locales/es_ES: Likewise.
20669         * locales/es_HN: Likewise.
20670         * locales/es_MX: Likewise.
20671         * locales/es_PA: Likewise.
20672         * locales/es_PE: Likewise.
20673         * locales/es_PY: Likewise.
20674         * locales/es_SV: Likewise.
20675         * locales/es_US: Likewise.
20676         * locales/es_UY: Likewise.
20677         * locales/es_VE: Likewise.
20678         * locales/et_EE: Likewise.
20679         * locales/fa_IR: Likewise.
20680         * locales/fo_FO: Likewise.
20681         * locales/fr_CA: Likewise.
20682         * locales/fr_CH: Likewise.
20683         * locales/gv_GB: Likewise.
20684         * locales/he_IL: Likewise.
20685         * locales/hr_HR: Likewise.
20686         * locales/id_ID: Likewise.
20687         * locales/is_IS: Likewise.
20688         * locales/it_CH: Likewise.
20689         * locales/iw_IL: Likewise.
20690         * locales/kl_GL: Likewise.
20691         * locales/ko_KR: Likewise.
20692         * locales/kw_GB: Likewise.
20693         * locales/lg_UG: Likewise.
20694         * locales/lt_LT: Likewise.
20695         * locales/lv_LV: Likewise.
20696         * locales/mi_NZ: Likewise.
20697         * locales/nhn_MX: Likewise.
20698         * locales/nl_BE: Likewise.
20699         * locales/pl_PL: Likewise.
20700         * locales/sk_SK: Likewise.
20701         * locales/sl_SI: Likewise.
20702         * locales/sv_FI: Likewise.
20703         * locales/tl_PH: Likewise.
20704         * locales/tr_TR: Likewise.
20705         * locales/vi_VN: Likewise.
20706
20707 2015-07-21  Khem Raj  <raj.khem@gmail.com>
20708
20709         [BZ #17475]
20710         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
20711         of tu_IN and bh_IN.
20712
20713 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
20714
20715         [BZ #18694]
20716         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
20717         bits/wordsize.h.
20718         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
20719
20720 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20721
20722         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
20723         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
20724         (spawn_thread): New function.
20725         (load): Rename to reg_dtor_and_close.  Move dlopen to...
20726         (do_test): ... here.  Use IS_LOADED to test for its
20727         availability.
20728
20729 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
20730
20731         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
20732
20733 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
20734
20735         [BZ #18696]
20736         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
20737         si_addr_bnd.
20738         (si_lower): New.
20739         (si_upper): Likewise.
20740
20741 2015-07-16  David S. Miller  <davem@davemloft.net>
20742
20743         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
20744
20745 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20746
20747         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
20748         buffer.
20749         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
20750         fail output information.
20751
20752 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20753
20754         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
20755         and strstr-ppc64..
20756         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
20757         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
20758         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
20759         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
20760         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
20761
20762 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
20763
20764         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
20765         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
20766         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
20767         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
20768
20769 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
20770
20771         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
20772         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
20773         rtld_hidden_proto.
20774         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
20775
20776 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
20777
20778         * tst-nodelete-opened.c (do_test): Add comment to clarify how
20779         the test can fail.
20780
20781         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
20782
20783         [BZ #18676]
20784         * elf/tst-nodelete-opened.c: New test case.
20785         * elf/tst-nodelete-opened-lib.c: New test case module.
20786         * elf/Makefile (tests, modules-names): Use them.
20787         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
20788         early.
20789
20790 2015-07-15  David S. Miller  <davem@davemloft.net>
20791
20792         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
20793         futex-intenal.h
20794         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
20795         * sysdeps/sparc/sparc64/Makefile: Likewise.
20796         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
20797         Remove space from macro define.
20798         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
20799
20800 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
20801
20802         [BZ #17475]
20803         * locale/iso-639.def: Update Bhili and Tulu language codes as
20804         per iso639-3.
20805
20806 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
20807
20808         * elf/tst-leaks1.c (main): Converted to ...
20809         (do_test): ... this.
20810         (TEST_FUNCTION): New macro.
20811         Include test-skeleton.c.
20812         * localedata/tst-langinfo.c (main): Converted to ...
20813         (do_test): ... this.
20814         (TEST_FUNCTION): New macro.
20815         Include test-skeleton.c.
20816         * math/test-fpucw.c (main): Converted to ...
20817         (do_test): ... this.
20818         (TEST_FUNCTION): New macro.
20819         Include test-skeleton.c.
20820         * math/test-tgmath.c (main): Converted to ...
20821         (do_test): ... this.
20822         (TEST_FUNCTION): New macro.
20823         Include test-skeleton.c.
20824         * math/test-tgmath2.c (main): Converted to ...
20825         (do_test): ... this.
20826         (TEST_FUNCTION): New macro.
20827         Include test-skeleton.c.
20828         * setjmp/tst-setjmp.c (main): Converted to ...
20829         (do_test): ... this.
20830         (TEST_FUNCTION): New macro.
20831         Include test-skeleton.c.
20832         * stdio-common/tst-sscanf.c (main): Converted to ...
20833         (do_test): ... this.
20834         (TEST_FUNCTION): New macro.
20835         Include test-skeleton.c.
20836         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
20837         (do_test): ... this.
20838         (TEST_FUNCTION): New macro.
20839         Include test-skeleton.c.
20840
20841         * elf/tst-audit9.c (main): Converted to ...
20842         (do_test): ... this.
20843         (TEST_FUNCTION): New macro.
20844         Include test-skeleton.c.
20845
20846 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
20847
20848         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
20849
20850 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
20851
20852         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
20853         New variable.
20854
20855 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
20856
20857         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20858
20859 2015-07-14  Roland McGrath  <roland@hack.frob.com>
20860
20861         * sysdeps/generic/dl-fileid.h: New file.
20862         * sysdeps/posix/dl-fileid.h: New file.
20863         * sysdeps/nacl/dl-fileid.h: New file.
20864         * include/link.h: Include <dl-fileid.h>.
20865         (struct link_map): Replace l_dev and l_ino with l_file_id.
20866         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
20867         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
20868         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
20869
20870 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20871
20872         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
20873
20874 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20875
20876         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
20877         Add iff $CXX is set.
20878         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
20879         Likewise.
20880         (tst-nodelete-zmodiff): Likewise.
20881         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
20882
20883 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20884
20885         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
20886
20887 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
20888
20889         * sysdeps/aarch64/fpu/math_private.h
20890         (define math_opt_barrier): Add AArch64 version.
20891         (math_force_eval): Likewise.
20892
20893 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
20894
20895         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
20896
20897 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
20898
20899         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
20900         %ld with %jd and cast to intmax_t.
20901         (do_test_length_zero): Likewise.
20902
20903 2015-07-10  Roland McGrath  <roland@hack.frob.com>
20904
20905         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
20906
20907 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
20908
20909         * sysdeps/tile/libm-test-ulps: Regenerated.
20910
20911         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
20912         Comment out the whole function, not just its body.
20913
20914 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
20915
20916         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
20917         locks.
20918
20919         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
20920
20921 2015-07-10  Torvald Riegel  <triegel@redhat.com>
20922
20923         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
20924         (sem_assume_only_signals_cause_futex_EINTR): Remove.
20925
20926 2015-07-10  Torvald Riegel  <triegel@redhat.com>
20927
20928         * sysdeps/nptl/futex-internal.h: New file.
20929         * sysdeps/nacl/futex-internal.h: New file.
20930         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
20931         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
20932         error checking.
20933         (setxid_unmark_thread): Likewise.
20934         (__nptl_setxid): Likewise.
20935         (__wait_lookup_done): Likewise.
20936         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
20937         * nptl/nptl-init.c (sighandler_setxid): Likewise.
20938         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
20939         * nptl/pthread_once.c (clear_once_control): Likewise.
20940         (__pthread_once_slow): Likewise.
20941         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
20942         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
20943         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
20944         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20945         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
20946         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
20947         Likewise.
20948         (__pthread_rwlock_rdlock): Likewise.
20949         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
20950         Likewise.
20951         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
20952         Likewise.
20953         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
20954         Likewise.
20955         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
20956         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
20957         Likewise.
20958         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
20959         __ASSUME_PRIVATE_FUTEX check.
20960         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
20961         Check that shared futexes are supported.
20962         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
20963         wrappers with error checking.
20964         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
20965         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
20966         * nptl/pthread_barrierattr_setpshared.c
20967         (pthread_barrierattr_setpshared): Check that shared futexes are
20968         supported.
20969         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
20970         Likewise.
20971         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
20972         Likewise.
20973         * nptl/sem_init.c (futex_private_if_supported): Remove.
20974         (__new_sem_init): Adapt and check that shared futexes are supported.
20975         * nptl/sem_open.c (sem_open): Likewise.
20976         * nptl/sem_post.c (futex_wake): Remove.
20977         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
20978         (do_futex_wait): Use futex wrappers with error checking.
20979         * nptl/sem_wait.c: Include lowlevellock.h.
20980         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
20981         Use futex_supports_pshared.
20982         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
20983         Use futex wrappers with error checking.
20984         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
20985         Likewise.
20986         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
20987         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
20988         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
20989         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
20990         (futex_wake): Likewise.
20991         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
20992         (do_futex_wait): Use futex wrappers with error checking.
20993         (__new_sem_wait_slow): Update EINTR handling.
20994         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
20995
20996 2015-07-09  Martin Sebor  <msebor@redhat.com>
20997
20998         [BZ #18435]
20999         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21000         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
21001         * nptl/Makefile (test-xfail-tst-once5): Define.
21002
21003 2015-07-09  Roland McGrath  <roland@hack.frob.com>
21004
21005         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
21006         * elf/dl-minimal.c: For readability, reorder some definitions and
21007         introduce more page breaks.  Include <stdio.h>.
21008         (__libc_fatal): New function.
21009
21010         * include/unistd.h: Add rtld_hidden_proto for _exit.
21011         * posix/_exit.c: Add rtld_hidden_def.
21012         * sysdeps/mach/hurd/_exit.c: Likewise.
21013         * sysdeps/nacl/_exit.c: Likewise.
21014         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
21015         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
21016
21017 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21018
21019         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
21020         bndmov encoding with zero displacement.
21021
21022 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
21023             H.J. Lu  <hongjiu.lu@intel.com>
21024
21025         [BZ #18134]
21026         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
21027         * sysdeps/i386/configure: Regenerated.
21028         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
21029         (_dl_runtime_profile): Save and restore Intel MPX return bound
21030         registers when calling _dl_call_pltexit.  Add
21031         PRESERVE_BND_REGS_PREFIX before return.
21032         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
21033         (LRV_BND1_OFFSET): Likewise.
21034         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
21035         lrv_bnd1.
21036         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
21037         typo in bndmov encoding.
21038         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
21039         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
21040         branch instructions to preserve bounds.
21041
21042 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21043
21044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
21045         [GLIBC_2.22]: Add fmemopen.
21046
21047 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21048
21049         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
21050         returns an error, also try to use host port from __mach_host_self for
21051         the __vm_wire call.
21052         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
21053
21054 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21055
21056         [BZ #18400]
21057         [BZ #18648]
21058         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
21059         Fix pr_uid and pr_gid members.
21060         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
21061         definition to elf_greg_t.
21062
21063 2015-07-08  Roland McGrath  <roland@hack.frob.com>
21064
21065         [BZ #18383]
21066         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
21067         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
21068         * sysdeps/arm/configure: Regenerated.
21069         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
21070         (test-xfail-tst-tlsalign-static): Variable removed.
21071
21072         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
21073         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
21074         rather than explicit 'ln -s'.
21075
21076         * resolv/rpc/netdb.h: New file.
21077         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
21078
21079 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21080
21081         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
21082         length buffers.
21083         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
21084         test-skeleton.c.
21085
21086         [BZ #6544]
21087         [BZ #11216]
21088         [BZ #12836]
21089         [BZ #13151]
21090         [BZ #13152]
21091         [BZ #14292]
21092         * include/stdio.h (fmemopen): Remove hidden prototype.
21093         (__fmemopen): Add new hidden prototype.
21094         * libio/Makefile: Add oldfmemopen object.
21095         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
21096         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
21097         compliance.
21098         * libio/oldfmemopen.c: New file: old fmemopen implementation for
21099         symbol compatibility.
21100         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
21101         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
21102         fmemopen.
21103         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
21104         on append and read mode.
21105         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
21106         fmemopen.
21107         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
21108         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
21109         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
21110         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
21111         Likewise.
21112         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
21113         [GLIBC_2.22]: Likewise.
21114         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
21115         Likewise.
21116         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
21117         Likewise.
21118         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
21119         [GLIBC_2.22]: Likewise.
21120         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
21121         [GLIBC_2.22]: Likewise.
21122         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
21123         [GLIBC_2.22]: Likewise.
21124         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
21125         [GLIBC_2.22]: Likewise.
21126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
21127         [GLIBC_2.22]: Likewise.
21128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
21129         [GLIBC_2.22]: Likewise.
21130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
21131         [GLIBC_2.22]: Likewise.
21132         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
21133         Likewise.
21134         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
21135         Likewise.
21136         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
21137         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
21138         [GLIBC_2.22]: Likewise.
21139         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
21140         [GLIBC_2.22]: Likewise.
21141         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
21142         [GLIBC_2.22]: Likewise.
21143         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
21144         [GLIBC_2.22]: Likewise.
21145         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
21146         Likewise.
21147         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
21148         Likewise.
21149         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
21150         Likewise.
21151         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
21152         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
21153
21154 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21155
21156         [BZ #18643]
21157         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
21158         IPV6_PATHMTU, and IPV6_DONTFRAG.
21159
21160 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
21161
21162         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
21163         and _IO_UNBUFFERED.
21164         * libio/oldfileops.c: Likewise.
21165         * libio/wfileops.c: Likewise.
21166
21167 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21168
21169         * nscd/selinux.c: Delete selinux/flask.h include.
21170
21171 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21172
21173         [BZ #18641]
21174         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
21175         (putpwent): Likewise.
21176         (getpwnam): Likewise.
21177         (getpwent_r): Likewise.
21178         (getpwuid_r): Likewise.
21179         (getpwnam_r): Likewise.
21180         (fgetpwent_r): Likewise.
21181
21182 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21183
21184         [BZ #18557]
21185         * inet/rcmd.c (__validuser2_sa): Check user first to
21186         short-circuit host check.
21187
21188 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
21189             Mikhail Ilin  <m.ilin@samsung.com>
21190
21191         [BZ #17833]
21192         * elf/Makefile (tests): Add tst-nodelete.
21193         (modules-names): Add tst-nodelete-uniquemod.
21194         (tst-nodelete-uniquemod.so-no-z-defs): New.
21195         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
21196         (tst-nodelete-zmod.so-no-z-defs): Likewise.
21197         ($(objpfx)tst-nodelete): Likewise.
21198         ($(objpfx)tst-nodelete.out): Likewise.
21199         (LDFLAGS-tst-nodelete): Likewise.
21200         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
21201         * elf/dl-close.c (_dl_close_worker): Add a parameter to
21202         implement forced object deletion.
21203         (_dl_close): Pass false to _dl_close_worker.
21204         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
21205         * elf/tst-nodelete.cc: New file.
21206         * elf/tst-nodeletelib.cc: Likewise.
21207         * elf/tst-znodeletelib.cc: Likewise.
21208         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
21209
21210 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21211
21212         [BZ #18508]
21213         * stdlib/Makefile ($(objpfx)tst-makecontext3):
21214         Depend on $(libdl).
21215         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
21216         is not called infinitely times.
21217         (backtrace_helper): New function.
21218         (trace_arg): New struct.
21219         (st1): Enlarge stack size.
21220         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21221         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
21222         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21223         Likewise.
21224
21225 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21226
21227         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21228
21229 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21230
21231         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
21232         Include sys/types.h instead of bits/types.h.
21233         Remove inclusion of bits/wordsize.h.
21234
21235 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21236
21237         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
21238         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
21239         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
21240         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
21241         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
21242         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
21243
21244 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21245
21246         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
21247         link-defines.sym.
21248         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
21249         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
21250         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
21251         and LR_SIZE.
21252         * sysdeps/i386/link-defines.sym: New file.
21253
21254 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21255
21256         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
21257         (modules-names): Add tst-auditmod3a tst-auditmod3b.
21258         ($(objpfx)tst-audit3): New rule.
21259         ($(objpfx)tst-audit3.out): Likewise.
21260         * sysdeps/i386/tst-audit3.c: New file.
21261         * sysdeps/i386/tst-audit3.h: Likewise.
21262         * sysdeps/i386/tst-auditmod3a.c: Likewise.
21263         * sysdeps/i386/tst-auditmod3b.c: Likewise.
21264
21265 2015-07-07  Torvald Riegel  <triegel@redhat.com>
21266
21267         [BZ #18633]
21268         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
21269         pointer in C code.
21270         (__strcat_c): Likewise.
21271         (__strcat_g): Likewise.
21272
21273 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
21274
21275         [BZ #18592]
21276         * misc/sbrk.c: Set errno to ENOMEM on overflow.
21277
21278 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21279
21280         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
21281         New function.  (__ieee754_sqrtf): New function.
21282         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
21283         New function.
21284         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
21285         New function.
21286
21287 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21288
21289         * sysdeps/ieee754/support.c: Remove unused file.
21290
21291 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21292
21293         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
21294         registers instead of d ones so the layout is kernel abi compatible.
21295         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
21296         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
21297         Likewise.
21298
21299 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21300
21301         * sysdeps/aarch64/libm-test-ulps: Regenerated.
21302
21303 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21304
21305         [BZ #18619]
21306         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
21307         and return argument in case of subnormal argument.
21308
21309 2015-07-01  Martin Sebor  <msebor@redhat.com>
21310
21311         [BZ #18435]
21312         * nptl/Makefile: Add tst-once5.cc.
21313         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21314         Remove macro redefinitions.
21315         * nptl/tst-once5.cc: New test.
21316
21317 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21318
21319         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
21320
21321         * sysdeps/arm/libm-test-ulps: Regenerated.
21322
21323         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
21324         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21325
21326 2015-06-30  Torvald Riegel  <triegel@redhat.com>
21327
21328         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
21329         lll_lock_wait_private and lll_futex_wake probes.
21330
21331         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21332         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
21333         Likewise.
21334         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
21335         atomic_spin_nop.
21336         * sysdeps/x86_64/bits/atomic.h: Likewise.
21337         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
21338         to atomic_spin_nop and move ...
21339         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21340         ... here and ...
21341         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
21342         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
21343         atomic_spin_nop instead of BUSY_WAIT_NOP.
21344         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
21345         Likewise.
21346         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
21347         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21348         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
21349         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
21350         instead of atomic_delay.
21351
21352 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
21353
21354         [BZ #18613]
21355         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
21356         X_ADJ not X when adjusting exponent.
21357         (__ieee754_gamma_r): Do intermediate computations in
21358         round-to-nearest then adjust overflowing and underflowing results
21359         as needed.
21360         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
21361         of X_ADJ not X when adjusting exponent.
21362         (__ieee754_gammaf_r): Do intermediate computations in
21363         round-to-nearest then adjust overflowing and underflowing results
21364         as needed.
21365         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
21366         log of X_ADJ not X when adjusting exponent.
21367         (__ieee754_gammal_r): Do intermediate computations in
21368         round-to-nearest then adjust overflowing and underflowing results
21369         as needed.  Use 1.0L not 1.0f as numerator of division.
21370         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
21371         log of X_ADJ not X when adjusting exponent.
21372         (__ieee754_gammal_r): Do intermediate computations in
21373         round-to-nearest then adjust overflowing and underflowing results
21374         as needed.  Use 1.0L not 1.0f as numerator of division.
21375         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
21376         of X_ADJ not X when adjusting exponent.
21377         (__ieee754_gammal_r): Do intermediate computations in
21378         round-to-nearest then adjust overflowing and underflowing results
21379         as needed.  Use 1.0L not 1.0f as numerator of division.
21380         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
21381         to auto-libm-test-in.
21382         (tgamma_test): Use ALL_RM_TEST.
21383         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
21384         tests of tgamma with spurious-overflow.
21385         * math/auto-libm-test-out: Regenerated.
21386         * math/gen-libm-have-vector-test.sh: Do not check for START.
21387         * sysdeps/i386/fpu/libm-test-ulps: Update.
21388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21389
21390         [BZ #18612]
21391         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
21392         arguments, just return 0.5 times the argument, with underflow
21393         forced as needed.
21394         * math/auto-libm-test-in: Add more tests of j1.
21395         * math/auto-libm-test-out: Regenerated.
21396
21397         [BZ #16559]
21398         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
21399         (__ieee754_j1): Force underflow exception for small results.
21400         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21401         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
21402         (__ieee754_j1f): Force underflow exception for small results.
21403         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21404         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21405         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21406         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
21407         (__ieee754_j1l): Force underflow exception for small results.
21408         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21409         * math/auto-libm-test-in: Add more tests of j1 and jn.
21410         * math/auto-libm-test-out: Regenerated.
21411
21412         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
21413         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
21414         (PF_MPLS): Likewise.
21415         (AF_IB): Likewise.
21416         (AF_MPLS): Likewise.
21417         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
21418         value and macro.
21419         (MS_RMT_MASK): Include MS_LAZYTIME.
21420
21421 2015-06-26  Mel Gorman  <mgorman@suse.de>
21422
21423         [BZ #18502]
21424         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
21425         already minimal.
21426
21427 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
21428
21429         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
21430         (DT_MIPS_NUM): Update.
21431         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
21432         DT_MIPS_RLD_MAP_REL.
21433
21434 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
21435
21436         [BZ #16559]
21437         [BZ #18602]
21438         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
21439         round-to-nearest internally then recompute results that
21440         underflowed to zero in the original rounding mode.
21441         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21442         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21443         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21444         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21445         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
21446         * sysdeps/i386/fpu/libm-test-ulps: Update.
21447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21448
21449 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
21450
21451         * NEWS: Fixed description of link with vector math library.
21452
21453 2015-06-25  Andreas Schwab  <schwab@suse.de>
21454
21455         [BZ #18549]
21456         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
21457         * libio/test-fmemopen.c (do_test): Add test for it.
21458
21459 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21460
21461         [BZ #17841]
21462         * Makeconfig (no-pie-ldflag): New.
21463         (+link): Set to $(+link-pie) if default to PIE.
21464         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
21465         * config.make.in (build-pie-default): New.
21466         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
21467         is default.  AC_SUBST.
21468         * configure: Regenerated.
21469         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
21470
21471 2015-06-24  Roland McGrath  <roland@hack.frob.com>
21472
21473         * nptl/descr.h (struct pthread): Change type of field setxid_futex
21474         to 'unsigned int'.
21475
21476         * resolv/gai_misc.h (struct waitlist): Change type of field
21477         counterp to 'volatile unsigned int *'.
21478         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
21479         FUTEXADDR and OLDVAL.
21480         * resolv/getaddrinfo_a.c (getaddrinfo_a):
21481         Give local variable TOTAL type 'volatile unsigned int'.
21482         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21483         * resolv/gai_suspend.c (gai_suspend):
21484         Give local variable CNTR type 'unsigned int'.
21485
21486         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
21487         counterp to 'volatile unsigned int *'.
21488         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
21489         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
21490         (aio_suspend): Give local variable CNTR type 'unsigned int'.
21491         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
21492         Give local variable TOTAL type 'volatile unsigned int'.
21493         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21494
21495 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21496
21497         [BZ #18383]
21498         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
21499         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
21500         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
21501         comment for i386/x86-64.
21502         (test-xfail-tst-tlsalign-extern-static): Removed.
21503
21504 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
21505
21506         * math/test-double.h: New file.
21507         * math/test-float.h: Likewise.
21508         * math/test-ldouble.h: Likewise.
21509         * math/test-math-inline.h: Likewise.
21510         * math/test-math-no-inline.h: Likewise.
21511         * math/test-math-scalar.h: Likewise.
21512         * math/test-math-vector.h: Likewise.
21513         * math/test-vec-loop.h: Remove file.  Contents moved into
21514         test-math-vector.h.
21515         * math/libm-test.inc (MATHCONST): Do not document macro.
21516         * math/test-double.c: Include test-double.h, test-math-no-inline.h
21517         and test-math-scalar.h.
21518         (FUNC): Remove macro.
21519         (FUNC_TEST): Likewise.
21520         (FLOAT): Likewise.
21521         (MATHCONST): Likewise.
21522         (PRINTF_EXPR): Likewise.
21523         (PRINTF_XEXPR): Likewise.
21524         (PRINTF_NEXPR): Likewise.
21525         (TEST_DOUBLE): Likewise.
21526         (TEST_MATHVEC): Likewise.
21527         (__NO_MATH_INLINES): Likewise.
21528         * math/test-float.c: Include test-float.h, test-math-no-inline.h
21529         and test-math-scalar.h.
21530         (FUNC): Remove macro.
21531         (FUNC_TEST): Likewise.
21532         (FLOAT): Likewise.
21533         (MATHCONST): Likewise.
21534         (PRINTF_EXPR): Likewise.
21535         (PRINTF_XEXPR): Likewise.
21536         (PRINTF_NEXPR): Likewise.
21537         (TEST_FLOAT): Likewise.
21538         (TEST_MATHVEC): Likewise.
21539         (__NO_MATH_INLINES): Likewise.
21540         * math/test-idouble.c: Include test-double.h, test-math-inline.h
21541         and test-math-scalar.h.
21542         (FUNC): Remove macro.
21543         (FUNC_TEST): Likewise.
21544         (FLOAT): Likewise.
21545         (MATHCONST): Likewise.
21546         (PRINTF_EXPR): Likewise.
21547         (PRINTF_XEXPR): Likewise.
21548         (PRINTF_NEXPR): Likewise.
21549         (TEST_DOUBLE): Likewise.
21550         (TEST_MATHVEC): Likewise.
21551         (TEST_INLINE): Likewise.
21552         (__NO_MATH_INLINES): Likewise.
21553         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
21554         test-math-scalar.h.
21555         (FUNC): Remove macro.
21556         (FUNC_TEST): Likewise.
21557         (FLOAT): Likewise.
21558         (MATHCONST): Likewise.
21559         (PRINTF_EXPR): Likewise.
21560         (PRINTF_XEXPR): Likewise.
21561         (PRINTF_NEXPR): Likewise.
21562         (TEST_FLOAT): Likewise.
21563         (TEST_MATHVEC): Likewise.
21564         (TEST_INLINE): Likewise.
21565         (__NO_MATH_INLINES): Likewise.
21566         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
21567         and test-math-scalar.h.
21568         (FUNC): Remove macro.
21569         (FUNC_TEST): Likewise.
21570         (FLOAT): Likewise.
21571         (MATHCONST): Likewise.
21572         (PRINTF_EXPR): Likewise.
21573         (PRINTF_XEXPR): Likewise.
21574         (PRINTF_NEXPR): Likewise.
21575         (TEST_LDOUBLE): Likewise.
21576         (TEST_MATHVEC): Likewise.
21577         (TEST_INLINE): Likewise.
21578         (__NO_MATH_INLINES): Likewise.
21579         * math/test-ldouble.c: Include test-ldouble.h,
21580         test-math-no-inline.h and test-math-scalar.h.
21581         (FUNC): Remove macro.
21582         (FUNC_TEST): Likewise.
21583         (FLOAT): Likewise.
21584         (MATHCONST): Likewise.
21585         (PRINTF_EXPR): Likewise.
21586         (PRINTF_XEXPR): Likewise.
21587         (PRINTF_NEXPR): Likewise.
21588         (TEST_LDOUBLE): Likewise.
21589         (TEST_MATHVEC): Likewise.
21590         (__NO_MATH_INLINES): Likewise.
21591         * math/test-double-vlen2.h: Include test-double.h,
21592         test-math-no-inline.h and test-math-vector.h.
21593         (FLOAT): Remove macro.
21594         (FUNC): Likewise.
21595         (MATHCONST): Likewise.
21596         (PRINTF_EXPR): Likewise.
21597         (PRINTF_XEXPR): Likewise.
21598         (PRINTF_NEXPR): Likewise.
21599         (TEST_DOUBLE): Likewise.
21600         (TEST_MATHVEC): Likewise.
21601         (__NO_MATH_INLINES): Likewise.
21602         (CNCT): Likewise.
21603         (CONCAT): Likewise.
21604         (WRAPPER_NAME): Likewise.
21605         (WRAPPER_DECL): Likewise.
21606         (WRAPPER_DECL_ff): Likewise.
21607         (WRAPPER_DECL_fFF): Likewise.
21608         (VECTOR_WRAPPER): Likewise.
21609         (VECTOR_WRAPPER_ff): Likewise.
21610         (VECTOR_WRAPPER_fFF): Likewise.
21611         (VEC_LEN): New macro.
21612         * math/test-double-vlen4.h: Include test-double.h,
21613         test-math-no-inline.h and test-math-vector.h.
21614         (FLOAT): Remove macro.
21615         (FUNC): Likewise.
21616         (MATHCONST): Likewise.
21617         (PRINTF_EXPR): Likewise.
21618         (PRINTF_XEXPR): Likewise.
21619         (PRINTF_NEXPR): Likewise.
21620         (TEST_DOUBLE): Likewise.
21621         (TEST_MATHVEC): Likewise.
21622         (__NO_MATH_INLINES): Likewise.
21623         (CNCT): Likewise.
21624         (CONCAT): Likewise.
21625         (WRAPPER_NAME): Likewise.
21626         (WRAPPER_DECL): Likewise.
21627         (WRAPPER_DECL_ff): Likewise.
21628         (WRAPPER_DECL_fFF): Likewise.
21629         (VECTOR_WRAPPER): Likewise.
21630         (VECTOR_WRAPPER_ff): Likewise.
21631         (VECTOR_WRAPPER_fFF): Likewise.
21632         (VEC_LEN): New macro.
21633         * math/test-double-vlen8.h: Include test-double.h,
21634         test-math-no-inline.h and test-math-vector.h.
21635         (FLOAT): Remove macro.
21636         (FUNC): Likewise.
21637         (MATHCONST): Likewise.
21638         (PRINTF_EXPR): Likewise.
21639         (PRINTF_XEXPR): Likewise.
21640         (PRINTF_NEXPR): Likewise.
21641         (TEST_DOUBLE): Likewise.
21642         (TEST_MATHVEC): Likewise.
21643         (__NO_MATH_INLINES): Likewise.
21644         (CNCT): Likewise.
21645         (CONCAT): Likewise.
21646         (WRAPPER_NAME): Likewise.
21647         (WRAPPER_DECL): Likewise.
21648         (WRAPPER_DECL_ff): Likewise.
21649         (WRAPPER_DECL_fFF): Likewise.
21650         (VECTOR_WRAPPER): Likewise.
21651         (VECTOR_WRAPPER_ff): Likewise.
21652         (VECTOR_WRAPPER_fFF): Likewise.
21653         (VEC_LEN): New macro.
21654         * math/test-float-vlen4.h: Include test-float.h,
21655         test-math-no-inline.h and test-math-vector.h.
21656         (FLOAT): Remove macro.
21657         (FUNC): Likewise.
21658         (MATHCONST): Likewise.
21659         (PRINTF_EXPR): Likewise.
21660         (PRINTF_XEXPR): Likewise.
21661         (PRINTF_NEXPR): Likewise.
21662         (TEST_FLOAT): Likewise.
21663         (TEST_MATHVEC): Likewise.
21664         (__NO_MATH_INLINES): Likewise.
21665         (CNCT): Likewise.
21666         (CONCAT): Likewise.
21667         (WRAPPER_NAME): Likewise.
21668         (WRAPPER_DECL): Likewise.
21669         (WRAPPER_DECL_ff): Likewise.
21670         (WRAPPER_DECL_fFF): Likewise.
21671         (VECTOR_WRAPPER): Likewise.
21672         (VECTOR_WRAPPER_ff): Likewise.
21673         (VECTOR_WRAPPER_fFF): Likewise.
21674         (VEC_LEN): New macro.
21675         * math/test-float-vlen8.h: Include test-float.h,
21676         test-math-no-inline.h and test-math-vector.h.
21677         (FLOAT): Remove macro.
21678         (FUNC): Likewise.
21679         (MATHCONST): Likewise.
21680         (PRINTF_EXPR): Likewise.
21681         (PRINTF_XEXPR): Likewise.
21682         (PRINTF_NEXPR): Likewise.
21683         (TEST_FLOAT): Likewise.
21684         (TEST_MATHVEC): Likewise.
21685         (__NO_MATH_INLINES): Likewise.
21686         (CNCT): Likewise.
21687         (CONCAT): Likewise.
21688         (WRAPPER_NAME): Likewise.
21689         (WRAPPER_DECL): Likewise.
21690         (WRAPPER_DECL_ff): Likewise.
21691         (WRAPPER_DECL_fFF): Likewise.
21692         (VECTOR_WRAPPER): Likewise.
21693         (VECTOR_WRAPPER_ff): Likewise.
21694         (VECTOR_WRAPPER_fFF): Likewise.
21695         (VEC_LEN): New macro.
21696         * math/test-float-vlen16.h: Include test-float.h,
21697         test-math-no-inline.h and test-math-vector.h.
21698         (FLOAT): Remove macro.
21699         (FUNC): Likewise.
21700         (MATHCONST): Likewise.
21701         (PRINTF_EXPR): Likewise.
21702         (PRINTF_XEXPR): Likewise.
21703         (PRINTF_NEXPR): Likewise.
21704         (TEST_FLOAT): Likewise.
21705         (TEST_MATHVEC): Likewise.
21706         (__NO_MATH_INLINES): Likewise.
21707         (CNCT): Likewise.
21708         (CONCAT): Likewise.
21709         (WRAPPER_NAME): Likewise.
21710         (WRAPPER_DECL): Likewise.
21711         (WRAPPER_DECL_ff): Likewise.
21712         (WRAPPER_DECL_fFF): Likewise.
21713         (VECTOR_WRAPPER): Likewise.
21714         (VECTOR_WRAPPER_ff): Likewise.
21715         (VECTOR_WRAPPER_fFF): Likewise.
21716         (VEC_LEN): New macro.
21717         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
21718         test-vec-loop.h.
21719         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
21720         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
21721         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
21722         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
21723         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
21724         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
21725         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
21726
21727 2015-06-24  Roland McGrath  <roland@hack.frob.com>
21728
21729         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
21730         (__getlogin_r): ... this.
21731
21732 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
21733
21734         [BZ #18594]
21735         * math/s_ccosh.c (__ccosh): Compare with least normal value
21736         instead of comparing class with FP_SUBNORMAL.
21737         * math/s_ccoshf.c (__ccoshf): Likewise.
21738         * math/s_ccoshl.c (__ccoshl): Likewise.
21739         * math/s_cexp.c (__cexp): Likewise.
21740         * math/s_cexpf.c (__cexpf): Likewise.
21741         * math/s_cexpl.c (__cexpl): Likewise.
21742         * math/s_csin.c (__csin): Likewise.
21743         * math/s_csinf.c (__csinf): Likewise.
21744         * math/s_csinh.c (__csinh): Likewise.
21745         * math/s_csinhf.c (__csinhf): Likewise.
21746         * math/s_csinhl.c (__csinhl): Likewise.
21747         * math/s_csinl.c (__csinl): Likewise.
21748         * math/s_ctan.c (__ctan): Likewise.
21749         * math/s_ctanf.c (__ctanf): Likewise.
21750         * math/s_ctanh.c (__ctanh): Likewise.
21751         * math/s_ctanhf.c (__ctanhf): Likewise.
21752         * math/s_ctanhl.c (__ctanhl): Likewise.
21753         * math/s_ctanl.c (__ctanl): Likewise.
21754         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
21755         csin, csinh, ctan and ctanh.
21756         * math/auto-libm-test-out: Regenerated.
21757         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
21758         * sysdeps/i386/fpu/libm-test-ulps: Update.
21759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21760
21761 2015-06-24  Roland McGrath  <roland@hack.frob.com>
21762
21763         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
21764         return value is wrong, print the expected value too.
21765
21766 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21767
21768         [BZ #18585]
21769         * elf/readlib.c (is_gdb_python_file): New.
21770         (process_file): Don't issue errors on filenames with -gdb.py
21771         suffix.
21772
21773 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
21774
21775         * math/auto-libm-test-in: Add more tests of csin and csinh.
21776         * math/auto-libm-test-out: Regenerated.
21777         * math/libm-test.inc (csin_test_data): Remove tests moved to
21778         auto-libm-test-in.
21779         (csinh_test_data): Likewise.
21780
21781         [BZ #18593]
21782         * math/s_csin.c (__csin): Negate before rather than after possibly
21783         overflowing multiplication.
21784         * math/s_csinf.c (__csinf): Likewise.
21785         * math/s_csinh.c (__csinh): Likewise.
21786         * math/s_csinhf.c (__csinhf): Likewise.
21787         * math/s_csinhl.c (__csinhl): Likewise.
21788         * math/s_csinl.c (__csinl): Likewise.
21789         * math/auto-libm-test-in: Add some tests of csin and csinh.
21790         * math/auto-libm-test-out: Regenerated.
21791         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
21792         (csinh_test_data): Likewise.
21793         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21794
21795         [BZ #18586]
21796         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
21797         underflow exception for small results.
21798
21799 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
21800
21801         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
21802         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
21803         variable and included header.
21804         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
21805         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
21806         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
21807         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
21808         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
21809         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
21810         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
21811         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
21812         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
21813         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
21814         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
21815         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
21816         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
21817         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
21818         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
21819         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
21820
21821 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
21822
21823         [BZ #16526]
21824         [BZ #16538]
21825         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
21826         (__sin): Force underflow exception for arguments with small
21827         absolute value.
21828         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
21829         (__kernel_sinf): Force underflow exception for arguments with
21830         small absolute value.
21831         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
21832         (__kernel_sincosl): Force underflow exception for arguments with
21833         small absolute value.
21834         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
21835         (__kernel_sinl): Force underflow exception for arguments with
21836         small absolute value.
21837         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
21838         (__kernel_sincosl): Force underflow exception for arguments with
21839         small absolute value.
21840         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
21841         (__kernel_sinl): Force underflow exception for arguments with
21842         small absolute value.
21843         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
21844         (__kernel_sinl): Force underflow exception for arguments with
21845         small absolute value.
21846         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
21847         (__kernel_sinf): Force underflow exception for arguments with
21848         small absolute value.
21849         * math/auto-libm-test-in: Add more tests of sin and sincos.
21850         * math/auto-libm-test-out: Regenerated.
21851
21852         [BZ #18245]
21853         [BZ #18583]
21854         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
21855         (__kernel_standard_l): Use feholdexcept and fesetenv around
21856         conversion to double instead of special-casing overflow and
21857         underflow.
21858         * math/libm-test.inc (fmod_test_data): Add more tests.
21859         (remainder_test_data): Likewise.
21860         (sqrt_test_data): Likewise.
21861
21862 2015-06-23  Torvald Riegel  <triegel@redhat.com>
21863
21864         [BZ #17403]
21865         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
21866         atomic_read_barrier, atomic_write_barrier): Define.
21867         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
21868         atomic_read_barrier, atomic_write_barrier): Define.
21869
21870 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
21871
21872         * math/Makefile [$(PERL) != no]
21873         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
21874         dependency on libm-test.stmp below the inclusion of Rules.
21875
21876 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
21877
21878         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
21879         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
21880         and included header.
21881         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
21882         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
21883         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
21884         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
21885         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
21886         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
21887         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
21888         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
21889         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
21890         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
21891         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
21892         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
21893         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
21894         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
21895         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
21896         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
21897         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
21898         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
21899         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
21900
21901 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
21902
21903         [BZ #18371]
21904         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
21905         intermediate but not final result might underflow.
21906         * math/s_csqrtf.c (__csqrtf): Likewise.
21907         * math/s_csqrtl.c (__csqrtl): Likewise.
21908         * math/auto-libm-test-in: Add more tests of csqrt.
21909         * math/auto-libm-test-out: Regenerated.
21910         * sysdeps/i386/fpu/libm-test-ulps: Update.
21911
21912         [BZ #18219]
21913         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
21914         threshold on absolute value of exponent for which scaling is used.
21915         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
21916         * math/auto-libm-test-in: Add more tests of exp2.
21917         * math/auto-libm-test-out: Regenerated.
21918
21919 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
21920
21921         [BZ #17977]
21922         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
21923         when initializing interface list, based on the bug analysis
21924         and the patch proposed by Eric Newton.
21925         * resolv/tst-res_hconf_reorder.c: New test.
21926         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
21927         tst-res_hconf_reorder.
21928         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
21929         and $(shared-thread-library).
21930         (tst-res_hconf_reorder-ENV): New variable.
21931
21932         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
21933         in comment.
21934
21935 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
21936
21937         [BZ #16353]
21938         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
21939         (__expm1): Force underflow exception for arguments with small
21940         absolute value.
21941         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
21942         (__expm1f): Force underflow exception for arguments with small
21943         absolute value.
21944         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
21945         (__expm1): Force underflow exception for arguments with small
21946         absolute value.
21947         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
21948         (__expm1f): Force underflow exception for arguments with small
21949         absolute value.
21950         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
21951         Check for small arguments before calling __expm1.
21952         * math/auto-libm-test-in: Do not mark underflow exceptions as
21953         possibly missing for bug 16353.
21954         * math/auto-libm-test-out: Regenerated.
21955
21956 2015-06-22  Andreas Schwab  <schwab@suse.de>
21957
21958         [BZ #18513]
21959         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
21960         PTR queries.
21961
21962 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
21963
21964         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
21965
21966         * string/strcoll_l.c: Remove unused struct element idxnow.
21967
21968 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
21969
21970         [BZ #18569]
21971         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
21972         underflow and return argument in case of subnormal argument.
21973         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
21974         Likewise.
21975         * math/auto-libm-test-in: Add more tests of expm1.
21976         * math/auto-libm-test-out: Regenerated.
21977
21978         [BZ #16361]
21979         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
21980         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
21981         tiny results.
21982         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
21983         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
21984         tiny results.
21985         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
21986         mark underflow exceptions as possibly missing for bug 16361.
21987         * math/auto-libm-test-out: Regenerated.
21988
21989 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
21990
21991         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
21992         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
21993         Remove variable.
21994         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
21995         (test-xfail-XOPEN2K8/utmpx.h/conform).
21996
21997         * conform/conformtest.pl ($xerrors): New variable.
21998         (note_error): New function.
21999         (compiletest): New argument $xfail.  Use not_error.
22000         (runtest): Likewise.
22001         (top level): Handle xfail- lines.  Update calls to compiletest and
22002         runtest.  Handle xfail- and optional- in headers listed with
22003         allow-header.
22004         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
22005         (O_EXEC): Likewise.
22006         (O_SEARCH): Likewise.
22007         * conform/data/stropts.h-data (ioctl): Likewise.
22008         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
22009         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
22010         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
22011         (msghdr.msg_controllen): Likewise.
22012         (cmsghdr.cmsg_len): Likewise.
22013         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
22014         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
22015         variable.
22016         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
22017         (test-xfail-XPG4/stropts.h/conform): Likewise.
22018         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
22019         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
22020         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
22021         (test-xfail-UNIX98/stropts.h/conform): Likewise.
22022         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
22023         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
22024         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
22025         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
22026         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
22027         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
22028         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
22029         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
22030         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
22031         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
22032         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
22033         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
22034         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
22035         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
22036         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
22037
22038 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
22039
22040         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
22041         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
22042         definitions for proper unfolding of __MATHDECL_VEC.
22043
22044 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22045
22046         * benchtests/bench-strcoll.c:
22047         Include string.h.
22048         (main): Remove unused variable res.
22049
22050 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22051
22052         * timezone/Makefile (%/UTC %/Universal):
22053         Generate test-result files for UTC and Universal.
22054
22055 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22056
22057         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22058
22059 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
22060
22061         [BZ #16350]
22062         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
22063         for arguments with small absolute value.
22064         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
22065         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
22066         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
22067         (__asinh): Force underflow exception for arguments with small
22068         absolute value.
22069         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
22070         (__asinhf): Force underflow exception for arguments with small
22071         absolute value.
22072         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
22073         (__asinhl): Force underflow exception for arguments with small
22074         absolute value.
22075         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
22076         (__asinhl): Force underflow exception for arguments with small
22077         absolute value.
22078         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
22079         (__asinhl): Force underflow exception for arguments with small
22080         absolute value.
22081         * math/auto-libm-test-in: Do not mark underflow exceptions as
22082         possibly missing for bug 16350.
22083         * math/auto-libm-test-out: Regenerated.
22084
22085         * include/bits/ipc.h: Remove file.
22086         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
22087         variable.
22088         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
22089         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
22090         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
22091         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
22092         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
22093         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
22094         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
22095         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
22096         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
22097
22098         * math/auto-libm-test-in: Remove spurious underflow allowance for
22099         tests of cexp.
22100         * math/auto-libm-test-out: Regenerated.
22101
22102         [BZ #18558]
22103         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
22104         unconditional definition.
22105         (MCAST_BLOCK_SOURCE): Likewise.
22106         (MCAST_UNBLOCK_SOURCE): Likewise.
22107         (MCAST_LEAVE_GROUP): Likewise.
22108         (MCAST_JOIN_SOURCE_GROUP): Likewise.
22109         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
22110         (MCAST_MSFILTER): Likewise.
22111         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
22112         Remove variable.
22113         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
22114         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
22115         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
22116         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
22117         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
22118
22119 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
22120
22121         * NEWS: Mention addition of x86_64 vector sincosf.
22122         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
22123         * math/test-float-vlen4.h: Likewise.
22124         * math/test-float-vlen8.h: Likewise.
22125         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22126         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
22127         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22128         * sysdeps/x86_64/fpu/Versions: New versions added.
22129         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22130         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22131         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22132         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
22133         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
22134         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
22135         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
22136         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
22137         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
22138         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
22139         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
22140         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
22141         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
22142         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
22143         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
22144         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
22145         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
22146         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22147         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22148         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22149         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22150         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22151         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22152         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22153
22154         * NEWS: Mention addition of x86_64 vector sincos.
22155         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
22156         * math/math.h (__MATHDECL_VEC): New macro.
22157         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
22158         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
22159         declaration under condition.
22160         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
22161         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
22162         TEST_VEC_LOOP change.
22163         * math/test-double-vlen4.h: Likewise.
22164         * math/test-double-vlen8.h: Likewise.
22165         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
22166         * math/test-float-vlen4.h: Likewise.
22167         * math/test-float-vlen8.h: Likewise.
22168         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22169         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
22170         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22171         * sysdeps/x86_64/fpu/Versions: New versions added.
22172         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22173         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22174         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22175         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
22176         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
22177         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
22178         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
22179         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
22180         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
22181         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
22182         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
22183         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
22184         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
22185         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
22186         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
22187         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
22188         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
22189         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22190         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22191         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22192         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22193         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22194         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22195         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22196
22197         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22198         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22199         redirections for powf.
22200         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22201         * sysdeps/x86_64/fpu/Versions: New versions added.
22202         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22203         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22204         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22205         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
22206         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
22207         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
22208         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
22209         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
22210         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
22211         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
22212         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
22213         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
22214         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
22215         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
22216         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
22217         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
22218         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
22219         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22220         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22221         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22222         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22223         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22224         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22225         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22226         * math/test-float-vlen16.h: Fixed 2 argument macro.
22227         * math/test-float-vlen4.h: Likewise.
22228         * math/test-float-vlen8.h: Likewise.
22229         * NEWS: Mention addition of x86_64 vector powf.
22230
22231 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
22232
22233         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22234         and redefine.
22235         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22236         and redefine.
22237         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
22238         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
22239         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
22240
22241         [BZ #18553]
22242         * resource/getpriority.c (getpriority): Rename to __getpriority
22243         and define as weak alias of __getpriority.
22244         * resource/setpriority.c (setpriority): Rename to __setpriority
22245         and define as weak alias of __setpriority.
22246         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
22247         __getpriority and define as weak alias of __getpriority.
22248         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
22249         __setpriority and define as weak alias of __setpriority.
22250         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
22251         strong name.
22252         (setpriority): Use __setpriority as strong name.
22253         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
22254         __getpriority and define as weak alias of __getpriority.
22255         * include/sys/resource.h (__getpriority): Declare.  Use
22256         libc_hidden_proto.
22257         (__setpriority): Likewise.
22258         (getpriority): Don't use libc_hidden_proto.
22259         (setpriority): Likewise.
22260         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
22261         getpriority.  Call __setpriority instead of setpriority.
22262         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
22263         Remove variable.
22264
22265         [BZ #18547]
22266         * misc/getttyent.c (getttynam): Rename to __getttynam and define
22267         as weak alias of __getttynam.  Use prototype function definition.
22268         Call __setttyent, __getttyent and __endttyent instead of
22269         setttyent, getttyent and endttyent.
22270         (getttyent): Rename to __getttyent and define as weak alias of
22271         __getttyent.  Call __setttyent instead of setttyent.  Call
22272         __fgets_unlocked instead of fgets_unlocked.
22273         (setttyent): Rename to __setttyent and define as weak alias of
22274         __setttyent.
22275         (endttyent): Rename to __endttyent and define as weak alias of
22276         __endttyent.
22277         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
22278         (__setttyent): Likewise.
22279         (__endttyent): Likewise.
22280         (getttyent): Don't use libc_hidden_proto.
22281         (setttyent): Likewise.
22282         (endttyent): Likewise.
22283         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
22284         __endttyent instead of setttyent, getttyent and endttyent.
22285         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
22286         Remove variable.
22287
22288         [BZ #18546]
22289         * socket/recv.c (__recv): Use libc_hidden_def.
22290         * socket/socket.c (__socket): Likewise.
22291         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22292         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22293         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
22294         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
22295         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
22296         libc_hidden_def.
22297         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
22298         libc_hidden_weak.
22299         * include/sys/socket.h (__socket): Do not use attribute_hidden.
22300         Use libc_hidden_proto.
22301         (__recv): Likewise.
22302         * socket/Versions (libc): Export __recv and __socket at version
22303         GLIBC_PRIVATE.
22304         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
22305         instead of recv.
22306         (init_mq_netlink): Call __socket instead of socket.
22307         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
22308         Remove variable.
22309
22310         [BZ #18545]
22311         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
22312         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
22313         hidden_weak.
22314         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
22315         define as alias of __mq_timedsend.  Use hidden_weak.
22316         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
22317         __mq_timedsend as strong name.
22318         (mq_timedreceive): Use __mq_timedreceive as strong name.
22319         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
22320         (__mq_timedreceive): Likewise.
22321         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
22322         __mq_timedreceive instead of mq_timedreceive.
22323         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
22324         instead of mq_timedsend.
22325         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
22326         Remove variable.
22327
22328         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
22329         hidden_def and hidden_weak instead of libc_hidden_def and
22330         libc_hidden_weak.
22331         (top level): Refer to hidden_def in comment.
22332         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
22333         macro.  Use it instead of libc_hidden_def.
22334         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
22335         specify __GI_* name explicitly.
22336         (mq_timedreceive): Likewise.
22337         (mq_setattr): Likewise.
22338
22339         [BZ #18544]
22340         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
22341         __pthread_barrier_init and define as weak alias of
22342         __pthread_barrier_init.
22343         * sysdeps/sparc/nptl/pthread_barrier_init.c
22344         (pthread_barrier_init): Likewise.
22345         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
22346         __pthread_barrier_wait and define as weak alias of
22347         __pthread_barrier_wait.
22348         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22349         (pthread_barrier_wait): Likewise.
22350         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22351         (pthread_barrier_wait): Likewise.
22352         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
22353         (pthread_barrier_wait): Likewise.
22354         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
22355         (pthread_barrier_wait): Likewise.
22356         * nptl/Versions (libpthread): Export __pthread_barrier_init and
22357         __pthread_barrier_wait at version GLIBC_PRIVATE.
22358         * include/pthread.h (__pthread_barrier_init): Declare.
22359         (__pthread_barrier_wait): Likewise.
22360         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
22361         Call __pthread_barrier_wait instead of pthread_barrier_wait.
22362         (helper_thread): Likewise.
22363         (init_mq_netlink): Call __pthread_barrier_init instead of
22364         pthread_barrier_init.
22365
22366         [BZ #18542]
22367         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
22368         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
22369         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
22370         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
22371         vswscanf.
22372         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
22373         Remove variable.
22374
22375         [BZ #18540]
22376         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
22377         strong alias of _IO_fflush.  Use libc_hidden_def.
22378         * libio/iofflush_u.c (fflush_unlocked): Rename to
22379         __fflush_unlocked and define as weak alias of __fflush_unlocked.
22380         Use libc_hidden_weak.
22381         * include/stdio.h (__fflush_unlocked): Declare.  Use
22382         libc_hidden_proto.
22383         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
22384         fflush_unlocked.
22385         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
22386         Remove variable.
22387
22388         [BZ #18539]
22389         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
22390         define as weak alias of __addseverity.
22391         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
22392         Remove variable.
22393         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
22394         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
22395         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
22396
22397         [BZ #18536]
22398         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
22399         (__tfind): Likewise.
22400         (__tdelete): Likewise.
22401         (__twalk): Likewise.
22402         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
22403         __twalk to GLIBC_PRIVATE.
22404         * include/search.h (__tsearch): Use libc_hidden_proto.
22405         (__tfind): Likewise.
22406         (__tdelete): Likewise.
22407         (__twalk): Likewise.
22408         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
22409         Call __tdelete instead of tdelete.
22410         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
22411         tfind.  Call __tsearch instead of tsearch.
22412         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
22413         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
22414         Remove variable.
22415         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
22416
22417         [BZ #18534]
22418         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
22419         (dprintf): Define as a weak alias of __dprintf, not a strong
22420         alias.
22421         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
22422         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
22423         dprintf.
22424         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
22425         Remove variable.
22426         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
22427         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
22428
22429         [BZ #18533]
22430         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
22431         not a strong alias.
22432         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
22433         Remove variable.
22434
22435         [BZ #18532]
22436         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
22437         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
22438         (in6addr_loopback): Rename to __in6addr_loopback and define as
22439         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
22440         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
22441         libc_hidden_proto.
22442         (__in6addr_any): Likewise.
22443         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
22444         in6addr_any.
22445         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
22446         variable.
22447         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
22448
22449 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
22450
22451         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
22452         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
22453         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22454         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22455         redirections for pow.
22456         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22457         * sysdeps/x86_64/fpu/Versions: New versions added.
22458         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22459         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22460         build of SSE, AVX2 and AVX512 IFUNC versions.
22461         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
22462         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
22463         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
22464         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
22465         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
22466         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
22467         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
22468         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
22469         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
22470         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
22471         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
22472         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
22473         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
22474         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
22475         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22476         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22477         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22478         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22479         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22480         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22481         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22482         * NEWS: Mention addition of x86_64 vector pow.
22483
22484         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22485         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22486         redirections for expf.
22487         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22488         * sysdeps/x86_64/fpu/Versions: New versions added.
22489         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22490         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22491         build of SSE, AVX2 and AVX512 IFUNC versions.
22492         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
22493         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
22494         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
22495         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
22496         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
22497         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
22498         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
22499         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
22500         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
22501         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
22502         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
22503         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
22504         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
22505         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22506         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22507         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22508         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22509         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22510         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22511         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22512         * NEWS: Mention addition of x86_64 vector expf.
22513
22514         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
22515         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
22516         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22517         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22518         redirections for exp.
22519         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22520         * sysdeps/x86_64/fpu/Versions: New versions added.
22521         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22522         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22523         build of SSE, AVX2 and AVX512 IFUNC versions.
22524         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
22525         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
22526         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
22527         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
22528         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
22529         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
22530         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
22531         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
22532         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
22533         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
22534         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
22535         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
22536         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
22537         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22538         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22539         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22540         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22541         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22542         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22543         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22544         * NEWS: Mention addition of x86_64 vector exp.
22545
22546         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22547         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22548         redirections for logf.
22549         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22550         * sysdeps/x86_64/fpu/Versions: New versions added.
22551         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22552         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22553         build of SSE, AVX2 and AVX512 IFUNC versions.
22554         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
22555         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
22556         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
22557         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
22558         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
22559         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
22560         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
22561         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
22562         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
22563         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
22564         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
22565         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
22566         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
22567         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22568         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22569         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22570         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22571         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22572         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22573         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22574         * NEWS: Mention addition of x86_64 vector logf.
22575
22576         * bits/libm-simd-decl-stubs.h: Added stubs for log.
22577         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
22578         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22579         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22580         redirections for log.
22581         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22582         * sysdeps/x86_64/fpu/Versions: New versions added.
22583         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22584         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22585         build of SSE, AVX2 and AVX512 IFUNC versions.
22586         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
22587         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
22588         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
22589         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
22590         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
22591         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
22592         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
22593         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
22594         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
22595         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
22596         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
22597         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
22598         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
22599         test.
22600         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22601         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22602         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22603         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22604         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22605         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22606         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22607         * NEWS: Mention addition of x86_64 vector log.
22608
22609 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22610
22611         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
22612         cfi_adjust_cfa_offset argument.
22613         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
22614         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
22615
22616         [BZ #18034]
22617         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
22618         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
22619         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
22620         ordering using ldar.
22621         (_dl_tlsdesc_dynamic): Likewise.
22622         (_dl_tlsdesc_return_lazy): Likewise.
22623         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
22624         relaxed atomics instead of volatile and synchronize with release store.
22625         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
22626         volatile.
22627         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22628
22629 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
22630
22631         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22632         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
22633         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22634         * sysdeps/x86_64/fpu/Versions: New versions added.
22635         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22636         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22637         build of SSE, AVX2 and AVX512 IFUNC versions.
22638         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
22639         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
22640         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
22641         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
22642         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
22643         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
22644         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
22645         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
22646         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
22647         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
22648         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
22649         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
22650         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
22651         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22652         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22653         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22654         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22655         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22656         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22657         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22658         * NEWS: Mention addition of x86_64 vector sinf.
22659
22660 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
22661
22662         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
22663         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
22664         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
22665         Remove variable.
22666         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
22667         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
22668
22669 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
22670
22671         [BZ #18530]
22672         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
22673         strong alias of _IO_fputs.  Use libc_hidden_def.
22674         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
22675         and define as weak alias of __fputs_unlocked.  Use
22676         libc_hidden_weak.
22677         * include/stdio.h (__fputs_unlocked): Declare.  Use
22678         libc_hidden_proto.
22679         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
22680         fputs_unlocked.
22681
22682         [BZ #18529]
22683         * resolv/netdb.h [__USE_POSIX]: Change condition to
22684         [__USE_XOPEN2K].
22685         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
22686         not expect.
22687         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
22688         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
22689         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
22690         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
22691         [XPG4 || UNIX98] (AI_ALL): Likewise.
22692         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
22693         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
22694         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
22695         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
22696         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
22697         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
22698         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
22699         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
22700         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
22701         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
22702         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
22703         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
22704         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
22705         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
22706         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
22707         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
22708         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
22709         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
22710         [XPG4 || UNIX98] (gai_strerror): Likewise.
22711         [XPG4 || UNIX98] (getaddrinfo): Likewise.
22712         [XPG4 || UNIX98] (getnameinfo): Likewise.
22713
22714         [BZ #18528]
22715         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
22716         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
22717         __USE_XOPEN2K8].
22718         (getgrent): Likewise.
22719         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
22720         expect.
22721         [XPG3 || POSIX2008] (endgrent): Likewise.
22722         [XPG3] (setgrent): Likewise.
22723         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
22724         variable.
22725         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
22726
22727         [BZ #18527]
22728         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
22729         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
22730         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
22731         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
22732         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
22733         * include/unistd.h (__getlogin_r): Declare.  Use
22734         libc_hidden_proto.
22735         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
22736         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
22737         variable.
22738         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
22739         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
22740         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
22741
22742 2015-06-12  Martin Sebor  <msebor@redhat.com>
22743
22744         [BZ #18512]
22745         * Makerules (check-install-supported): New target.
22746         (install): Add check-install-supported as a dependency.
22747         * manual/install.texi (Installing the C Library): Document
22748         that overriding prefix and exec_prefix is not supported.
22749         Mention DESTDIR.
22750         * INSTALL: Regenerate from the above.
22751
22752 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
22753
22754         [BZ #18519]
22755         * posix/Versions (libc): Export __libc_pread at version
22756         GLIBC_PRIVATE.
22757         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
22758         instead of pread.
22759         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
22760         variable.
22761
22762         [BZ #18522]
22763         * misc/efgcvt_r.c
22764         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
22765         (cvt_symbol): Use weak_alias instead of strong_alias.
22766         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
22767         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
22768         Remove variable.
22769         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
22770         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
22771
22772         [BZ #18520]
22773         * inet/herrno.c (h_errno): Rename to __h_errno.
22774         (__libc_h_errno): Define as alias of __h_errno not h_errno.
22775         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
22776         to __h_errno instead of h_errno.
22777         * nptl/herrno.c (h_errno): Rename to __h_errno.
22778         (__h_errno_location): Refer to __h_errno not h_errno.
22779         * resolv/Versions (h_errno): Rename to __h_errno.
22780         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
22781         Remove variable.
22782         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
22783
22784 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
22785
22786         * configure.ac: More strict check for AVX512 assembler support.
22787         * configure: Regenerated.
22788
22789         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
22790         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
22791         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22792         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
22793         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22794         * sysdeps/x86_64/fpu/Versions: New versions added.
22795         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22796         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22797         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22798         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
22799         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
22800         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
22801         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
22802         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
22803         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
22804         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
22805         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
22806         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
22807         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
22808         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
22809         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
22810         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
22811         test.
22812         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22813         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22814         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22815         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22816         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22817         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22818         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22819         * NEWS: Mention addition of x86_64 vector sin.
22820
22821 2015-06-11  Florian Weimer  <fweimer@redhat.com>
22822
22823         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
22824         comment.
22825
22826 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
22827
22828         [BZ #18479]
22829         * nptl/pt-interp.c: New file.
22830         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
22831         Add pt-interp.
22832         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
22833         $(common-objpfx)runtime-linker.h.
22834
22835 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
22836
22837         * Makeconfig (+interp): Remove unused variable.
22838         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
22839         only.  Depend on $(common-objpfx)runtime-linker.h instead of
22840         $(elf-objpfx)runtime-linker.h.
22841         ($(elf-objpfx)runtime-linker.h): Rename to
22842         $(common-objpfx)runtime-linker.h and move ...
22843         * Makerules [$(build-shared) = yes]: ... here.
22844         * elf/interp.c: Include <runtime-linker.h> instead of
22845         <elf/runtime-linker.h>.
22846
22847 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22848
22849         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
22850         (__gettimeofday_syscall): Remove vsyscall fallback.
22851         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
22852         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
22853         Add syscall fallback function.
22854         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
22855         if vDSO is not present.
22856         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
22857         fallback function.
22858         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
22859         present.
22860         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
22861         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
22862
22863 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
22864
22865         [BZ #18497]
22866         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
22867         of wcscmp.
22868         (wcscmp): Define as weak alias of WCSCMP.
22869         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
22870         wcscoll.
22871         (USE_HIDDEN_DEF): Define.
22872         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
22873         __wcscoll.  Don't use libc_hidden_weak.
22874         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
22875         wcscmp.
22876         * sysdeps/i386/i686/multiarch/wcscmp-c.c
22877         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
22878         __GI_wcscmp.
22879         (weak_alias): Undefine and redefine.
22880         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
22881         __wcscmp and define as weak alias of __wcscmp.
22882         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
22883         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
22884         (__wcscoll): Likewise.
22885         (wcscmp): Don't use libc_hidden_proto.
22886         (wcscoll): Likewise.
22887         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
22888         wcscoll.
22889         * posix/regexec.c (check_node_accept_bytes): Likewise.
22890         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
22891         variable.
22892         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
22893         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
22894
22895         [BZ #18507]
22896         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
22897         __fstatvfs and define as weak alias of __fstatvfs.  Use
22898         libc_hidden_weak.
22899         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
22900         and define as weak alias of __statvfs.  Use libc_hidden_weak.
22901         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
22902         Define as alias of __fstatvfs, not fstatvfs.
22903         (fstatvfs64): Likewise.
22904         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
22905         Define as alias of __statvfs, not statvfs.
22906         (statvfs64): Likewise.
22907         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
22908         Remove variable.
22909
22910 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22911
22912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22913         (HAVE_GETCPU_VSYSCALL): Define.
22914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
22915         (HAVE_GETCPU_VSYSCALL): Likewise.
22916         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
22917         * sysdeps/unix/sysv/linux/sched_getcpu.c
22918         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
22919         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
22920         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
22921         prototype.
22922         * sysdeps/unix/sysv/linux/x86_64/init-first.c
22923         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
22924         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
22925         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
22926         Define.
22927         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
22928         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
22929         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
22930         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
22931
22932 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
22933
22934         * sysdeps/x86_64/fpu/Makefile: New file.
22935         * sysdeps/x86_64/fpu/Versions: New file.
22936         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
22937         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
22938         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
22939         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
22940         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
22941         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
22942         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
22943         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
22944         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
22945         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
22946         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
22947         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
22948         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
22949         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22950         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22951         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
22952         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
22953         * sysdeps/x86_64/configure.ac: Options for libmvec build.
22954         * sysdeps/x86_64/configure: Regenerated.
22955         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
22956         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
22957         * manual/install.texi (Configuring and compiling): Document
22958         --disable-mathvec.
22959         * INSTALL: Regenerated.
22960         * NEWS: Mention addition of libmvec and x86_64 vector cos.
22961
22962         * math/Makefile: Added rules for vector tests.
22963         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
22964         declaration under condition.
22965         * math/test-double-vlen2.h: New file.
22966         * math/test-double-vlen4.h: New file.
22967         * math/test-double-vlen8.h: New file.
22968         * math/test-vec-loop.h: Added initialization macro.
22969         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
22970         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
22971         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
22972         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
22973         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
22974         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
22975         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
22976         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
22977         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
22978         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
22979         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
22980
22981         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22982         * sysdeps/x86_64/fpu/Versions: New versions added.
22983         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
22984         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
22985         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
22986         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
22987         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
22988         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
22989         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
22990         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
22991         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
22992         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
22993         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
22994         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
22995         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
22996         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22997         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22998         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22999         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
23000         * NEWS: Mention addition of x86_64 vector cosf.
23001
23002         * math/Makefile: Added CFLAGS for new tests.
23003         * math/test-float-vlen16.h: New file.
23004         * math/test-float-vlen4.h: New file.
23005         * math/test-float-vlen8.h: New file.
23006         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
23007         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
23008         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23009         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
23010         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
23011         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
23012         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
23013         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
23014         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
23015         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
23016         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
23017
23018 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
23019
23020         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
23021         * locale/programs/ld-ctype.c: Likewise.
23022
23023 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
23024
23025         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
23026         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
23027         bit_ZMM16_31_state): New macro.
23028         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23029         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
23030
23031 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
23032
23033         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
23034
23035 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
23036
23037         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
23038
23039 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23040
23041         [BZ #18498]
23042         * libio/memstream.c (open_memstream): Rename to __open_memstream
23043         and define as weak alias of __open_memstream.
23044         * include/stdio.h (__open_memstream): Declare.  Use
23045         libc_hidden_proto.
23046         (open_memstream): Don't use libc_hidden_proto.
23047         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
23048         open_memstream.
23049         * posix/getopt.c (_getopt_internal_r): Likewise.
23050         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
23051         variable.
23052         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
23053         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
23054         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
23055
23056         [BZ #18496]
23057         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
23058         instead of wcrtomb.
23059
23060         [BZ #18483]
23061         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
23062         [__USE_XOPEN2K8].  Remove redundant #endif.
23063         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
23064         Remove redundant #if.
23065         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
23066         Remove variable.
23067         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
23068         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
23069
23070         [BZ #18495]
23071         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
23072         (__iswlower): Likewise.
23073         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
23074         (__iswlower): Likewise.
23075         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
23076         instead of towlower.
23077         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
23078         instead of iswlower.  Call __towupper instead of towupper.
23079         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
23080         instead of iswalnum.
23081
23082 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23083
23084         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
23085         errors to stderr.
23086
23087 2015-06-05  Florian Weimer  <fweimer@redhat.com>
23088
23089         [BZ #15661]
23090         [BZ #17322]
23091         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
23092         Check for overflow properly.  Check for O_APPEND.  Ignore large
23093         file system block sizes.  Add comments about problems.
23094         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
23095         * manual/filesys.texi (Storage Allocation): New node.
23096
23097 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23098
23099         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
23100         cancellable syscalls.
23101         (SYS_ify): Add guard to no redefine it.
23102         (INLINE_SYSCALL): Likewise.
23103         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
23104         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
23105         SYSCALL_CANCEL instead.
23106         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
23107         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
23108         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
23109         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
23110         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
23111         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
23112         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
23113         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
23114         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
23115         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
23116         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
23117         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
23118         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
23119         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
23120         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
23121         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
23122         Likewise.
23123         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
23124         (__libc_pread64): Likewise.
23125         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
23126         (__libc_preadv): Likewise.
23127         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
23128         (__libc_readv64): Likewise.
23129         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
23130         (__libc_pwrite): Likewise.
23131         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
23132         (__libc_pwrite64): Likewise.
23133         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
23134         (__libc_pwritev): Likewise.
23135         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
23136         (__libc_pwritev64): Likewise.
23137         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
23138         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
23139         (sync_file_range): Likewise.
23140         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
23141         Likewise.
23142         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
23143         Likewise.
23144         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
23145         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
23146         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
23147         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
23148         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
23149         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
23150         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
23151         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
23152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
23153         Likewise.
23154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
23155         (__libc_read64): Likewise.
23156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
23157         Likewise.
23158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
23159         Likewise.
23160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
23161         Likewise.
23162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
23163         Likewise.
23164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
23165         (__libc_pread64): Likewise.
23166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
23167         Likewise.
23168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
23169         (__libc_pwrite64): Likewise.
23170         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
23171         (sync_file_range): Likewise.
23172         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
23173         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
23174         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
23175         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
23176         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
23177         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
23178         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
23179         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
23180         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
23181         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
23182         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
23183         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
23184         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
23185         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
23186         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
23187         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
23188         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
23189         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23190         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
23191         Likewise.
23192         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
23193         Likewise.
23194         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
23195         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
23196         Likewise.
23197         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
23198         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
23199         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
23200         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
23201         Likewise.
23202         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
23203         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
23204         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
23205         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
23206         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
23207
23208 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
23209
23210         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
23211         Include dl-vdso.
23212         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
23213         Use VDSO routines for gettimeofday, clock_gettime if
23214         available.
23215         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
23216         Declare VDSO symbols.
23217         * sysdeps/unix/sysv/linux/arm/sysdep.h:
23218         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
23219         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23220         * sysdeps/unix/sysv/linux/arm/Versions: Add
23221         __vdso_clock_gettime.
23222
23223 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23224
23225         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
23226         be an inline implementation regardless of library is built within.
23227         (open_not_cancel_2): Likewise.
23228         (__read_nocancel): Likewise.
23229         (__write_nocancel): Likewise.
23230         (openat_not_cancel): Likewise.
23231         (openat_not_cancel_3): Likewise.
23232         (openat64_not_cancel): Likewise.
23233         (openat64_not_cancel_3): Likewise.
23234         (__close_nocancel): Likewise.
23235         (pause_not_cancel): Likewise.
23236         (nanosleep_not_cancel): Likewise.
23237         (sigsuspend_not_cancel): Likewise.
23238
23239 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23240
23241         [BZ #14958]
23242         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
23243         wake-up.
23244         (__pthread_rwlock_rdlock_slow): Likewise.
23245         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23246         Likewise.
23247         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
23248         Likewise.
23249         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
23250         * nptl/tst-rwlock16.c: New file.
23251         * nptl/Makefile (tests): Add new test.
23252
23253 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23254
23255         [BZ #18324]
23256         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
23257         missing wake-up of readers.
23258         * nptl/tst-rwlock15.c: New file.
23259         * nptl/Makefile (tests): Add new test.
23260
23261 2015-06-03  Roland McGrath  <roland@hack.frob.com>
23262
23263         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
23264         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
23265         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
23266         and __nacl_supply_interface_rtld.
23267         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
23268         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
23269         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
23270         Add __nacl_supply_interface_rtld.
23271         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
23272
23273 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23274
23275         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
23276         isfinite.
23277         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
23278         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
23279
23280 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23281
23282         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
23283         __signbit* with standard C99 macros.
23284         * math/e_exp10l.c: Likewise.
23285         * math/e_exp2l.c: Likewise.
23286         * math/e_scalb.c: Likewise.
23287         * math/e_scalbf.c: Likewise.
23288         * math/e_scalbl.c: Likewise.
23289         * math/s_ldexp.c: Likewise.
23290         * math/s_ldexpf.c: Likewise.
23291         * math/s_ldexpl.c: Likewise.
23292         * math/w_atan2.c: Likewise.
23293         * math/w_atan2f.c: Likewise.
23294         * math/w_atan2l.c: Likewise.
23295         * math/w_cosh.c: Likewise.
23296         * math/w_coshf.c: Likewise.
23297         * math/w_coshl.c: Likewise.
23298         * math/w_exp10.c: Likewise.
23299         * math/w_exp10f.c: Likewise.
23300         * math/w_exp10l.c: Likewise.
23301         * math/w_exp2.c: Likewise.
23302         * math/w_exp2f.c: Likewise.
23303         * math/w_exp2l.c: Likewise.
23304         * math/w_fmod.c: Likewise.
23305         * math/w_fmodf.c: Likewise.
23306         * math/w_fmodl.c: Likewise.
23307         * math/w_hypot.c: Likewise.
23308         * math/w_hypotf.c: Likewise.
23309         * math/w_hypotl.c: Likewise.
23310         * math/w_jnl.c: Likewise.
23311         * math/w_lgamma.c: Likewise.
23312         * math/w_lgamma_r.c: Likewise.
23313         * math/w_lgammaf.c: Likewise.
23314         * math/w_lgammaf_r.c: Likewise.
23315         * math/w_lgammal.c: Likewise.
23316         * math/w_lgammal_r.c: Likewise.
23317         * math/w_pow.c: Likewise.
23318         * math/w_powf.c: Likewise.
23319         * math/w_powl.c: Likewise.
23320         * math/w_remainder.c: Likewise.
23321         * math/w_remainderf.c: Likewise.
23322         * math/w_remainderl.c: Likewise.
23323         * math/w_scalb.c: Likewise.
23324         * math/w_scalbf.c: Likewise.
23325         * math/w_scalbl.c: Likewise.
23326         * math/w_scalbln.c: Likewise.
23327         * math/w_scalblnf.c: Likewise.
23328         * math/w_scalblnl.c: Likewise.
23329         * math/w_sinh.c: Likewise.
23330         * math/w_sinhf.c: Likewise.
23331         * math/w_sinhl.c: Likewise.
23332         * math/w_tgamma.c: Likewise.
23333         * math/w_tgammaf.c: Likewise.
23334         * math/w_tgammal.c: Likewise.
23335         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23336         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
23337         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23338         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23339         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23340         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23341         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
23342         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23343         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23344         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23345         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23346         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
23347         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23348         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23349         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23350         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23351         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23352         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
23353         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
23354         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23355         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23356         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
23357         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23358         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23359         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
23360         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
23361         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
23362         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23363         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23364         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23365         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
23366         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
23367         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
23368         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
23369         * stdio-common/printf_fp.c: Likewise.
23370         * stdio-common/printf_fphex.c: Likewise.
23371         * stdio-common/printf_size.c: Likewise.
23372
23373 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
23374
23375         [BZ #18470]
23376         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
23377         strnlen.
23378         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
23379         Remove variable.
23380         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
23381         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
23382         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
23383         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
23384         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
23385         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
23386         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
23387         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
23388         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
23389         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
23390
23391         [BZ #18468]
23392         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
23393         weak alias of __wmemchr.  Use libc_hidden_weak.
23394         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
23395         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
23396         instead of wmemchr.
23397
23398 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23399
23400         [BZ #18383]
23401         * elf/tst-tlsalign-extern.c: New file.
23402         * elf/tst-tlsalign-extern-static.c: New file.
23403         * elf/tst-tlsalign-vars.c: New file.
23404         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
23405         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
23406         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
23407         ($(objpfx)tst-tlsalign-extern-static): Likewise.
23408         (test-xfail-tst-tlsalign-extern-static): New variable.
23409
23410 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
23411
23412         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
23413         Use variable name _sc_err instead of err.
23414         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
23415         instead of ret.
23416         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
23417         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
23418         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
23419         (INLINE_SYSCALL): Likewise.
23420
23421         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
23422         * include/string.h (__strnlen): Use libc_hidden_proto.
23423         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
23424         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
23425         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
23426         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
23427         (libc_hidden_def): Undefine and redefine.
23428         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
23429         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
23430         __GI_strnlen.
23431         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
23432         libc_hidden_def.
23433         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
23434
23435         [BZ #18469]
23436         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
23437         weak alias of __towlower.  Use libc_hidden_weak.
23438         (towupper): Rename to __towupper and define as weak alias of
23439         __towupper.  Use libc_hidden_weak.
23440         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
23441         (__towupper): Likewise.
23442         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
23443         __towlower instead of towlower.
23444
23445 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23446
23447         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
23448         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
23449
23450 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23451
23452         * sysdeps/aarch64/libm-test-ulps: Update.
23453
23454 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23455
23456         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
23457         Define.
23458         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23459         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
23460         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
23461         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23462         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
23463         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
23464         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
23465
23466 2015-06-01  Martin Sebor  <msebor@redhat.com>
23467
23468         [BZ #18116]
23469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
23470         (__setcontext): Use extended four-operand version of mtsf whenever
23471         possible.
23472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
23473         (__novec_swapcontext): Likewise.
23474
23475 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
23476
23477         * benchtests/scripts/compare_bench.py: New file.
23478         * benchtests/scripts/import_bench.py (mean): New function.
23479         (split_list): Likewise.
23480         (do_for_all_timings): Likewise.
23481         (compress_timings): Likewise.
23482
23483         * benchtests/scripts/import_bench.py: New file.
23484         * benchtests/scripts/validate_benchout.py: Import import_bench
23485         instead of jsonschema.
23486         (validate_bench): Remove function.
23487         (main): Use import_bench.
23488
23489 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
23490
23491         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
23492         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
23493
23494 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23495
23496         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23497
23498 2015-05-28  Roland McGrath  <roland@hack.frob.com>
23499
23500         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
23501         set THREAD_SELF->tid to a magic value and futex-wake it.
23502         Pass its address to the thread_exit system call.
23503         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
23504         bit is clear.
23505         * sysdeps/nacl/lowlevellock.h: New file.
23506         * sysdeps/nacl/lll_timedwait_tid.c: New file.
23507
23508         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
23509         Add TIMEOUT to current time, don't subtract it.
23510
23511 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
23512
23513         [BZ #2981]
23514         [BZ #18422]
23515         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
23516         ($(objpfx)tst-audit2.out): Also depend on
23517         $(objpfx)tst-auditmod9b.so.
23518         * elf/tst-audit2.c: Include <dlfcn.h>.
23519         (calloc_called): New.
23520         (calloc): Allow to be called more than once.
23521         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
23522
23523 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
23524
23525         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
23526         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
23527
23528 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
23529
23530         * stdlib/monetary.h: Fix comment.
23531
23532 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
23533
23534         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
23535         Avoid using variables in #defines that might cause shadowing.
23536         (INTERNAL_VSYSCALL_CALL): Likewise.
23537
23538 2015-05-26  Roland McGrath  <roland@hack.frob.com>
23539
23540         * sysdeps/nacl/lll_timedlock_wait.c: New file.
23541
23542         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
23543         * nptl/lll_timedlock_wait.c: ... to this new file.
23544         * nptl/Makefile (libpthread-routines): Add it.
23545         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
23546         * nptl/lll_timedwait_tid.c: ... to this new file.
23547         * nptl/Makefile (libpthread-routines): Add it.
23548         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
23549         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
23550         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
23551         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
23552         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
23553         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
23554         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
23555         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
23556         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
23557         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
23558
23559 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23560
23561         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
23562         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23563         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
23564         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
23565         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
23566         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
23567         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23568         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23569         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23570         * sysdeps/unix/sysv/linux/tile/sysdep.h
23571         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23572         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
23573         using vDSO syscall macro.
23574
23575 2015-05-26  Andriy Rysin  <arysin@gmail.com>
23576
23577         [BZ #17293]
23578         * uk_UA: Fix sorting order for Ukrainian locale
23579
23580 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
23581
23582         * stdlib/monetary.h: Fix comment.
23583
23584 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23585
23586         [BZ #18234]
23587         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
23588         st_mtim and st_ctim members.
23589         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
23590         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
23591         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
23592         (struct stat64): Likewise.
23593         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
23594         (struct stat64): Likewise.
23595         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
23596         (struct stat64): Likewise.
23597
23598 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23599
23600         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
23601         Define and include sysdep-vdso.h.
23602         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
23603         Likewise.
23604         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
23605         Likewise.
23606         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
23607         Define with VDSO_SYMBOL and use PTR_MANGLE.
23608         (__vdso_clock_gettime): Likewise.
23609         (__vdso_clock_getres): Likewise.
23610         (_libc_vdso_platform_setup): Likewise.
23611         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
23612         Likewise.
23613         (_libc_vdso_platform_setup): Likewise.
23614         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
23615         Likewise.
23616         (__vdso_clock_gettime): Likewise.
23617         (__vdso_clock_getres): Likewise.
23618         (__vdso_get_tbfreq): Likewise.
23619         (__vdso_getcpu): Likewise.
23620         (__vdso_time): Likewise.
23621         (__vdso_sigtramp_rt64): Likewise.
23622         (__vdso_signtramp32): Likewise.
23623         (__vdso_sigtramp_rt32): Likewise.
23624         (_libc_vdso_platform_setup): Likewise.
23625         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
23626         Likewise.
23627         (__vdso_clock_gettime): Likewise.
23628         (__vdso_clock_getres): Likewise.
23629         (_libc_vdso_platform_setup): Likewise.
23630         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
23631         Likewise.
23632         (__vdso_clock_gettime): Likewise.
23633         (_libc_vdso_platform_setup): Likewise.
23634         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
23635         Likewise.
23636         (__vdso_getcpu): Likewise.
23637         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
23638         Use VDSO_SYMBOL macro to define.
23639         (__vdso_clock_gettime): Likewise.
23640         (__vdso_clock_getres): Likewise.
23641         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
23642         Likewise.
23643         (__vdso_clock_gettime): Likewise.
23644         (__vdso_clock_getres): Likewise.
23645         (__vdso_get_tbfreq): Likewise.
23646         (__vdso_getcpu): Likewise.
23647         (__vdso_time): Likewise.
23648         (__vdso_sigtramp_rt64): Likewise.
23649         (__vdso_signtramp32): Likewise.
23650         (__vdso_sigtramp_rt32): Likewise.
23651         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
23652         Likewise.
23653         (__vdso_clock_gettime): Likewise.
23654         (__vdso_clock_getres): Likewise.
23655         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
23656         Likewise.
23657         (__vdso_clock_gettime): Likewise.
23658         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
23659         Likewise.
23660         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
23661         macro.
23662         (INTERNAL_VSYSCALL): Likewise.
23663         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
23664         Remove macro.
23665         (INTERNAL_VSYSCALL): Likewise.
23666         (INTERNAL_VSYSCALL_NCS): Likewise.
23667         (INTERNAL_VSYSCALL_CALL): New macro.
23668         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
23669         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
23670         Likewise.
23671         (INTERNAL_VSYSCALL): Likewise.
23672         (INTERNAL_VSYSCALL_NCS): Likewise.
23673         (INTERNAL_VSYSCALL_CALL): New macro.
23674         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
23675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23676         (INLINE_VSYSCALL): Remove macro.
23677         (INTERNAL_VSYSCALL): Remove macro.
23678         (INTERNAL_VSYSCALL_NCS): Remove macro.
23679         (INTERNAL_VSYSCALL_CALL): New macro.
23680         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
23681         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
23682         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
23683         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
23684         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
23685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23686         (INLINE_VSYSCALL): Remove macro.
23687         (INTERNAL_VSYSCALL): Likewise.
23688         (INTERNAL_VSYSCALL_NCS): Likewise.
23689         (INTERNAL_VSYSCALL_CALL): New macro.
23690         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
23691         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
23692         PTR_DEMANGLE on vDSO pointer.
23693         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
23694         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
23695         macro.
23696         (INTERNAL_SYSCALL): Likewise.
23697         (INTERNAL_VSYSCALL_NCS): Remove macro.
23698         (INTERNAL_VSYSCALL_CALL): New macro.
23699         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
23700         Remove macro.
23701         (INTERNAL_VSYSCALL): Likewise.
23702         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
23703         sysdep-vdso.h instead of libc-vdso.h.
23704         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
23705         definition.
23706         (INLINE_VSYSCALL): Likewise.
23707         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
23708         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
23709         definition.
23710         (INLINE_VSYSCALL): Likewise.
23711         (INTERNAL_VSYSCALL): Likewise.
23712         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23713         * sysdeps/unix/sysv/linux/timespec_get.c
23714         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23715         (timespec_get): Use ANSI prototype.
23716         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
23717         and definition for Linux.
23718
23719 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
23720
23721         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
23722         * include/libc-symbols.h: libmvec_hidden_* macro series added.
23723
23724 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23725
23726         [BZ #2981]
23727         [BZ #18410]
23728         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
23729         for missing DT_PLTRELSZ.
23730
23731 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23732
23733         Remove obsolete aliases that broke 'locale -a'
23734         [BZ #18412]
23735         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
23736         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
23737         breaking some applications that use 'locale -a' output.
23738         Change the encoding of this file from Latin-1 to ASCII to avoid
23739         other potential problems with people grepping this file.
23740
23741 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23742
23743         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
23744         -fasynchronous-unwind-tables.
23745         (CFLAGS-sendto.c): Likewise.
23746         (CFLAGS-sendmsg.c): Likewise.
23747         (CFLAGS-connect.c): Likewise.
23748         (CFLAGS-recvmsg.c): Likewise.
23749         (CFLAGS-recvfrom.c): Likewise.
23750         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
23751         (SOCKETCALL): New macro: non-cancellable socketcall.
23752         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
23753         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
23754         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
23755         * sysdeps/unix/sysv/linux/accept.c: New file.
23756         * sysdeps/unix/sysv/linux/bind.c: Likewise.
23757         * sysdeps/unix/sysv/linux/connect.c: Likewise.
23758         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
23759         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
23760         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
23761         * sysdeps/unix/sysv/linux/listen.c: Likewise.
23762         * sysdeps/unix/sysv/linux/recv.c: Likewise.
23763         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
23764         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
23765         * sysdeps/unix/sysv/linux/send.c: Likewise.
23766         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
23767         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
23768         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
23769         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
23770         * sysdeps/unix/sysv/linux/socket.c: Likewise.
23771         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
23772         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
23773         prototype.
23774         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
23775         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
23776         instead of __internal_xxx function.
23777         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
23778         prototype.
23779         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
23780         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
23781         instead of __internal_xxx function.
23782         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
23783         prototype.
23784         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
23785         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
23786         instead of __internal_xxx function.
23787         * sysdeps/unix/sysv/linux/accept.S: Remove file.
23788         * sysdeps/unix/sysv/linux/bind.S: Likewise.
23789         * sysdeps/unix/sysv/linux/connect.S: Likewise.
23790         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
23791         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
23792         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
23793         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
23794         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
23795         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
23796         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
23797         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
23798         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
23799         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
23800         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
23801         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
23802         * sysdeps/unix/sysv/linux/listen.S: Likewise.
23803         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
23804         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
23805         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
23806         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
23807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
23808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
23809         * sysdeps/unix/sysv/linux/recv.S: Likewise.
23810         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
23811         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
23812         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
23813         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
23814         * sysdeps/unix/sysv/linux/send.S: Likewise.
23815         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
23816         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
23817         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
23818         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
23819         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
23820         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
23821         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
23822         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
23823         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
23824         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
23825         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
23826         socketcall is implemented in GLIBC.
23827
23828 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
23829
23830         * soft-fp/fmadf4.c: Include <libc-internal.h>.
23831         (__fma): Ignore uninitialized warnings around packing.
23832         * soft-fp/fmasf4.c: Include <libc-internal.h>.
23833         (__fmaf): Ignore uninitialized warnings around packing.
23834         * soft-fp/fmatf4.c: Include <libc-internal.h>.
23835         (__fmal): Ignore uninitialized warnings around packing.
23836
23837         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
23838         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
23839         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
23840         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
23841
23842         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
23843         switch statement into default case.
23844         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
23845
23846         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
23847         a conditional in forcing "inexact".
23848         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
23849         Likewise.
23850
23851 2015-05-22  Roland McGrath  <roland@hack.frob.com>
23852
23853         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23854         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
23855         for each INTERNAL_SYSCALL use.
23856
23857 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
23858
23859         [BZ #438]
23860         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
23861         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
23862         variable.
23863
23864         [BZ #18444]
23865         * string/basename.c (basename): Rename to __basename and define as
23866         weak alias of __basename.  Use libc_hidden_weak.
23867         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
23868         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
23869         __basename instead of basename.
23870         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
23871         Remove variable.
23872         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
23873
23874 2015-05-18  Florian Weimer  <fweimer@redhat.com>
23875
23876         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
23877         (_IO_JUMPS_FILE_plus): New.
23878         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
23879         _IO_CAST_FIELD_ACCESS.
23880         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
23881         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
23882         * libio/freopen.c (freopen): Likewise.
23883         * libio/freopen64.c (freopen64): Likewise.
23884         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
23885         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
23886         * libio/iofwide.c (_IO_fwide): Likewise.
23887         * libio/memstream.c (open_memstream): Likewise.
23888         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
23889         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
23890         * libio/oldiopopen.c (_IO_old_popen): Likewise.
23891
23892 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
23893
23894         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
23895         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
23896         NADJ.
23897         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
23898         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
23899         NADJ.
23900         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
23901         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
23902         NADJ.
23903
23904         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
23905         (p == 4) case.
23906
23907         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
23908         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
23909         Remove variable.
23910         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
23911         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
23912         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
23913
23914 2015-05-21  Florian Weimer  <fweimer@redhat.com>
23915
23916         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
23917         Adjust jump table label generation macros.
23918
23919 2015-05-21  Florian Weimer  <fweimer@redhat.com>
23920
23921         * stdio-common/vfprintf.c (vfprintf): Move local variables
23922         args_malloced, specs, specs_malloced, and the code after
23923         do_positional to the printf_positional function.
23924         (printf_positional): New function.
23925
23926 2015-05-21  Florian Weimer  <fweimer@redhat.com>
23927
23928         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
23929         function.
23930         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
23931         STEP4_TABLE, process_arg): Move macro definitions
23932         out of the vfprintf function.  (Cosmetic change only.)
23933
23934 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
23935
23936         * benchtests/Makefile (stdio-common-bench): Define.
23937         (benchset): Add stdio-common-bench.
23938         * sprintf-inputs: New file.
23939         * sprintf-source.c: New file.
23940
23941 2015-05-21  Andreas Schwab  <schwab@suse.de>
23942
23943         [BZ #13028]
23944         [BZ #17053]
23945         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
23946         of struct __res_state.
23947         * resolv/res_send.c (__libc_res_nsend): Likewise.
23948         (get_nsaddr): New function.
23949         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
23950         statp directly.
23951
23952 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
23953
23954         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
23955         -D_POSIX_C_SOURCE=199506L.
23956
23957         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
23958
23959         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
23960         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
23961         Do not mention otherwise.
23962         [POSIX] (_XOPEN_VERSION): Do not expect.
23963         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
23964         [POSIX] (_POSIX2_C_BIND): Likewise.
23965         [POSIX] (_POSIX2_VERSION): Likewise.
23966         [POSIX] (_XOPEN_XPG2): Likewise.
23967         [POSIX] (_XOPEN_XPG3): Likewise.
23968         [POSIX] (_XOPEN_XPG4): Likewise.
23969         [POSIX] (_XOPEN_UNIX): Likewise.
23970         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
23971         [POSIX] (_POSIX_BARRIERS): Likewise.
23972         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
23973         [POSIX] (_POSIX_CPUTIME): Likewise.
23974         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
23975         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
23976         [POSIX] (_POSIX_SHELL): Likewise.
23977         [POSIX] (_POSIX_SPAWN): Likewise.
23978         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
23979         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
23980         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
23981         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
23982         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
23983         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
23984         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
23985         [POSIX] (_XBS5_LP64_OFF64): Likewise.
23986         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
23987         [POSIX] (_POSIX_TIMEOUTS): Likewise.
23988         [POSIX] (_POSIX2_PBS): Likewise.
23989         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
23990         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
23991         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
23992         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
23993         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
23994         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
23995         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
23996         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
23997         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
23998         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
23999         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
24000         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
24001         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
24002         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
24003         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
24004         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
24005         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
24006         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
24007         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
24008         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
24009         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
24010         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
24011         [POSIX] (_SC_2_C_BIND): Likewise.
24012         [POSIX] (_SC_2_C_VERSION): Likewise.
24013         [POSIX] (_SC_2_PBS): Likewise.
24014         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
24015         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
24016         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
24017         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
24018         [POSIX] (_SC_2_PBS_TRACK): Likewise.
24019         [POSIX] (_SC_ATEXIT_MAX): Likewise.
24020         [POSIX] (_SC_BARRIERS): Likewise.
24021         [POSIX] (_SC_BASE): Likewise.
24022         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
24023         [POSIX] (_SC_DEVICE_IO): Likewise.
24024         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
24025         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
24026         [POSIX] (_SC_FD_MGMT): Likewise.
24027         [POSIX] (_SC_FIFO): Likewise.
24028         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
24029         [POSIX] (_SC_FILE_LOCKING): Likewise.
24030         [POSIX] (_SC_FILE_SYSTEM): Likewise.
24031         [POSIX] (_SC_IOV_MAX): Likewise.
24032         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
24033         [POSIX] (_SC_NETWORKING): Likewise.
24034         [POSIX] (_SC_PAGE_SIZE): Likewise.
24035         [POSIX] (_SC_PASS_MAX): Likewise.
24036         [POSIX] (_SC_PIPE): Likewise.
24037         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
24038         [POSIX] (_SC_REGEXP): Likewise.
24039         [POSIX] (_SC_SHELL): Likewise.
24040         [POSIX] (_SC_SIGNALS): Likewise.
24041         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
24042         [POSIX] (_SC_SPIN_LOCKS): Likewise.
24043         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
24044         [POSIX] (_SC_USER_GROUPS): Likewise.
24045         [POSIX] (_SC_USER_GROUPS_R): Likewise.
24046         [POSIX] (_SC_STREAMS): Likewise.
24047         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
24048         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
24049         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
24050         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
24051         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
24052         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
24053         [POSIX] (_PC_FILESIZEBITS): Likewise.
24054         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
24055         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
24056         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
24057         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
24058         [POSIX] (uid_t): Likewise.
24059         [POSIX] (gid_t): Likewise.
24060         [POSIX] (off_t): Likewise.
24061         [POSIX] (pid_t): Likewise.
24062         [POSIX] (cuserid): Allow.
24063         (_SC_2_CHAR_TERM): Require constant.
24064         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
24065         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
24066         variable.
24067
24068 2015-05-20  Roland McGrath  <roland@hack.frob.com>
24069
24070         * sysdeps/nacl/pthread-pids.h: New file.
24071         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
24072         (create_thread): Use __nacl_get_tid to initialize PD->tid.
24073
24074         * nptl/pthread-pids.h: New file.
24075         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
24076         * nptl/nptl-init.c: Include <pthread-pids.h>.
24077         (__pthread_initialize_minimal_internal):
24078         Call __pthread_initialize_pids instead of set_tid_address syscall.
24079
24080         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
24081         * sysdeps/posix/usleep.c: ... here.
24082
24083 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24084
24085         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
24086         call_pselect6 object.
24087         [$(subdir) = io]: Remove call_sync_file_range object.
24088         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
24089         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
24090         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
24091         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
24092
24093 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
24094
24095         * math/s_cproj.c: Add include "math_private.h".
24096         * math/s_cprojf.c: Likewise.
24097         * math/s_cprojl.c: Likewise.
24098
24099 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
24100
24101         [BZ #18244]
24102         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
24103         high mantissa bit when testing whether P is a NaN.
24104         * math/libm-test.inc (remainder_test_data): Add more tests.
24105         (remquo_test_data): Likewise.
24106
24107         [BZ #18049]
24108         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
24109         below -32, return the argument, with underflow if subnormal.
24110         * math/auto-libm-test-in: Add more tests of atanh.
24111         * math/auto-libm-test-out: Regenerated.
24112
24113 2015-05-19  Roland McGrath  <roland@hack.frob.com>
24114
24115         [BZ #18434]
24116         * nptl/tst-sem15.c: New file.
24117         * nptl/Makefile (tests): Add it.
24118         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
24119         s/<</>>/ to fix typo in EOVERFLOW check.
24120         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
24121
24122 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24123
24124         * manual/strings.texi (envz_remove): Fix typo in safety
24125         annotations.
24126
24127 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24128             Steve Ellcey  <sellcey@imgtec.com>
24129
24130         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
24131         in order to avoid strict alias warnings.
24132         (iruserok_af): Ditto for ra.
24133
24134 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
24135
24136         [BZ #17581]
24137         * malloc/hooks.c
24138         (magicbyte): Convert to a function and avoid returning 0x01.
24139         (mem2mem_check): Avoid using a length byte equal to the magic byte.
24140         (mem2chunk_check): Fix unsigned comparisons to zero.
24141         Hoist defs of sz and magic.
24142
24143 2015-05-19  Richard Henderson  <rth@redhat.com>
24144
24145         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
24146
24147         * sysdeps/alpha/fpu/libm-test-ulps: Update.
24148
24149 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24150
24151         [BZ #16159]
24152         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
24153         * malloc/arena.c (arena_lock): Check if arena is corrupt.
24154         (reused_arena): Find a non-corrupt arena.
24155         (heap_trim): Pass arena to unlink.
24156         * malloc/hooks.c (malloc_check_get_size): Pass arena to
24157         malloc_printerr.
24158         (top_check): Likewise.
24159         (free_check): Likewise.
24160         (realloc_check): Likewise.
24161         * malloc/malloc.c (malloc_printerr): Add arena argument.
24162         (unlink): Likewise.
24163         (munmap_chunk): Adjust.
24164         (ARENA_CORRUPTION_BIT): New macro.
24165         (arena_is_corrupt): Likewise.
24166         (set_arena_corrupt): Likewise.
24167         (sysmalloc): Use mmap if there are no usable arenas.
24168         (_int_malloc): Likewise.
24169         (__libc_malloc): Don't fail if arena_get returns NULL.
24170         (_mid_memalign): Likewise.
24171         (__libc_calloc): Likewise.
24172         (__libc_realloc): Adjust for additional argument to
24173         malloc_printerr.
24174         (_int_free): Likewise.
24175         (malloc_consolidate): Likewise.
24176         (_int_realloc): Likewise.
24177         (_int_memalign): Don't touch corrupt arenas.
24178         * malloc/tst-malloc-backtrace.c: New test case.
24179
24180         * Makefile (summarize-tests): Fix return value on success.
24181
24182         * manual/string.texi (Envz Functions): Add envz_remove.
24183
24184 2015-05-18  Roland McGrath  <roland@hack.frob.com>
24185
24186         * sysdeps/posix/opendir.c: Include <stdbool.h>.
24187         (invalid_name): New function, broken out of ...
24188         (__opendirat): ... here.  Call it.
24189         (need_isdir_precheck): New function, broken out of ...
24190         (__opendirat): ... here.  Call it.
24191         Use __fxstatat64, not __xstatat64.
24192         (opendir_oflags): New function, broken out of ...
24193         (__opendirat): ... here.  Call it.
24194         (opendir_tail): New function, broken out of ...
24195         (__opendirat): ... here.  Call it.
24196         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
24197         opendir_tail, rather than punting to __opendirat.
24198         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
24199
24200 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
24201
24202         * .gitignore: Ignore generated *.pyc.
24203
24204 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
24205
24206         * include/stdio.h: Define __need_wint_t.
24207         * test-skeleton.c: Avoid `for' loop initial declaration.
24208         * nptl/tst-initializers1.c: Use test-skeleton.c.
24209
24210 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24211
24212         [BZ #18418]
24213         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
24214
24215 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24216
24217         [BZ #16352]
24218         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
24219         (__ieee754_atanh): Force underflow exception for results with
24220         small absolute value.
24221         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
24222         (__ieee754_atanhf): Force underflow exception for results with
24223         small absolute value.
24224         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
24225         (__ieee754_atanh): Force underflow exception for results with
24226         small absolute value.
24227         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
24228         (__ieee754_atanhf): Force underflow exception for results with
24229         small absolute value.
24230         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
24231         (__ieee754_atanhl): Force underflow exception for results with
24232         small absolute value.
24233         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
24234         (__ieee754_atanhl): Force underflow exception for results with
24235         small absolute value.
24236         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
24237         (__ieee754_atanhl): Force underflow exception for results with
24238         small absolute value.
24239         * math/auto-libm-test-in: Do not allow missing underflow
24240         exceptions from atanh.
24241         * math/auto-libm-test-out: Regenerated.
24242
24243         [BZ #18221]
24244         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
24245         2**-28 as threshold for returning x or +/- 1/x.
24246         * math/auto-libm-test-in: Add more tests of tan.
24247         * math/auto-libm-test-out: Regenerated.
24248
24249         [BZ #18220]
24250         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
24251         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
24252         * math/auto-libm-test-in: Add another test of lgamma.
24253         * math/auto-libm-test-out: Regenerated.
24254
24255 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
24256
24257         * stdio-common/printf_fp.c (___printf_fp): Use abs.
24258         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
24259         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
24260         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
24261         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
24262         (ADD2A): Use fabs.  (SUB2A): Use fabs.
24263         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
24264         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
24265         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
24266         (log1): Use fabs.  (my_log2): Use fabs.
24267         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
24268         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
24269         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
24270         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
24271         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
24272         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
24273         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
24274         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
24275         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
24276         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
24277         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
24278
24279 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24280
24281         [BZ #18217]
24282         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
24283         as threshold for returning 1 - x.
24284         * math/auto-libm-test-in: Add more tests of erfc.
24285         * math/auto-libm-test-out: Regenerated.
24286
24287 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
24288
24289         [BZ #18196]
24290         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
24291         threshold for large arguments.
24292         * math/auto-libm-test-in: Add another test of atan.
24293         * math/auto-libm-test-out: Regenerated.
24294
24295         [BZ #16339]
24296         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
24297         (__log1p): Force underflow exception for results with small
24298         absolute value.
24299         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
24300         (__log1pf): Force underflow exception for results with small
24301         absolute value.
24302         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
24303         (__log1p): Force underflow exception for results with small
24304         absolute value.
24305         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
24306         (__log1pf): Force underflow exception for results with small
24307         absolute value.
24308         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
24309         (__log1pl): Force underflow exception for results with small
24310         absolute value.
24311         * math/auto-libm-test-in: Do not allow missing underflow
24312         exceptions from log1p.
24313         * math/auto-libm-test-out: Regenerated.
24314
24315 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
24316             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24317
24318         [BZ #16704]
24319         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
24320
24321 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
24322
24323         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
24324         (libmvec): New variable.
24325         * configure.ac: Added option for mathvec build.
24326         * configure: Regenerated.
24327         * mathvec/Depend: New file.
24328         * mathvec/Makefile: New file.
24329         * shlib-versions: Added libmvec.
24330         * math/Makefile: Added rule for libm.so installation.
24331
24332         * bits/math-vector.h: New file.
24333         * bits/libm-simd-decl-stubs.h: New header.
24334         * math/Makefile (headers): Added new header
24335         libm-simd-decl-stubs.h.
24336         * math/math.h (__MATHCALL_VEC): New macro.
24337
24338         * math/gen-libm-have-vector-test.sh: Script generates series of macros
24339         for conditions in testing functions.
24340         * math/Makefile: Added call of libm-have-vector-test.sh.
24341         * math/libm-test.inc (HAVE_VECTOR): New macros.
24342
24343         * math/libm-test.inc: START refactored.
24344         * math/test-double.c (TEST_MATHVEC): Add define.
24345         * math/test-float.c: Likewise.
24346         * math/test-idouble.c: Likewise.
24347         * math/test-ifloat.c: Likewise.
24348         * math/test-ildoubl.c: Likewise.
24349         * math/test-ldouble.c: Likewise.
24350         * sysdeps/generic/math-tests-arch.h
24351         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
24352         architecture check.
24353
24354         * math/test-double.c (FUNC_TEST): New macro.
24355         * math/test-float.c: Likewise.
24356         * math/test-idouble.c: Likewise.
24357         * math/test-ifloat.c: Likewise.
24358         * math/test-ildoubl.c: Likewise.
24359         * math/test-ldouble.c: Likewise.
24360         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
24361
24362 2015-05-13  Roland McGrath  <roland@hack.frob.com>
24363
24364         * sysdeps/nacl/fdopendir.c: New file.
24365
24366         * dirent/scandir-tail.c: New file.
24367         * dirent/scandir64-tail.c: New file.
24368         * dirent/Makefile (routines): Add them.
24369         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
24370         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
24371         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
24372         [!SCANDIR] (SCANDIR_TAIL): New macro.
24373         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
24374         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
24375         (SCANDIRAT): Macro removed.
24376         (SCANDIR_TAIL): New macro.
24377         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
24378         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
24379         (SCANDIRAT): Just call __opendirat and __scandir_tail.
24380         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
24381         (READDIR): Macro removed.
24382         (SCANDIR_TAIL): New macro.
24383         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
24384         (SCANDIR_TAIL): New macro.
24385
24386         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
24387         * dirent/scandir-cancel.c: ... to this new file.
24388         * dirent/Makefile (routines): Add it.
24389         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
24390         * sysdeps/unix/sysv/linux/i386/scandir64.c
24391         (SKIP_SCANDIR_CANCEL): Macro removed.
24392         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
24393
24394         * dirent/tst-scandir.c: New file.
24395         * dirent/tst-scandir64.c: New file.
24396         * dirent/Makefile (tests): Add them.
24397
24398 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
24399
24400         [BZ #18409]
24401         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
24402
24403 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24404
24405         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
24406         list.
24407
24408 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
24409
24410         * benchtests/bench-strcoll.c: New benchmark.
24411         * benchtests/Makefile: Generate locales and run benchmark.
24412         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
24413         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
24414         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
24415         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
24416         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
24417         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
24418         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
24419         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
24420         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
24421         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
24422         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
24423         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
24424         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
24425         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
24426         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
24427         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
24428         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
24429         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
24430         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
24431         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
24432         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
24433         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
24434         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
24435         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
24436
24437 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
24438
24439         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
24440         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24441
24442 2015-05-12  Roland McGrath  <roland@hack.frob.com>
24443
24444         * posix/uname-values.h: New file.
24445         * posix/uname.c: Include that instead of <config-name.h>.
24446         * sysdeps/nacl/uname-values.h: New file.
24447         * sysdeps/arm/nacl/uname-values.h: New file.
24448
24449 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
24450
24451         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
24452         splitting into fields.
24453
24454 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
24455
24456         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
24457         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
24458         * locale/localeinfo.h: Add enum collation_encoding_type.
24459         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
24460         * programs/ld-collate.c (collate_output): Add encoding type info.
24461         * string/strcoll_l.c (STRDIFF): New function.
24462         * (STRCOLL): Use STRDIFF to skip over equal prefix.
24463         * wcsmbs/wcscoll_l.c: Define STRDIFF.
24464
24465 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
24466
24467         [BZ #18397]
24468         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
24469         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
24470         <fpu_control.h> instead of <math/fpu_control.c>.
24471         * sysdeps/mips/mips32/fpu/Makefile: New file.
24472
24473 2015-05-11  Andreas Schwab  <schwab@suse.de>
24474
24475         [BZ #18007]
24476         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
24477         nss_endgrent.
24478         (_nss_compat_endgrent): Call nss_endgrent.
24479         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
24480         nss_endpwent.
24481         (_nss_compat_endpwent): Call nss_endpwent.
24482         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
24483         needent, call nss_setspent only if non-zero.
24484         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
24485         (internal_endspent): Don't call nss_endspent.
24486         (_nss_compat_endspent): Call nss_endspent.
24487         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
24488         Remove.  All uses removed.
24489         (internal_setent): Remove parameter stayopen, add parameter
24490         stream.  Use it instead of global variable.
24491         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
24492         (internal_endent, internal_getent): Add parameter stream.  Use it
24493         instead of global variable.
24494         (CONCAT(_nss_files_end,ENTNAME))
24495         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
24496         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
24497         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
24498         uses removed.
24499         (internal_setent, internal_endent): Add parameter stream.  Use it
24500         instead of global variable.
24501         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
24502         stream.
24503         (get_next_alias): Add parameter stream.
24504         (_nss_files_getaliasent_r): Pass global stream.
24505         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
24506         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
24507         (_nss_files_gethostbyname4_r): Pass local stream to
24508         internal_setent, internal_getent and internal_endent.  Remove
24509         locking.
24510
24511 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
24512
24513         * tst-strfmon1.c (tests): Update expected currency symbol.
24514
24515 2015-05-08  Roland McGrath  <roland@hack.frob.com>
24516
24517         * sysdeps/nacl/gethostname.c: New file.
24518
24519 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
24520
24521         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
24522         and sinh.
24523         * math/auto-libm-test-out: Regenerated.
24524         * sysdeps/i386/fpu/libm-test-ulps: Update.
24525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24526
24527 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
24528
24529         [BZ #18125]
24530         * stdlib/tst-setcontext3.c: New file.
24531         * stdlib/tst-setcontext3.sh: New file.
24532         * stdlib/Makefile (tests): Add tst-setcontext3.
24533         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
24534         to verify test program created output file.
24535         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
24536         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
24537         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
24538         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
24539
24540 2015-05-06  Roland McGrath  <roland@hack.frob.com>
24541
24542         [BZ #18383]
24543         * elf/tst-tlsalign.c: New file.
24544         * elf/tst-tlsalign-static.c: New file.
24545         * elf/tst-tlsalign-lib.c: New file.
24546         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
24547         (tests-static): Add tst-tlsalign-static.
24548         (modules-names): Add tst-tlsalign-lib.
24549         (test-xfail-tst-tlsalign): New variable.
24550         (test-xfail-tst-tlsalign-static): New variable.
24551
24552         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
24553         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
24554
24555 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
24556
24557         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
24558         csqrt, erfc, sin and sincos.
24559         * math/auto-libm-test-out: Regenerated.
24560         * sysdeps/i386/fpu/libm-test-ulps: Update.
24561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24562
24563 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24564
24565         * sysdeps/aarch64/libm-test-ulps: Update.
24566
24567 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
24568
24569         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
24570         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
24571         * math/auto-libm-test-out: Regenerated.
24572         * sysdeps/i386/fpu/libm-test-ulps: Update.
24573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24574
24575 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
24576
24577         [BZ #18265]
24578         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
24579         (wcsncpy): Likewise.
24580
24581 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24582
24583         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
24584         Assume __ASSUME_FALLOCATE is always true.
24585         * sysdeps/unix/sysv/linux/posix_fallocate64.c
24586         (__posix_fallocate64_l64): Likweise.
24587         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
24588         (posix_fallocate): Likewise.
24589         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
24590         (__posix_fallocate64_l64): Likewise.
24591         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
24592         [!__ASSUME_FALLOCATE]: Add comment.
24593
24594 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24595
24596         * sysdeps/unix/sysv/linux/i386/Makefile
24597         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
24598         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
24599         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
24600         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
24601         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
24602         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
24603         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
24604
24605 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
24606
24607         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
24608         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
24609         tgamma.
24610         * math/auto-libm-test-out: Regenerated.
24611         * sysdeps/i386/fpu/libm-test-ulps: Update.
24612         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24613
24614 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
24615
24616         * math/auto-libm-test-in: Add more tests of tgamma.
24617         * math/auto-libm-test-out: Regenerated.
24618         * sysdeps/i386/fpu/libm-test-ulps: Update.
24619         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24620
24621         * math/auto-libm-test-in: Add more tests of tanh.
24622         * math/auto-libm-test-out: Regenerated.
24623         * sysdeps/i386/fpu/libm-test-ulps: Update.
24624         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24625
24626         * math/auto-libm-test-in: Add more tests of tan.
24627         * math/auto-libm-test-out: Regenerated.
24628         * sysdeps/i386/fpu/libm-test-ulps: Update.
24629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24630
24631         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
24632         * math/auto-libm-test-out: Regenerated.
24633         * sysdeps/i386/fpu/libm-test-ulps: Update.
24634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24635
24636         * math/auto-libm-test-in: Add another test of pow.
24637         * math/auto-libm-test-out: Regenerated.
24638         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24639
24640         * math/auto-libm-test-in: Add more tests of lgamma.
24641         * math/auto-libm-test-out: Regenerated.
24642         * sysdeps/i386/fpu/libm-test-ulps: Update.
24643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24644
24645         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
24646         log1p.
24647         * math/auto-libm-test-out: Regenerated.
24648         * sysdeps/i386/fpu/libm-test-ulps: Update.
24649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24650
24651 2015-05-01  Mark Wielaard  <mjw@redhat.com>
24652
24653         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
24654         Elf64_Chdr structs and ELFCOMPRESS constants.
24655
24656 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
24657
24658         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
24659         expm1.
24660         * math/auto-libm-test-out: Regenerated.
24661         * sysdeps/i386/fpu/libm-test-ulps: Update.
24662         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24663
24664         * math/auto-libm-test-in: Add more tests of erf and erfc.
24665         * math/auto-libm-test-out: Regenerated.
24666         * sysdeps/i386/fpu/libm-test-ulps: Update.
24667         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24668
24669 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24670
24671         * config.h.in (HAVE_AARCH64_BE): Add.
24672
24673 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
24674
24675         * math/auto-libm-test-in: Add more tests of csqrt.
24676         * math/auto-libm-test-out: Regenerated.
24677         * sysdeps/i386/fpu/libm-test-ulps: Update.
24678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24679
24680         * math/auto-libm-test-in: Add more tests of cosh and sinh.
24681         * math/auto-libm-test-out: Regenerated.
24682         * sysdeps/i386/fpu/libm-test-ulps: Update.
24683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24684
24685         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
24686
24687 2015-04-29  Roland McGrath  <roland@hack.frob.com>
24688
24689         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
24690         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
24691
24692         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
24693         (euidaccess, eaccess): Define as weak aliases.
24694
24695         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
24696         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
24697         but __suseconds_t is often 'long int' so some sources assume that
24698         type is being used (e.g. they use %ld to print tv_usec).
24699
24700 2015-04-29  Florian Weimer  <fweimer@redhat.com>
24701
24702         [BZ #18007]
24703         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
24704         (CVE-2014-8121)
24705         * nss/tst-nss-getpwent.c: New file.
24706         * nss/Makefile (tests): Add new test.
24707
24708 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
24709
24710         [BZ #18346]
24711         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
24712         exponents less than 48 as cases where high part of mantissa needs
24713         examining to determine whether argument is integral.
24714         * math/libm-test.inc (round_test_data): Add more tests.
24715
24716 2015-04-28  Mark Wielaard  <mjw@redhat.com>
24717
24718         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
24719
24720 2015-04-27  David S. Miller  <davem@davemloft.net>
24721
24722         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
24723         __tls_get_addr.
24724         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
24725
24726 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
24727
24728         [BZ#18333]
24729         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
24730
24731 2015-04-27  Florian Weimer  <fweimer@redhat.com>
24732
24733         [BZ#18333]
24734         * time/tzset.c (parse_tzname): Return error on memory allocation
24735         failure.
24736         * test-skeleton.c (struct temp_name_list): Change type of name
24737         member to non-const.
24738         (add_temp_file): Create a copy of the file name.
24739         (delete_temp_files): Deallocate memory.
24740         (create_temp_file): Add comment.
24741
24742 2015-04-24  Florian Weimer  <fweimer@redhat.com>
24743
24744         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
24745         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
24746
24747 2015-04-24  Roland McGrath  <roland@hack.frob.com>
24748
24749         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
24750         * sysdeps/arm/configure: Regenerated.
24751
24752 2015-04-24  Florian Weimer  <fweimer@redhat.com>
24753
24754         [BZ #17715]
24755         * time/tzfile.c (__tzfile_read): Check for large values of
24756         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
24757         * time/tzset.c (__tzstring_len): New function, based on the old
24758         __tzstring function.
24759         (__tzstring): Call __tzstring_len.
24760         (parse_tzname): New helper function extracted from
24761         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
24762         the input string.
24763         (parse_offset): New helper function extracted from
24764         __tzset_parse_tz.  Replace switch with fallthrough with
24765         initialization before sscanf.
24766         (parse_rule): Likewise.
24767         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
24768         new-style function definition.
24769         * timezone/Makefile (tests): Add tst-tzset.
24770         (tst-tzset.out): Dependencies on time zone files.
24771         (tst-tzset-ENV): Set TZDIR.
24772         (testdata/XT%): Copy crafted time zone files.
24773         * timezone/README: Mention crafted time zone files.
24774         * timezone/testdata/XT1, timezone/testdata/XT2,
24775         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
24776         files.
24777         * timezone/tst-tzset.c: New test.
24778
24779 2015-04-24  Florian Weimer  <fweimer@redhat.com>
24780
24781         * Makeconfig (+gccwarn): Remove -Winline.
24782
24783 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
24784
24785         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
24786
24787 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
24788
24789         * NEWS: Mention sysconf() cache information support for s390.
24790         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
24791
24792 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
24793
24794         * math/k_casinh.c (__kernel_casinh): Use __copysign.
24795         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
24796         (__nearbyint): Likewise.
24797         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
24798         (copysignl): Likewise.
24799
24800 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
24801
24802         [BZ #18287]
24803         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
24804         based on padding.  (CVE-2015-1781)
24805
24806 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24807
24808         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
24809         libc-vdso.h.
24810         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
24811         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
24812         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
24813         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
24814         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
24815         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
24816         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
24817         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
24818         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
24819         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
24820         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
24821         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
24822         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
24823         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
24824         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
24825         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
24826         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
24827         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
24828         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
24829         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
24830         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
24831         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
24832         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
24833
24834 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24835
24836         * stdlib/setenv.c (__add_to_environ):
24837         Dump core quickly if setenv (..., NULL, ...) is called.
24838         This time, do it the right way, and pacify GCC with a pragma.
24839
24840 2015-04-17  Roland McGrath  <roland@hack.frob.com>
24841
24842         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
24843         IMAP->l_prev cannot be null, and #if out the code for the contrary
24844         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
24845         believe that NS (&_dl_ns[NSID]) could point outside the array.
24846
24847         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
24848         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
24849         before using NSID as an index.
24850
24851 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
24852
24853         [BZ #17825]
24854         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
24855         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
24856         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
24857
24858 2015-04-17  Roland McGrath  <roland@hack.frob.com>
24859
24860         Add preliminary port to Google Native Client on ARM.
24861         * abi-tags (.*-.*-nacl.*): New entry.
24862         * sysdeps/arm/nacl: New directory.
24863         * sysdeps/nacl: New directory.
24864
24865 2015-04-16  David S. Miller  <davem@davemloft.net>
24866
24867         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
24868         lowlevellock-futex.h
24869
24870 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
24871
24872         * sysdeps/tile/configure.ac: New file.
24873         * sysdeps/tile/configure: Regenerated.
24874
24875 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24876
24877         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
24878         conditionals for weak_alias and libc_hidden_weak.
24879         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
24880         libc_hidden_weak and weak_alias.
24881         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
24882         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
24883         and weak_alias for static one.
24884
24885 2015-04-15  David S. Miller  <davem@davemloft.net>
24886
24887         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
24888
24889 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24890
24891         [BZ #18206]
24892         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
24893           Use signed comparision instead of substraction to avoid
24894           overflow bug.
24895         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
24896           Take the sign of ret.
24897         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
24898           Do not expect precise return values. Only the sign matters.
24899         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
24900         * wcsmbs/test-wcsncmp.c: New File.
24901         * string/test-strncmp.c: Add wcsncmp support.
24902
24903 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24904
24905         [BZ #6792]
24906         * math/w_log1p.c: New file.
24907         * math/w_log1pf.c: Likewise.
24908         * math/w_log1pl.c: Likewise.
24909         * math/Makefile (libm-calls): Add w_log1p.
24910         * math/s_log1pl.c (log1pl): Remove weak_alias.
24911         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
24912         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
24913         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
24914         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
24915         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
24916         [NO_LONG_DOUBLE] (log1pl): Likewise.
24917         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
24918         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
24919         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
24920         (log1p): Remove long_double_symbol.
24921         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
24922         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
24923         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
24924         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
24925         remove weak_alias for corresponding log1p function.
24926         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
24927         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
24928         * sysdeps/ia64/fpu/w_log1p.c: New file.
24929         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
24930         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
24931         * math/libm-test.inc (log1p_test_data): Add errno expectations.
24932
24933 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
24934
24935         [BZ #18247]
24936         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
24937         decimal exponent by 1.
24938         * stdlib/tst-strtod-round-data: Add more tests.
24939         * stdlib/tst-strtod-round.c (tests): Regenerated.
24940
24941 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
24942
24943         * math/auto-libm-test-in: Add more tests of clog and clog10.
24944         * math/auto-libm-test-out: Regenerated.
24945         * sysdeps/i386/fpu/libm-test-ulps: Update.
24946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24947
24948 2015-04-09  Roland McGrath  <roland@hack.frob.com>
24949
24950         * Makeconfig (module-cppflags): Exclude all .v.i files.
24951         (skip-module-cppflags): Variable removed.
24952
24953         * configure.ac (libc_config_ok): Initialize before reading
24954         preconfigure scripts, not after.
24955         * configure: Regenerated.
24956
24957         * test-skeleton.c (TIMEOUT): Move #define to top level.
24958         (main): Grok environment variable TEST_DIRECT.  If set, print
24959         test expectation details into that file and then behave as if
24960         given --direct.
24961
24962 2015-04-09  Florian Weimer  <fweimer@redhat.com>
24963
24964         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
24965         warning on 32-bit.
24966
24967 2015-04-08  David S. Miller  <davem@davemloft.net>
24968
24969         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24970
24971 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
24972
24973         * math/auto-libm-test-in: Add more tests of atanh.
24974         * math/auto-libm-test-out: Regenerated.
24975         * sysdeps/i386/fpu/libm-test-ulps: Update.
24976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24977
24978         * math/auto-libm-test-in: Add more tests of atan.
24979         * math/auto-libm-test-out: Regenerated.
24980         * sysdeps/i386/fpu/libm-test-ulps: Update.
24981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24982
24983 2015-04-08  Florian Weimer  <fweimer@redhat.com>
24984
24985         * elf/pldd.c (main): Rewrite to use struct
24986         scratch_buffer instead of extend_alloca.
24987         * elf/pldd-xx.c (find_maps): Likewise.
24988         * grp/initgroups.c: Include <scratch_buffer.h> instead of
24989         <alloca.h>.
24990         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
24991         scratch_buffer instead of extend_alloca.
24992         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
24993         grp/compat-initgroups.c.
24994         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
24995         Rewrite to use struct scratch_buffer instead of extend_alloca.
24996         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
24997         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
24998
24999 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25000
25001         * math/auto-libm-test-in: Add more tests of cbrt.
25002         * math/auto-libm-test-out: Regenerated.
25003         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25004
25005         * math/auto-libm-test-in: Add more tests of cabs.
25006         * math/auto-libm-test-out: Regenerated.
25007         * sysdeps/i386/fpu/libm-test-ulps: Update.
25008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25009
25010         [BZ #18210]
25011         [BZ #18211]
25012         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
25013         (__ieee754_atan2): Set FE_TONEAREST mode for internal
25014         computations.
25015         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
25016         clog10.
25017         * math/auto-libm-test-out: Regenerated.
25018         * sysdeps/i386/fpu/libm-test-ulps: Update.
25019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25020
25021         [BZ #18197]
25022         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
25023         (atan): Set FE_TONEAREST mode for internal computations.
25024         * math/auto-libm-test-in: Add more tests of atan.
25025         * math/auto-libm-test-out: Regenerated.
25026
25027 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
25028
25029         [BZ #17930]
25030         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
25031
25032 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25033
25034         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
25035
25036 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25037
25038         * include/scratch_buffer.h: New file.
25039         * malloc/scratch_buffer_grow.c: Likewise.
25040         * malloc/scratch_buffer_grow_preserve.c: Likewise.
25041         * malloc/scratch_buffer_set_array_size.c: Likewise.
25042         * malloc/tst-scratch_buffer.c: Likewise.
25043         * malloc/Makefile (routines): Add scratch_buffer_grow.
25044         (tests): Add test case.
25045         * malloc/Versions (GLIBC_PRIVATE): Export
25046         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
25047         __libc_scratch_buffer_set_array_size.
25048
25049 2015-04-06  Richard Henderson  <rth@redhat.com>
25050
25051         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
25052         * sysdeps/alpha/fpu/libm-test-ulps: Update.
25053
25054         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
25055         unsigned int before printing.
25056
25057 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25058
25059         [BZ #17596]
25060         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
25061         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
25062
25063 2015-04-02  Florian Weimer  <fweimer@redhat.com>
25064
25065         * include/libc-internal.h (libc_max_align_t): Define.
25066
25067 2015-04-02  Andreas Schwab  <schwab@suse.de>
25068
25069         [BZ #16850]
25070         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
25071
25072 2015-04-02  Mel Gorman  <mgorman@suse.de>
25073
25074         [BZ #17195]
25075         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
25076         as well as the main arena.
25077
25078 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25079
25080         [BZ #18185]
25081         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
25082         sharing L2 cache to 2 for Silvermont/Knights Landing.
25083
25084 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25085
25086         [BZ #17711]
25087         * config.make.in (have-protected-data): New.
25088         * configure.ac: Check linker support for protected data symbol.
25089         * configure: Regenerated.
25090         * elf/Makefile (modules-names): Add tst-protected1moda and
25091         tst-protected1modb if $(have-protected-data) is yes.
25092         (tests): Add tst-protected1a and tst-protected1b if
25093         $(have-protected-data) is yes.
25094         ($(objpfx)tst-protected1a): New.
25095         ($(objpfx)tst-protected1b): Likewise.
25096         (tst-protected1modb.so-no-z-defs): Likewise.
25097         * elf/tst-protected1a.c: New file.
25098         * elf/tst-protected1b.c: Likewise.
25099         * elf/tst-protected1mod.h: Likewise.
25100         * elf/tst-protected1moda.c: Likewise.
25101         * elf/tst-protected1modb.c: Likewise.
25102
25103 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25104
25105         [BZ #17711]
25106         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
25107         indicates it is called from do_lookup_x on relocation against
25108         protected data, skip the data definion in the executable from
25109         copy reloc.
25110         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
25111         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
25112         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
25113         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
25114         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
25115         otherwise to 0.
25116         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25117         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
25118         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
25119         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25120         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
25121         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
25122
25123 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
25124
25125         * sysdeps/nptl/pthread.h: Remove duplicate definition of
25126         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
25127
25128 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
25129
25130         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
25131         THREAD_SETMEM_NC.
25132         * sysdeps/x86_64/nptl/tls.h: Ditto.
25133
25134 2015-03-27  Roland McGrath  <roland@hack.frob.com>
25135
25136         * dlfcn/tststatic.c (main): Converted to ...
25137         (do_test): ... this.
25138         (TEST_FUNCTION): New macro.
25139         Include test-skeleton.c.
25140
25141 2015-03-26  Alan Modra  <amodra@gmail.com>
25142
25143         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
25144         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
25145         zero for undefined weak.
25146         (elf_machine_plt_conflict): Similarly.
25147
25148 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25149
25150         * math/auto-libm-test-in: Add more tests of acosh, asinh and
25151         atanh.
25152         * math/auto-libm-test-out: Regenerated.
25153         * sysdeps/i386/fpu/libm-test-ulps: Update.
25154         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25155
25156         * math/auto-libm-test-in: Add another test of asin.
25157         * math/auto-libm-test-out: Regenerated.
25158         * sysdeps/i386/fpu/libm-test-ulps: Update.
25159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25160
25161         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
25162         Remove macro.
25163         (LLL_EBX_REG): Likewise.
25164         (LLL_ENTER_KERNEL): Likewise.
25165
25166         * math/auto-libm-test-in: Add more tests of asin.
25167         * math/auto-libm-test-out: Regenerated.
25168         * sysdeps/i386/fpu/libm-test-ulps: Update.
25169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25170
25171         [BZ #18138]
25172         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
25173         libc_do_syscall_args): New structure.
25174         (INTERNAL_SYSCALL_MAIN_0): New macro.
25175         (INTERNAL_SYSCALL_MAIN_1): Likewise.
25176         (INTERNAL_SYSCALL_MAIN_2): Likewise.
25177         (INTERNAL_SYSCALL_MAIN_3): Likewise.
25178         (INTERNAL_SYSCALL_MAIN_4): Likewise.
25179         (INTERNAL_SYSCALL_MAIN_5): Likewise.
25180         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
25181         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
25182         Replace conditional definitions by conditional definitions of ....
25183         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
25184         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
25185         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
25186         (libpthread-sysdep_routines): Add libc-do-syscall.
25187         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
25188         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
25189         to __NR_futex not 240.
25190
25191 2015-03-25  Alan Modra  <amodra@gmail.com>
25192
25193         * NEWS: Advertise TLS optimization.
25194         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
25195         (DT_PPC_NUM): Increment.
25196         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
25197         (CHECK_STATIC_TLS): Use here.
25198         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
25199         TLS descriptors.
25200         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
25201         * sysdeps/powerpc/dl-tls.c: New file.
25202         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
25203         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
25204         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
25205         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
25206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
25207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
25208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
25209
25210 2015-03-25  Alan Modra  <amodra@gmail.com>
25211
25212         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
25213         for overlapping .opd entries" to "support...".
25214         * sysdeps/powerpc/powerpc64/configure: Regenerate
25215
25216 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25217
25218         * math/auto-libm-test-in: Add more tests of acos.
25219         * math/auto-libm-test-out: Regenerated.
25220         * sysdeps/i386/fpu/libm-test-ulps: Update.
25221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25222
25223         * math/auto-libm-test-in: Add more tests of expm1.
25224         * math/auto-libm-test-out: Regenerated.
25225         * sysdeps/i386/fpu/libm-test-ulps: Update.
25226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25227
25228 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
25229
25230         * math/auto-libm-test-in: Add more tests of cosh and sinh.
25231         * math/auto-libm-test-out: Regenerated.
25232         * sysdeps/i386/fpu/libm-test-ulps: Update.
25233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25234
25235         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25237
25238         * math/auto-libm-test-in: Add more tests of log2.
25239         * math/auto-libm-test-out: Regenerated.
25240         * sysdeps/i386/fpu/libm-test-ulps: Update.
25241         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25242
25243 2015-03-23  Roland McGrath  <roland@hack.frob.com>
25244
25245         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
25246         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
25247         _IO_IS_APPENDING bit in READ_WRITE instead.
25248
25249 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25250
25251         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
25252         (__determine_cpumask_size): Replace extend_alloca with a
25253         variable-length array.  Do not treat res == 0 as an error.
25254
25255 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25256
25257         [BZ #18100]
25258         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
25259         and integer overflow.
25260         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
25261         (main): Add integer overflow tests.
25262         * manual/pattern.texi (Calling Wordexp): Document additional use
25263         for WRDE_SYNTAX.
25264
25265 2015-03-23  Alan Modra  <amodra@gmail.com>
25266
25267         * config.h.in: Remove HAVE_ASM_PPC_REL16.
25268         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
25269         and false branch of conditional.
25270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
25271         Likewise.
25272
25273 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
25274
25275         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
25276         libc-modules.h
25277         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
25278         unused declaration of _hurd_intr_rpc_msg_in_trap.
25279         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
25280         defined instead of whether it is non-zero.
25281         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
25282         input constraint instead of both input and output constraint.  Use ecx
25283         clobber instead of %ecx.
25284         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
25285         mutex_unlock): Use a statement expression instead of an expression list.
25286         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
25287         type to vm_size_t instead of vm_address_t.
25288         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
25289         defined instead of whether it is non-zero.
25290         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
25291         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
25292         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
25293         comparisons with mapaddr.
25294         * nscd/nscd-client.h: Include <time.h>.
25295         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
25296         9th parameter to __vm_region instead of int.
25297         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
25298         * scripts/check-local-headers.sh (exclude): Add device/,
25299         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
25300         cthreads.h.
25301
25302 2015-03-19  Roland McGrath  <roland@hack.frob.com>
25303
25304         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
25305         to account for alignment padding.
25306         * sysdeps/arm/memmove.S: Likewise.
25307
25308 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
25309
25310         * sysdeps/unix/sysv/linux/generic/README: New file.
25311
25312 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
25313
25314         [BZ #18138]
25315         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
25316         (futex_abstimed_wait)
25317         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
25318         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
25319         of lll_futex_timed_wait.
25320
25321 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
25322
25323         [BZ #17542]
25324         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
25325
25326 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
25327
25328         [BZ #17090]
25329         [BZ #17620]
25330         [BZ #17621]
25331         [BZ #17628]
25332         * NEWS: Update.
25333         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
25334         entries with Static TLS too.  Skip entries past the end of the
25335         allocated DTV, from Alan Modra.
25336         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
25337         Static TLS DTV entry set up from...
25338         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
25339         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
25340         * nptl/allocatestack.c (init_one_static_tls): ... and here...
25341         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
25342         for Static TLS.
25343         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
25344         that the slot we find is associated with the given map before
25345         using its generation count.
25346         * nptl_db/db_info.c: Include ldsodefs.h.
25347         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
25348         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
25349         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
25350         (link_map::l_tls_offset): New struct field.
25351         (dtv_t::counter): Likewise.
25352         (rtld_global): New struct.
25353         (_rtld_global): New rtld variable.
25354         (dl_tls_dtv_slotinfo_list): New rtld global field.
25355         (dtv_slotinfo_list): New struct.
25356         (dtv_slotinfo): Likewise.
25357         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
25358         (td_lookup): Rename to...
25359         (td_mod_lookup): ... this.  Use new mod parameter instead of
25360         LIBPTHREAD_SO.
25361         * nptl_db/td_thr_tlsbase.c: Include link.h.
25362         (dtv_slotinfo_list, dtv_slotinfo): New functions.
25363         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
25364         addresses even if the DTV is out of date or missing them.
25365         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
25366         index zero-length arrays.
25367         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
25368         (td_lookup): Make it a macro implemented in terms of...
25369         (td_mod_lookup): ... this declaration.
25370         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
25371         (DB_MAIN_VARIABLE): Likewise.
25372
25373 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25374
25375         [BZ #18134]
25376         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
25377
25378 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25379
25380         * stdlib/setenv.c (__add_to_environ): Revert previous change.
25381
25382 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
25383
25384         [BZ #18128]
25385         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
25386         (atomic_add, atomic_increment_and_test)
25387         (atomic_decrement_and_test): Fix 64-bit arithmetic.
25388
25389 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25390
25391         * stdlib/setenv.c (__add_to_environ):
25392         Dump core quickly if setenv (..., NULL, ...) is called.
25393
25394 2015-03-13  Roland McGrath  <roland@hack.frob.com>
25395
25396         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
25397         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
25398         all the necessary asm magic in one place.
25399         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
25400         using those.
25401
25402 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
25403
25404         [BZ #14906]
25405         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
25406         traced file mtime. Use consistent log message.
25407         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
25408         (register_traced_file): Call install_watches. Always set mtime.
25409         (invalidate_cache): Iterate over all trace files. Call install_watches.
25410         (inotify_check_files): Don't inline. Handle watching parent
25411         directories and configuration file movement in and out.
25412         (handle_inotify_events): New function.
25413         (main_loop_poll): Call handle_inotify_events.
25414         (main_loop_epoll): Likewise.
25415         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
25416         (struct traced_file): Use array of inotify fds. Add parent directory,
25417         and basename.
25418         (struct database_dyn): Remove unused file_mtime.
25419         (init_traced_file): New inline function.
25420         (define_traced_file): New macro.
25421         * nss/nss_db/db-init.c: Use define_traced_file.
25422         (_nss_db_init): Use init_traced_file.
25423         * nss/nss_files/files-init.c: Use define_traced_file.
25424         (_nss_files_init): Use init_traced_file.
25425
25426 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
25427
25428         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
25429         [_LIBC]: Do not include <stdlib.h>.
25430         [!_LIBC] (abort): Remove declaration.
25431         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
25432         _FP_STATIC_ASSERT instead of conditionally calling abort.
25433         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
25434         (_FP_EXTEND_CNAN): Likewise.
25435         (FP_TRUNC): Likewise.
25436         (__FP_CLZ): Likewise.
25437         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
25438
25439 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
25440
25441         * manual/string.texi (XPG basename): Fix prototype.
25442
25443 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25444
25445         [BZ #18080]
25446         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
25447         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25448         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
25449         (__setcontext): Likewise.
25450         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
25451         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25452         Call rt_sigprocmask syscall one time to set new signal mask
25453         and retrieve the current signal mask instead of two calls.
25454         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
25455         (__swapcontext): Likewise.
25456         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
25457         * stdlib/tst-setcontext2.c: New file.
25458
25459 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25460
25461         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
25462
25463 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
25464
25465         [BZ #18093]
25466         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
25467         the wrong size.
25468
25469 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
25470
25471         [BZ #18043]
25472         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
25473
25474 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
25475
25476         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
25477         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
25478         Remove define.
25479         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
25480         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
25481         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
25482         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
25483         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
25484         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
25485         define.
25486         * nptl_db/td_symbol_list.c (td_lookup): Remove
25487         HAVE_ASM_GLOBAL_DOT_NAME code.
25488         * sysdeps/powerpc/powerpc64/configure.ac: Remove
25489         HAVE_ASM_GLOBAL_DOT_NAME check.
25490         * sysdeps/powerpc/powerpc64/configure: Regenerate.
25491         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
25492         (DOT_LABEL): Remove define.
25493         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
25494         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
25495         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
25496         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
25497         (__TLS_GET_ADDR): Likewise.
25498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
25499         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
25500
25501 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
25502
25503         [BZ #18111]
25504         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
25505         (_FPU_SETCW): Initialize cw from fpsr before storing.
25506         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
25507         (fesetexceptflag): Rewrite using fpu_control.h.
25508         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
25509
25510 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
25511
25512         [BZ #18110]
25513         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
25514         asms.
25515         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
25516
25517 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
25518
25519         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
25520         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
25521         abort.
25522         (_FP_FMA): Likewise.
25523         (_FP_DIV): Likewise.
25524
25525 2015-03-10  Roland McGrath  <roland@hack.frob.com>
25526
25527         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
25528         with 0 in that case.
25529         * Makefile (summarize-tests): New canned sequence, factored out of
25530         commands for targets tests and xtests.  Display summary lines that
25531         don't start with PASS: or XFAIL: rather than ones that do start with
25532         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
25533         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
25534         do start with ERROR: or FAIL:.
25535         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
25536         (except for [$(build-shared) = yes]).
25537         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
25538         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
25539         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
25540         * nptl/Makefile: Revert 2015-03-04 changes.
25541         [$(CXX) empty] (tests-unsupported): New variable.
25542         * debug/Makefile: Likewise.
25543
25544         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
25545         gnulib file.  Replace __attribute with __attribute__ throughout.
25546
25547 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
25548
25549         * sysdeps/hppa/fpu/libm-test-ulps: Update.
25550
25551 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25552
25553         [BZ #18104]
25554         * math/auto-libm-test-in: Add another test of pow.
25555         * math/auto-libm-test-out: Regenerated.
25556
25557 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25558
25559         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
25560         $(config-cflags-nofma).
25561
25562 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25563
25564         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
25565         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
25566         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
25567         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
25568         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
25569         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
25570         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
25571         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
25572         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
25573         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
25574         Add comment on closing #endif.
25575
25576 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25577
25578         * posix/wordexp.c (CHAR_IN_SET): New macro.
25579         (parse_param): Use it.
25580
25581 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25582
25583         * sysdeps/powerpc/fpu/libm-test-ulps: update.
25584
25585 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25586
25587         [BZ #18043]
25588         * posix/wordexp.c (parse_param): Fix buffer overflow.
25589         * posix/wordexp-test.c (test_case): Add test case.
25590
25591 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25592
25593         [BZ #18042]
25594         * posix/wordexp.c (parse_backtick): Fix off-by-one.
25595         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
25596
25597 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25598
25599         [BZ #18043]
25600         * posix/wordexp-test.c (test_case): Add test for BZ #18043
25601         (do_bz18043): Delete.
25602         (at_page_end): New.
25603         (testit): Refactor to have words at the edge of unreadable page.
25604
25605 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
25606
25607         [BZ #16734]
25608         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
25609         Cleanup read-only streams as well.
25610         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
25611
25612 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25613
25614         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
25615         <bits/libc-lockP.h>
25616
25617 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
25618
25619         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
25620         on [__KERNEL__].
25621         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
25622         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
25623         * soft-fp/op-common.h (_FP_DECL): Likewise.
25624
25625 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
25626
25627         * elf/ifuncdep2.c (global): Replace
25628         __attribute__((visibility("protected"))) with
25629         asm (".protected global").
25630         * elf/ifuncmod1.c (global): Likewise.
25631         * elf/ifuncmod5.c (global): Likewise.
25632
25633 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
25634
25635         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
25636         <asm/sfp-machine.h> instead of <sfp-machine.h>.
25637
25638 2015-03-06  Roland McGrath  <roland@hack.frob.com>
25639
25640         * manual/install.texi (Configuring and compiling):
25641         Document test-wrapper-env-only.
25642         * INSTALL: Regenerated.
25643
25644 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
25645
25646         [BZ #18043]
25647         * posix/wordexp.c (parse_param): Fix buffer overflow.
25648         * posix/wordexp-test.c (do_bz18043): Add test case.
25649
25650 2015-03-06  Vincent Bernat  <vincent@bernat.im>
25651
25652         * time/tst-strptime2.c (do_test): Ensure failing tests are
25653         reported correctly.
25654         * time/tst-strptime3.c (do_test): Likewise.
25655
25656 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
25657
25658         Fix aio_error thread-safety.
25659         * sysdeps/pthread/aio_error.c: New file
25660         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
25661         synchronization.
25662
25663 2015-03-06  Florian Weimer  <fweimer@redhat.com>
25664
25665         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
25666         (group_number, vfprintf): Use it.
25667         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
25668         (JUMP, REF): Use it.
25669         (WORK_BUFFER_SIZE): New enum constant.
25670         (process_arg, vfprintf): Use it.
25671
25672 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
25673
25674         * manual/errno.texi (Error Messages): Complete example function
25675         by adding missing #define.
25676         (program_invocation_name): Add statement indicating GNU
25677         extension and reference which header file declares the variable.
25678         (program_invocation_short_name): Likewise.
25679
25680 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
25681
25682         * manual/errno.texi (Error Messages): Delete strerror ISO C89
25683         compatibility note.
25684
25685 2015-03-05  Roland McGrath  <roland@hack.frob.com>
25686
25687         * Makeconfig (test-wrapper-env-only): New variable.
25688         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
25689         then use that with $(test-wrapper-env-only) rather than using
25690         $(test-wrapper-env) $(run-program-env) $($*-ENV).
25691
25692 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
25693
25694         [BZ #18082]
25695         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
25696         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
25697         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
25698         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
25699         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
25700         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
25701         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
25702         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
25703         Likewise.
25704         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
25705         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
25706         Likewise.
25707         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
25708         Likewise.
25709         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
25710         Likewise.
25711         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
25712         Likewise.
25713         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
25714         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
25715         Likewise.
25716         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
25717         Likewise.
25718         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
25719         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
25720
25721 2015-03-04  Roland McGrath  <roland@hack.frob.com>
25722
25723         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
25724         (ETH_ALEN): New macro.
25725         (struct ether_addr): Use it for length of ether_addr_octet.
25726
25727         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
25728         (setdb): Don't call __nss_configure_lookup for "rpc".
25729         (do_test): Don't call test_rpc.
25730         (output_rpcent, test_rpc): Functions moved ...
25731         * sunrpc/test-rpcent.c: ... to this new file.
25732         * sunrpc/Makefile (tests): Add it.
25733
25734         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
25735         __xpg_sigpause.
25736         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
25737         * nptl/tst-signal6.c: Likewise.
25738         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
25739         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
25740
25741         * configure.ac (libc_cv_cxx_link_ok): New check.
25742         Reset CXX to empty if it fails to link.
25743         * configure: Regenerated.
25744         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
25745         bug-atexit3-lib only if $(CXX) is nonempty.
25746         * nptl/Makefile (tests): Likewise for tst-cancel24.
25747         (tests, tests-static): Likewise for tst-cancel24-static.
25748         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
25749         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
25750         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
25751         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
25752
25753 2015-03-04  Andreas Schwab  <schwab@suse.de>
25754
25755         [BZ #17631]
25756         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
25757         for non-GCC compilers.
25758         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
25759         Likewise.
25760
25761 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
25762
25763         [BZ #17776]
25764         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
25765         integer before bitwise and assembly operations.
25766         (feclearexcept): Likewise.
25767         * math/test-fenvinline.c: New file.
25768         * math/Makefile: Add test-fenvinline test.
25769
25770 2015-03-03  Alan Modra  <amodra@gmail.com>
25771
25772         [BZ #16512]
25773         * scripts/localplt.awk: Strip off symbol version.
25774         * NEWS: Mention bug fix.
25775
25776 2015-03-02  Roland McGrath  <roland@hack.frob.com>
25777
25778         * sysdeps/pthread/timer_routines.c
25779         (timer_free_list, thread_free_list, thread_active_list): Make static.
25780
25781 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
25782
25783         [BZ #17779]
25784         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
25785         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
25786         Undefine.
25787         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
25788         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
25789         Likewise.
25790         * sysdeps/unix/sysv/linux/sh/kernel-features.h
25791         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
25792         Likewise.
25793
25794 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
25795
25796         [BZ #18036]
25797         * posix/fnmatch_loop.c (END): Detect invalid pattern.
25798         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
25799
25800 2015-03-02  Andreas Schwab  <schwab@suse.de>
25801
25802         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
25803         variable name.
25804
25805 2015-03-02  Florian Weimer  <fweimer@redhat.com>
25806
25807         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
25808         Return error status.
25809
25810 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
25811
25812         [BZ #15969]
25813         * locale/findlocale.c (_nl_find_locale): Introduce const
25814         version of loc_name and drop unsafe type casts.
25815
25816 2015-02-27  Roland McGrath  <roland@hack.frob.com>
25817
25818         * dlfcn/tststatic2.c (main): Converted to ...
25819         (do_test): ... this.
25820         (TEST_FUNCTION): New macro.
25821         Include test-skeleton.c.
25822
25823 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
25824
25825         [BZ #17711]
25826         * elf/Makefile (tests): Add vismain only if PIE is enabled.
25827         (tests-pie): Add vismain.
25828         (CFLAGS-vismain.c): New.
25829         * elf/vismain.c: Add comments for PIE requirement.
25830
25831 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
25832
25833         [BZ #18046]
25834         [BZ #18047]
25835         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
25836         0x1p-56L as threshold for just returning the argument.
25837         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
25838         0x1p-32L as threshold for just returning the argument.
25839         * math/auto-libm-test-in: Add more tests of atanh.
25840         * math/auto-libm-test-out: Regenerated.
25841         * sysdeps/i386/fpu/libm-test-ulps: Update.
25842         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
25843
25844 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
25845
25846         * string/bcopy.c (bcopy): Call memmove for performance.
25847
25848 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
25849
25850         * string/bzero.c (__bzero): Call memset for performance.
25851
25852 2015-02-27  John David Anglin  <dave.anglin@bell.net>
25853
25854         [BZ #18068]
25855         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
25856         to 00100000.
25857
25858 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
25859
25860         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
25861
25862 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
25863
25864         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
25865         (__kernel_standard): Use CSTR macro when setting exc.name.
25866         * sysdeps/ieee754/Makefile [$(subdir) = math]
25867         (CFLAGS-k_standard.c): Remove variable.
25868
25869         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
25870         setting p and q from "else if" to "else".
25871         (qzero): Likewise.
25872         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
25873         (qone): Likewise.
25874         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
25875         (qzerof): Likewise.
25876         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
25877         (qonef): Likewise.
25878         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
25879         (qzero): Likewise.
25880         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
25881         (qone): Likewise.
25882
25883         [BZ #18038]
25884         [BZ #18039]
25885         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
25886         return pi/2 for arguments below 0x1p-113L.
25887         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
25888         return pi/2 for arguments below 0x1p-106L.
25889         * math/auto-libm-test-in: Add more tests of acos.
25890         * math/auto-libm-test-out: Regenerated.
25891
25892         [BZ #16351]
25893         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
25894         (MO): New macro.
25895         (__ieee754_asin): Force underflow exception for results with small
25896         absolute value.
25897         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
25898         (MO): New macro.
25899         (__ieee754_asinf): Force underflow exception for results with
25900         small absolute value.
25901         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
25902         (__ieee754_asin): Force underflow exception for results with small
25903         absolute value.
25904         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
25905         (__ieee754_asinf): Force underflow exception for results with
25906         small absolute value.
25907         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
25908         (__ieee754_asinl): Force underflow exception for results with
25909         small absolute value.
25910         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
25911         (__ieee754_asinl): Force underflow exception for results with
25912         small absolute value.
25913         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
25914         (__ieee754_asinl): Force underflow exception for results with
25915         small absolute value.
25916         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
25917         Include <math.h>.
25918         * math/auto-libm-test-in: Do not mark underflow exceptions as
25919         possibly missing for bug 16351.
25920         * math/auto-libm-test-out: Regenerated.
25921
25922         [BZ #18030]
25923         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
25924         of power of 2 down when low part has opposite sign.
25925         * math/libm-test.inc (logb_test_data): Add more tests.
25926
25927 2015-02-26  Andreas Schwab  <schwab@suse.de>
25928
25929         [BZ #18032]
25930         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
25931         over collating symbol inside a bracket expression.  Minor cleanup.
25932         * posix/tst-fnmatch3.c (do_test): Add test case.
25933
25934 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
25935
25936         [BZ #18029]
25937         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
25938         Adjust exponent of power of 2 down when low part has opposite
25939         sign.
25940         * math/libm-test.inc (ilogb_test_data): Add more tests.
25941
25942 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
25943
25944         [BZ #15969]
25945         * locale/findlocale.c (_nl_find_locale): Fix constness error in
25946         the previous change.
25947
25948         [BZ #15969]
25949         * locale/findlocale.c (_nl_find_locale): Retry archive search
25950         after alias expansion.
25951
25952 2015-02-25  Roland McGrath  <roland@hack.frob.com>
25953
25954         * iconv/tst-iconv3.c (main): Converted to ...
25955         (do_test): ... this.
25956         (TEST_FUNCTION): New macro.
25957         Include test-skeleton.c.
25958
25959         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
25960         (convert): Make function static.
25961         (test_unalign): Likewise.  Add const to argument pointee types.
25962         (main): Replace with static function do_test.
25963         Print "Succeeded." only if RET is zero.
25964         (TEST_FUNCTION): New macro.
25965         Include test-skeleton.c.
25966
25967         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
25968         returns a null pointer.
25969
25970 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25971
25972         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
25973         to __memcpy_ppc only for static builds.
25974
25975 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
25976
25977         [BZ #18020]
25978         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
25979         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
25980         * math/auto-libm-test-in: Add more tests of asinh.
25981         * math/auto-libm-test-out: Regenerated.
25982         * sysdeps/i386/fpu/libm-test-ulps: Update.
25983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25984
25985 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
25986
25987         [BZ #15850]
25988         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
25989         and ip6_mtuinfo definitions here.
25990         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
25991         in this define too.  Update comment.
25992
25993 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
25994
25995         * elf/sprof.c (load_shobj): Tweak error message to match others.
25996
25997 2015-02-24  Kevin Easton  <kevin@guarana.org>
25998
25999         [BZ #16145] (partial fix)
26000         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
26001         to reduce lock contention.
26002
26003 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
26004
26005         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
26006         (struct timex): Update time comment.
26007         (ADJ_SETOFFSET): Define.
26008
26009 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26010
26011         [BZ #18019]
26012         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
26013         2**56 not 2**28 as threshold for log (2x) formula.
26014         * math/auto-libm-test-in: Add more tests of acosh.
26015         * math/auto-libm-test-out: Regenerated.
26016         * sysdeps/i386/fpu/libm-test-ulps: Update.
26017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26018
26019 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26020
26021         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
26022         parenthesis around the buf assignment.
26023         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
26024
26025 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26026
26027         [BZ #16783]
26028         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
26029         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
26030         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
26031         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26032         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26033         * math/libm-test.inc (scalb_test_data): Add more tests.
26034
26035 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
26036
26037         [BZ #17916]
26038         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
26039         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
26040
26041 2015-02-24  Eric Rannaud  <e@nanocritical.com>
26042
26043         [BZ #17523]
26044         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
26045         * io/bits/fcntl2.h (open): Use it.
26046         (openat): Likewise.
26047         * io/open.c (__libc_open): Likewise.
26048         * io/open64.c (__libc_open64): Likewise.
26049         * io/open64_2.c (__open64_2): Likewise.
26050         * io/open_2.c (__open_2): Likewise.
26051         * io/openat.c (__openat): Likewise.
26052         * io/openat64.c (__openat64): Likewise.
26053         * io/openat64_2.c (__openat64_2): Likewise.
26054         * io/openat_2.c (__openat_2): Likewise.
26055         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
26056         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
26057         * sysdeps/posix/open64.c (__libc_open64): Likewise.
26058         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
26059         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
26060         (__open_nocancel): Likewise.
26061         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
26062         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
26063         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
26064
26065 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26066
26067         [BZ #14841]
26068         * resolv/gethnamaddr.c (getanswer): Skip logging if
26069         RES_USE_DNSSEC is set.
26070         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
26071
26072 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26073
26074         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
26075
26076 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
26077
26078         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
26079         201304L, for Unicode 7.
26080
26081 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
26082
26083         [BZ #17836]
26084         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
26085         shared library.  Add gmon-start.os otherwise.
26086         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
26087         $(objpfx)gmon-start.os if builing shared library.
26088         ($(objpfx)g$(static-start-installed-name)): Likewise.
26089
26090 2015-02-23  Andreas Schwab  <schwab@suse.de>
26091
26092         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
26093
26094 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
26095
26096         [BZ #17269]
26097         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
26098         (enlarge_userbuf): Likewise.
26099
26100 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
26101
26102         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
26103         * math/atest-exp.c (TIMEOUT): Adjust to 200.
26104         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
26105         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
26106
26107 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
26108
26109         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
26110         expression inside statement expression.
26111
26112 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
26113
26114         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
26115         <sysdeps/nptl/lowlevellock.h> and remove macros and
26116         functions that are now defined there.
26117         (SYS_futex): Remove.
26118         (lll_compare_and_swap): Remove.
26119         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
26120
26121 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
26122
26123         [BZ #17999]
26124         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
26125         instead of scandirat.
26126         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
26127         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
26128         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
26129         __scandirat.
26130         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
26131         (__scandirat): Declare.  Use libc_hidden_proto.
26132         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
26133         Remove variable.
26134         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
26135
26136 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26137
26138         [BZ #15319]
26139         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
26140         (MO): New macro.
26141         (__ieee754_atan2): For results with small absolute value, force
26142         underflow exception and remove excess range and precision from
26143         return value.
26144         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
26145         (MO): New macro.
26146         (__ieee754_atan2f): For results with small absolute value, force
26147         underflow exception and remove excess range and precision from
26148         return value.
26149         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
26150         (MO): New macro.
26151         (__atan): For results with small absolute value, force underflow
26152         exception and remove excess range and precision from return value.
26153         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
26154         (MO): New macro.
26155         (__atanf): For results with small absolute value, force underflow
26156         exception and remove excess range and precision from return value.
26157         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
26158         <math.h>.
26159         (__ieee754_atan2): Force underflow exception for results with
26160         small absolute value.
26161         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
26162         <math_private.h>.
26163         (atan): Force underflow exception for results with small absolute
26164         value.
26165         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
26166         (__atanf): Force underflow exception for results with small
26167         absolute value.
26168         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
26169         <math.h>.
26170         (__atanl): Force underflow exception for results with small
26171         absolute value.
26172         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
26173         (__atanl): Force underflow exception for results with small
26174         absolute value.
26175         * sysdeps/x86/fpu/bits/mathinline.h
26176         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
26177         (__ieee754_atan2): Only define inline for long double.
26178         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
26179         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
26180         * math/auto-libm-test-in: Do not mark underflow exceptions as
26181         possibly missing for bug 15319.  Add more tests of atan2.
26182         * math/auto-libm-test-out: Regenerated.
26183         * math/libm-test.inc (casin_test_data): Do not mark underflow
26184         exceptions as possibly missing for bug 15319.
26185         (casinh_test_data): Likewise.
26186         * sysdeps/i386/fpu/libm-test-ulps: Update.
26187
26188 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
26189
26190         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
26191         * sysdeps/mips/bits/endian.h: Fix comments.
26192
26193 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26194
26195         [BZ #17996]
26196         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
26197         (hdestroy_r): Likewise.
26198         (hsearch_r): Likewise.
26199         (__hcreate_r): Declare and use libc_hidden_proto.
26200         (__hdestroy_r): Likewise.
26201         (__hsearch_r): Likewise.
26202         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
26203         (hcreate): Call __hcreate_r instead of hcreate_r.
26204         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
26205         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
26206         as weak alias of __hcreate_r.
26207         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
26208         __hdestroy_r.
26209         (hsearch_r): Rename to __hsearch_r and define as weak alias of
26210         __hsearch_r.
26211         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
26212         Remove variable.
26213         (test-xfail-XPG4/search.h/linknamespace): Likewise.
26214         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
26215         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
26216         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
26217
26218 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26219
26220         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
26221         arena_lock into a single arena_get.
26222
26223 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
26224
26225         * dl-reloc.c: Inlucde libc-internal.h.
26226         (_dl_try_allocate_static_tls): Call ALIGN_UP.
26227         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
26228         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
26229         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
26230         (grow_heap): Likewise.
26231         * malloc/malloc.c: Include libc-internal.h.
26232         (do_check_malloc): Call powerof2.
26233         (sysmalloc): Use pagesize. Call ALIGN_UP.
26234         (systrim): Use pagesize.
26235         (mremap_chunk): Use pagesize. Call ALIGN_UP.
26236         (__libc_valloc): Use pagesize.
26237         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
26238
26239 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26240
26241         [BZ #17991]
26242         * include/sys/resource.h (__getrlimit64): Declare.  Use
26243         libc_hidden_proto.
26244         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
26245         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
26246         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
26247         getrlimit64.
26248         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
26249         __getrlimit64.
26250         [!getrlimit64] (getrlimit64): Define as weak alias of
26251         __getrlimit64.  Use libc_hidden_weak.
26252         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
26253         using __getrlimit64 not __new_getrlimit64.
26254         (__GI_getrlimit64): Likewise.
26255         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
26256         Likewise.
26257         (__GI_getrlimit64): Likewise.
26258         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
26259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
26260         (getrlimit): Add __getrlimit64 alias.
26261         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
26262         Likewise.
26263         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
26264         Remove variable.
26265         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
26266         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
26267
26268 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
26269
26270         * libio/fileops.c: Add missing sys/mman.h
26271         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
26272
26273 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26274
26275         * manual/math.texi (Errors in Math Functions): Clarify goals
26276         regarding inexact and underflow exceptions.
26277
26278 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26279
26280         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
26281         * sysdeps/mips/memset.S: Ditto.
26282
26283 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26284
26285         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
26286
26287 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26288
26289         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
26290         (__v1longjmp): Remove versioned symbol.
26291         (__v1siglongjmp): Remove alias and versioned symbol.
26292         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
26293         (__v2siglongjmp): Likewise.
26294
26295 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26296
26297         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
26298
26299 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
26300
26301         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
26302
26303 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26304
26305         [BZ #17987]
26306         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
26307         zero result does not depend on the sign resulting from
26308         subtraction.
26309         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26310         Likewise.
26311         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26312         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26313         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26314         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26315         * math/libm-test.inc (remquo_test_data): Add more tests.
26316
26317 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26318
26319         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
26320         Problem reported by J William Piggott.
26321
26322 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26323
26324         [BZ #17978]
26325         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
26326         products 4 * y and 2 * y where those would overflow.
26327         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26328         Likewise.
26329         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26330         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26331         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26332         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26333         * math/libm-test.inc (remquo_test_data): Add more tests.
26334
26335         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
26336
26337         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
26338         [defined _COMPILING_NEWLIB].
26339         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
26340         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
26341
26342         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
26343         [!defined __mips_isa_rev || __mips_isa_rev < 6].
26344
26345 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26346
26347         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
26348         acquired.
26349
26350 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
26351
26352         [BZ #17792]
26353         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
26354         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
26355         HOST_STACK_END_ADDR): Likewise.
26356
26357 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
26358
26359         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
26360         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
26361         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
26362
26363 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26364
26365         * sysdeps/generic/c++-types.data: New file.
26366         * sysdeps/generic/ld.abilist: New file.
26367         * sysdeps/generic/libBrokenLocale.abilist: New file.
26368         * sysdeps/generic/libanl.abilist: New file.
26369         * sysdeps/generic/libc.abilist: New file.
26370         * sysdeps/generic/libcrypt.abilist: New file.
26371         * sysdeps/generic/libdl.abilist: New file.
26372         * sysdeps/generic/libm.abilist: New file.
26373         * sysdeps/generic/libpthread.abilist: New file.
26374         * sysdeps/generic/libresolv.abilist: New file.
26375         * sysdeps/generic/librt.abilist: New file.
26376
26377 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26378
26379         [BZ #17569]
26380         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26381         Compute absolute value of x as modified by fmod, not original
26382         value of x.
26383         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
26384         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
26385         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
26386         RUN_TEST_ffI_f1_mod8.
26387         (remquo_test_data): Add more tests.
26388
26389 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26390
26391         * sysdeps/init_array/pt-crti.S: New file.
26392
26393 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26394
26395         [BZ #17967]
26396         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
26397         __builtin_fmaf instead of relying on contraction of a * b + c.
26398
26399 2015-02-12  J William Piggott  <elseifthen@gmx.com>
26400
26401         [BZ #17969]
26402         * manual/time.texi: correct the zoneinfo path in the TZ Variable
26403         node.
26404
26405 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26406
26407         [BZ #17964]
26408         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
26409         __builtin_fma instead of relying on contraction of a * b + c.
26410
26411 2015-02-12  Roland McGrath  <roland@hack.frob.com>
26412
26413         * Makeconfig (ASFLAGS): Add -Werror=undef.
26414         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
26415         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
26416         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
26417
26418         * Makeconfig (after-link): New variable.
26419         (+link-pie, +link-pie-tests): Use it.
26420         (+link-static, +link-static-tests): Likewise.
26421         (+link, +link-tests): Likewise.
26422         * Makerules (build-module, build-module-asneeded): Likewise.
26423         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
26424         Likewise.
26425         * elf/Makefile ($(objpfx)ld.so): Likewise.
26426
26427 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
26428
26429         [BZ #17965]
26430         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
26431         both struct timeval and struct timespec.
26432
26433 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26434
26435         [BZ #16560]
26436         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
26437         and redefine.
26438         (__ieee754_exp2l): Do not multiply small fractional parts by
26439         M_LN2l.
26440         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
26441         small argument.
26442         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
26443         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
26444         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
26445         * math/auto-libm-test-in: Add more tests of exp2.
26446         * math/auto-libm-test-out: Regenerated.
26447
26448 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26449
26450         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
26451         unaligned path.
26452
26453 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26454
26455         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
26456         little endian.
26457
26458 2015-02-12  Andreas Schwab  <schwab@suse.de>
26459
26460         [BZ #15790]
26461         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
26462         Filter out elision flags from value returned in kind.
26463         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
26464         * nptl/tst-pthread-mutexattr.c: New file.
26465
26466 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26467
26468         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
26469         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
26470         into gnu-gnu, and update comment to refer to abi-tags.
26471
26472 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
26473
26474         [BZ #15467]
26475         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
26476         (__sincos): Set errno to EDOM for infinite argument.
26477         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
26478         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
26479         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
26480         (__sincosl): Set errno to EDOM for infinite argument.
26481         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
26482         (__sincosl): Set errno to EDOM for infinite argument.
26483         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
26484         (__sincosl): Set errno to EDOM for infinite argument.
26485         * math/libm-test.inc (sincos_test_data): Test errno setting.
26486
26487 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
26488
26489         * string/strxfrm_l.c: Remove #define STRCMP.
26490         * string/strcoll_l.c: Remove #define STRLEN.
26491         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
26492         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
26493
26494 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
26495
26496         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
26497         * sysdeps/mips/mips32/sfp-machine.h: ... here.
26498         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
26499         * sysdeps/mips/mips64/Makefile: ... here.
26500         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
26501         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
26502         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
26503         * sysdeps/mips/mips64/sfp-machine.h: ... here.
26504         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
26505         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
26506         * sysdeps/mips/mips64/n64/Implies: Likewise.
26507
26508 2015-02-10  Roland McGrath  <roland@hack.frob.com>
26509
26510         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
26511         <sys/time.h>, <string.h>, and <errno.h>.
26512         (dest_offset, dest_address, value, zero): Remove unused variables.
26513         (ldouble): Remove typedef.
26514         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
26515         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
26516         1).  Fix code style.
26517         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
26518         (check): Function removed.
26519         (CHECK): New macro.
26520         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
26521         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
26522         Don't call set_sigaction_FP and remove_sigaction_FP here.
26523         (ldouble_test): Just use 'long double' as macro argument, no need for
26524         the 'ldouble' typedef.
26525         (do_test): Set up SIGFPE handler at start, using plain signal rather
26526         than sigaction.  Fix code style.
26527
26528 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
26529
26530         [BZ #17949]
26531         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
26532         jump label.
26533
26534 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26535
26536         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
26537         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26538
26539         * sysdeps/powerpc/configure.ac: Remove file.
26540         * sysdeps/powerpc/configure: Likewise.
26541
26542         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26543         [sysdep_routines]: Remove wordcopy-power6 object.
26544         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
26545         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
26546         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
26547         (__memmove_ppc32): Likewise.
26548         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
26549         file.
26550         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
26551         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
26552         Remove preprocessor.
26553
26554         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26555         [sysdep_routines]: Remove wide chars objects.
26556         [wcsmbs]: New rule for wide char objects.
26557
26558         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26559         Remove wordcopy-power6 obejct.
26560         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
26561         Use local call for wordcopy and memcpy symbols.
26562         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
26563         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
26564         implementation for loader.
26565         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
26566
26567         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26568         Remove wordcopy-power7 object.
26569         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
26570         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
26571         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
26572         (_wordcopy_fwd_dest_aligned): Likewise.
26573         (_wordcopy_bwd_aligned): Likewise.
26574         (_wordcopy_bwd_dest_aligned): Likewise.
26575
26576         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
26577         Rewrite to call __memmove_ppc instead of include default
26578         implementation.
26579
26580         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26581         Remove wide chars objects.
26582         [wcsmbs]: New rule for wide char objects.
26583
26584 2015-02-09  Andreas Schwab  <schwab@suse.de>
26585
26586         [BZ #17912]
26587         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
26588         in terms of __O_DIRECTORY.
26589
26590 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26591
26592         * time/getdate.c: Include <stdbool.h>.
26593         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
26594         call PTR_MANGLE.
26595         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
26596         PTR_DEMANGLE.
26597
26598 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26599
26600         Add ersatz _Static_assert on older C hosts
26601         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
26602         pre-C11 C platform that is not known to support _Static_assert.
26603
26604 2015-02-07  Richard Braun  <rbraun@sceen.net>
26605
26606         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
26607         sigstate.
26608         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
26609
26610 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26611
26612         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
26613         priority against unexistent AIO_PRIO_DELTA_MAX.
26614         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
26615         instead of int.
26616         * misc/fchflags.c (fchflags): Likewise.
26617         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
26618         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
26619         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
26620         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
26621         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
26622         Declare macros.
26623         [__USE_MISC] (chflags, fchflags): Declare functions.
26624         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
26625         EINVAL when nfds is greater than FD_SETSIZE.
26626         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
26627         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
26628         45.
26629         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
26630         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
26631         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
26632         MACH_RCV_TIMED_OUT.
26633         * hurd/hurd/signal.h (_hurd_self_sigstate,
26634         _hurd_critical_section_lock, _hurd_critical_section_unlock):
26635         Explicit casts from void *.
26636         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
26637         * abi-tags: Rename gnu-gnu os into gnu.
26638
26639         [BZ #4719]
26640         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
26641         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
26642         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
26643         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
26644         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
26645         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
26646
26647         [BZ #17944]
26648         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
26649         duplicates ADDR->sun_path with sockaddr LEN limitation.
26650         * sysdeps/mach/hurd/connect.c: Include <string.h>
26651         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
26652         * sysdeps/mach/hurd/sendmsg.c: Likewise.
26653         * sysdeps/mach/hurd/sendto.c: Likewise.
26654         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
26655         implementing it by hand.
26656
26657 2015-02-06  Roland McGrath  <roland@hack.frob.com>
26658
26659         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
26660         Use sfi_breg on ldr.
26661         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
26662         Likewise.
26663
26664         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
26665         it's defined.
26666         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
26667         Test SIGSETXID only if it's defined.
26668
26669         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
26670
26671         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
26672         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
26673
26674         * nptl/tst-align2.c: Moved ...
26675         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
26676         * nptl/Makefile (tests): Remove tst-align2.
26677         * sysdeps/unix/sysv/linux/Makefile
26678         [$(subdir) = nptl] (tests): Add tst-align-clone.
26679         * nptl/tst-getpid1.c: Moved ...
26680         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
26681         * nptl/tst-getpid2.c: Moved ...
26682         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
26683         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
26684         * sysdeps/unix/sysv/linux/Makefile
26685         [$(subdir) = nptl] (tests): ... here.
26686         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
26687         * sysdeps/unix/sysv/linux/Makefile
26688         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
26689
26690         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
26691         Drop trailing \n from perror argument.  Use return rather than exit.
26692
26693         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
26694         on [SA_SIGINFO].
26695         * nptl/tst-cancel21.c (do_test): Likewise.
26696         * debug/tst-backtrace6.c: Include <signal.h> first thing.
26697         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
26698         [!SA_SIGINFO]: Make it a stub test.
26699
26700         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
26701         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
26702
26703         * posix/tst-getlogin.c: Move to ...
26704         * login/tst-getlogin.c: ... here.
26705         * posix/Makefile (tests): Move tst-getlogin to ...
26706         * login/Makefile (tests): ... here.
26707
26708         * libio/tst-atime.c (do_test): Move local variables SV and E
26709         inside [ST_NOATIME] conditional.
26710
26711         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
26712
26713         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
26714
26715         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
26716         (wait_code): New function replaces macro.
26717         Call nanosleep rather than syscall.
26718
26719         * nptl/pt-system.c: Rewritten.  Put everything under
26720         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
26721         Use IFUNC to redirect when possible.
26722
26723         * nptl/pt-longjmp.c: Rewritten.  Put everything under
26724         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
26725         Use IFUNC to redirect when possible.
26726
26727         * nptl/pt-fork.c: Rewritten.  Put everything under
26728         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
26729         Use IFUNC to redirect when possible.
26730         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
26731
26732         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
26733         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
26734         unconditionally nowadays.  This included the only reference to
26735         __vdso_clock_gettime that appears outside libc proper.
26736         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
26737         Remove version set (containing only __vdso_clock_gettime).
26738         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
26739         Add attribute_hidden.
26740         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
26741         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
26742         libc_hidden_data_def.
26743         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
26744         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
26745
26746         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
26747         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
26748         setrpcent, and getrpcport to ...
26749         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
26750         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
26751         getrpcbynumber_r, and getrpcent_r to ...
26752         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
26753         * inet/getrpcbyname.c: Moved ...
26754         * sunrpc/getrpcbyname.c: ... here.
26755         * inet/getrpcbyname_r.c: Moved ...
26756         * sunrpc/getrpcbyname_r.c: ... here.
26757         * inet/getrpcbynumber.c: Moved ...
26758         * sunrpc/getrpcbynumber.c: ... here.
26759         * inet/getrpcbynumber_r.c: Moved ...
26760         * sunrpc/getrpcbynumber_r.c: ... here.
26761         * inet/getrpcent.c: Moved ...
26762         * sunrpc/getrpcent.c: ... here.
26763         * inet/getrpcent_r.c: Moved ...
26764         * sunrpc/getrpcent_r.c: ... here.
26765         * inet/Makefile (routines): Move those to ...
26766         * sunrpc/Makefile (routines): ... here.
26767         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
26768         the $(subdirs) list.
26769         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
26770         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
26771         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
26772         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
26773
26774         * elf/Makefile (routines): Include $(all-dl-routines), not just
26775         $(dl-routines).
26776         (rtld-routines): Likewise.  Use = rather than :=.
26777         * sysdeps/aarch64/Makefile [$(subdir) = elf]
26778         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
26779         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
26780         * sysdeps/arm/Makefile: Likewise.
26781         * sysdeps/i386/Makefile: Likewise.
26782         * sysdeps/x86_64/Makefile: Likewise.
26783         * sysdeps/hppa/Makefile [$(subdir) = elf]
26784         (sysdep_routines, sysdep-rtld-routines): Don't add
26785         $(sysdep-dl-routines) to these.
26786         * sysdeps/ia64/Makefile: Likewise.
26787         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
26788         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
26789         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
26790         Don't add dl-static to these; sysdep-dl-routines alone is enough.
26791         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
26792         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
26793         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
26794         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
26795         * sysdeps/powerpc/Makefile [$(subdir) = elf]
26796         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
26797         these; sysdep-dl-routines alone is enough.
26798
26799 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
26800
26801         [BZ #17932]
26802         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
26803         where multiplication results in zero and third argument is finite
26804         and nonzero.
26805         * math/auto-libm-test-in: Add more tests of fma.
26806         * math/auto-libm-test-out: Regenerated.
26807
26808         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
26809         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
26810         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
26811         (_FP_CMP_EQ): Likewise.
26812         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
26813
26814         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
26815         extra argument CHECK_NAN.  Redefine as wrapper around
26816         _FP_EXTEND_CNAN.
26817
26818 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
26819
26820         * version.h (RELEASE): Set to "stable".
26821         (VERSION): Set to "2.21"
26822         * include/features.h (__GLIBC_MINOR__): Set to 21.
26823
26824         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
26825
26826 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26827             Paul Eggert  <eggert@cs.ucla.edu>
26828
26829         [BZ #16618]
26830         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
26831         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
26832         size in bytes. Store needed elements in wpmax. Use needed size
26833         in bytes for extend_alloca.
26834
26835 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
26836
26837         * manual/install.texi: Latest tested versions are GCC 4.9.2,
26838         binutls 2.25, and texinfo 5.2.
26839         * INSTALL: Regenerate.
26840         * sysdeps/nios2/configure: Regenerate.
26841         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
26842         * manual/contrib.texi: Update.
26843         * po/be.po: Update.
26844         * po/bg.po: Update.
26845         * po/ca.po: Update.
26846         * po/cs.po: Update.
26847         * po/da.po: Update.
26848         * po/de.po: Update.
26849         * po/el.po: Update.
26850         * po/eo.po: Update.
26851         * po/es.po: Update.
26852         * po/fi.po: Update.
26853         * po/fr.po: Update.
26854         * po/gl.po: Update.
26855         * po/hr.po: Update.
26856         * po/hu.po: Update.
26857         * po/ia.po: Update.
26858         * po/id.po: Update.
26859         * po/it.po: Update.
26860         * po/ja.po: Update.
26861         * po/ko.po: Update.
26862         * po/lt.po: Update.
26863         * po/nb.po: Update.
26864         * po/nl.po: Update.
26865         * po/pl.po: Update.
26866         * po/pt_BR.po: Update.
26867         * po/ru.po: Update.
26868         * po/rw.po: Update.
26869         * po/sk.po: Update.
26870         * po/sl.po: Update.
26871         * po/sv.po: Update.
26872         * po/tr.po: Update.
26873         * po/uk.po: Update.
26874         * po/vi.po: Update.
26875         * po/zh_CN.po: Update.
26876         * po/zh_TW.po: Update.
26877
26878         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
26879         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
26880         * sysdeps/hppa/dl-irel.h: Remove #warning.
26881         * sysdeps/hppa/entry.h: Provide prototype for
26882         __canonicalize_funcptr_for_compare and cast argument.
26883         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
26884         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
26885         * sysdeps/hppa/sotruss-lib.c: New file.
26886         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
26887         (atomic_compare_and_exchange_val_acq): Use __typeof__.
26888         (atomic_compare_and_exchange_bool_acq): Likewise.
26889         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
26890         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
26891
26892         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
26893         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
26894         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
26895
26896 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
26897
26898         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
26899         called function in non-PIC case.
26900
26901 2015-01-31  David S. Miller  <davem@davemloft.net>
26902
26903         * sysdeps/sparc/sparc32/bits/atomic.h
26904         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
26905         unlock not after it.
26906         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
26907         volatile register usage warnings from the compiler.
26908
26909         * sysdeps/sparc/nptl/sem_init.c: Delete.
26910         * sysdeps/sparc/nptl/sem_post.c: Delete.
26911         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
26912         * sysdeps/sparc/nptl/sem_wait.c: Delete.
26913         * sysdeps/sparc/sparc32/sem_init.c: New file.
26914         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
26915         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
26916         padding explicitly initialized.
26917         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
26918         padding for in-semaphore spinlock.
26919         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
26920         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
26921         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
26922         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
26923         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
26924         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
26925         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
26926         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
26927         version.
26928         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
26929         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
26930
26931 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
26932
26933         [BZ #17801]
26934         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26935         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
26936         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
26937         New.
26938         (index_AVX_Fast_Unaligned_Load): Likewise.
26939         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
26940         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
26941         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
26942         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
26943         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
26944         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
26945         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
26946         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
26947         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
26948
26949 2015-01-29  Andreas Schwab  <schwab@suse.de>
26950
26951         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
26952
26953 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
26954
26955         [BZ #17892]
26956         * nscd/nscd_stat.c (send_stats): Initialize DATA.
26957
26958 2015-01-28  Martin Sebor  <msebor@redhat.com>
26959
26960         * math/README.libm-test: Clarify. Add "How to read the test output."
26961
26962 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
26963
26964         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
26965         Define to 0.
26966
26967 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
26968
26969         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
26970         (__HAVE_64B_ATOMICS): Define to 0.
26971
26972 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26973
26974         [BZ #17885]
26975         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
26976         value to set as new flag.
26977
26978         [BZ #16576]
26979         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
26980         and use _ARCH_PPCSQ instead.
26981         (__ieee754_sqrt): Likewise.
26982         (__ieee754_sqrtf): Likewise.
26983         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
26984         _ARCH_PPCSQ is defined.
26985         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
26986         fsqrt instruction.
26987         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
26988         _ARCH_PPCSQ is defined.
26989         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
26990         fsqrts instruction.
26991         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
26992
26993 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26994
26995         * iconv/loop.c: Suppress array out of bound warning caused by GCC
26996         bug (GCC BZ #64739).
26997
26998 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
26999
27000         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
27001         Mark _retval as used.
27002         (lll_futex_wake_unlock): Likewise.
27003         (lll_futex_timed_wait_requeue_pi): Likewise.
27004
27005         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
27006         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
27007         register variables.
27008
27009         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
27010         libm_hidden_def.
27011
27012         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
27013         (__bswap_64): Mark as __always_inline.
27014
27015 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
27016
27017         [BZ #15378]
27018         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
27019         when none of the search directories exist.
27020
27021 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27022
27023         [BZ #17869]
27024         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
27025         power8 in .machine directive.
27026
27027         [BZ #17868]
27028         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
27029         set dependency from opd value.
27030
27031 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27032
27033         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27034         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
27035         architecture.
27036
27037 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27038
27039         [BZ #17870]
27040         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
27041         with uint64_t.
27042         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
27043         (uint64_t) 1.
27044         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
27045         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
27046         Replace 1UL with (uint64_t) 1.
27047         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
27048         int with uint64_t.
27049
27050 2015-01-23  Roland McGrath  <roland@hack.frob.com>
27051
27052         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
27053         (if_freenameindex): Likewise.
27054
27055         * resource/getrlimit64.c: Add missing libc_hidden_def.
27056
27057 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
27058
27059         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
27060         __label__.
27061         (_FP_FMA): Likewise.
27062         (_FP_TO_INT_ROUND): Likewise.
27063         (_FP_FROM_INT): Likewise.
27064
27065 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27066
27067         [BZ #16418]
27068         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
27069         Make code racy and cancel safe.
27070
27071 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
27072
27073         * sysdeps/arm/unwind-resume.h: Fix copyright year.
27074         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
27075         attribution.
27076
27077         * pwd/tst-getpw.c: Rewrite.
27078
27079         [BZ #17702]
27080         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
27081         (modules-names): Add moddummy1 and moddummy2.
27082         ($(objpfx)tst-rec-dlopen): Define.
27083         * dlfcn/moddummy1.c: New file.
27084         * dlfcn/moddummy2.c: New file.
27085         * dlfcn/tst-rec-dlopen.c: New file.
27086         * elf/dl-cache.c (_dl_load_cache_lookup):
27087         Return char*. Copy result with alloca/strcpy/strdup.
27088         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
27089         returns char*. Free cached. If not saving realname
27090         free cached.
27091         * elf/dl-open.c (dl_open_worker): Do not assert that
27092         _r_debug->r_state is RT_CONSISTENT.
27093         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
27094         returns char*.
27095
27096 2015-01-21  Torvald Riegel  <triegel@redhat.com>
27097             Carlos O'Donell  <carlos@redhat.com>
27098
27099         [BZ #12674]
27100         * nptl/sem_waitcommon.c: New file.
27101         * nptl/sem_wait.c: Include sem_waitcommon.c.
27102         (__sem_wait_cleanup, do_futex_wait): Remove.
27103         (__new_sem_wait): Adapt.
27104         (__new_sem_trywait): New function.
27105         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
27106         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
27107         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
27108         (sem_timedwait): Adapt.
27109         * nptl/sem_post.c (__new_sem_post): Adapt.
27110         (futex_wake): New function.
27111         (__old_sem_post): Add release MO fence.
27112         * nptl/sem_open.c (sem_open): Adapt.
27113         * nptl/sem_init.c (__new_sem_init): Adapt.
27114         (futex_private_if_supported): New function.
27115         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
27116         (__old_sem_getvalue): Add using previous code.
27117         * sysdeps/nptl/internaltypes.h: Adapt.
27118         * nptl/tst-sem13.c (do_test): Adapt.
27119         * nptl/tst-sem11.c (main): Adapt.
27120         * nptl/sem_trywait.c: Remove.
27121         * nptl/DESIGN-sem.txt: Remove.
27122         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
27123         (gen-as-const-headers): Remove structsem.sym.
27124         * nptl/structsem.sym: Remove.
27125         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
27126         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
27127         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
27128         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
27129         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
27130         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
27131         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
27132         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
27133         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
27134         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
27135         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
27136         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
27137         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
27138         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
27139         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
27140         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
27141         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
27142         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
27143         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
27144         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
27145         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
27146         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
27147
27148 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
27149
27150         * INSTALL: Regenerated.
27151
27152         * po/libc.pot: Regenerated.
27153
27154 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
27155             Sandra Loosemore  <sandra@codesourcery.com>
27156             Andrew Jenner  <andrew@codesourcery.com>
27157             Joseph Myers  <joseph@codesourcery.com>
27158             Nathan Sidwell  <nathan@codesourcery.com>
27159
27160         * NEWS: Mention new Nios II port.
27161         * sysdeps/nios2/Implies: New file.
27162         * sysdeps/nios2/Makefile: New file.
27163         * sysdeps/nios2/Subdirs: New file.
27164         * sysdeps/nios2/Versions: New file.
27165         * sysdeps/nios2/__longjmp.S: New file.
27166         * sysdeps/nios2/abort-instr.h: New file.
27167         * sysdeps/nios2/backtrace.c: New file.
27168         * sysdeps/nios2/bits/endian.h: New file.
27169         * sysdeps/nios2/bits/fenv.h: New file.
27170         * sysdeps/nios2/bits/link.h: New file.
27171         * sysdeps/nios2/bits/setjmp.h: New file.
27172         * sysdeps/nios2/bsd-_setjmp.S: New file.
27173         * sysdeps/nios2/bsd-setjmp.S: New file.
27174         * sysdeps/nios2/configure: New generated file.
27175         * sysdeps/nios2/configure.ac: New file.
27176         * sysdeps/nios2/crti.S: New file.
27177         * sysdeps/nios2/crtn.S: New file.
27178         * sysdeps/nios2/dl-init.c: New file.
27179         * sysdeps/nios2/dl-machine.h: New file.
27180         * sysdeps/nios2/dl-sysdep.h: New file.
27181         * sysdeps/nios2/dl-tls.h: New file.
27182         * sysdeps/nios2/dl-trampoline.S: New file.
27183         * sysdeps/nios2/gccframe.h: New file.
27184         * sysdeps/nios2/gmp-mparam.h: New file.
27185         * sysdeps/nios2/jmpbuf-offsets.h: New file.
27186         * sysdeps/nios2/jmpbuf-unwind.h: New file.
27187         * sysdeps/nios2/ldsodefs.h: New file.
27188         * sysdeps/nios2/libc-tls.c: New file.
27189         * sysdeps/nios2/libm-test-ulps: New file.
27190         * sysdeps/nios2/machine-gmon.h: New file.
27191         * sysdeps/nios2/math-tests.h: New file.
27192         * sysdeps/nios2/math_private.h: New file.
27193         * sysdeps/nios2/memusage.h: New file.
27194         * sysdeps/nios2/nptl/Makefile: New file.
27195         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
27196         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
27197         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
27198         * sysdeps/nios2/nptl/pthreaddef.h: New file.
27199         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
27200         * sysdeps/nios2/nptl/tls.h: New file.
27201         * sysdeps/nios2/preconfigure: New file.
27202         * sysdeps/nios2/s_fma.c: New file.
27203         * sysdeps/nios2/s_fmaf.c: New file.
27204         * sysdeps/nios2/setjmp.S: New file.
27205         * sysdeps/nios2/sfp-machine.h: New file.
27206         * sysdeps/nios2/sotruss-lib.c: New file.
27207         * sysdeps/nios2/stackguard-macros.h: New file.
27208         * sysdeps/nios2/stackinfo.h: New file.
27209         * sysdeps/nios2/start.S: New file.
27210         * sysdeps/nios2/sysdep.h: New file.
27211         * sysdeps/nios2/tls-macros.h: New file.
27212         * sysdeps/nios2/tst-audit.h: New file.
27213         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
27214         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
27215         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
27216         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
27217         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
27218         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
27219         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
27220         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
27221         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
27222         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
27223         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
27224         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
27225         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
27226         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
27227         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
27228         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
27229         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
27230         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
27231         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
27232         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
27233         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
27234         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
27235         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
27236         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
27237         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
27238         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
27239         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
27240         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
27241         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
27242         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
27243         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
27244         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
27245         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
27246         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
27247         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
27248         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
27249         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
27250         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
27251         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
27252         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
27253         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
27254         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
27255         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
27256         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
27257
27258 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27259
27260         [BZ #17844]
27261         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
27262         (getutent): Use weak_alias in non SHARED case
27263         and default_symbol_version in SHARED case.
27264         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
27265         (getutent_r, pututline): Likewise.
27266         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
27267         (getutid): Likewise.
27268         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
27269         (getutid_r): Likewise.
27270         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
27271         (getutline): Likewise.
27272         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
27273         (getutline_r): Likewise.
27274         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
27275         (updwtmp): Likewise.
27276
27277 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27278
27279         [BZ #17848]
27280         * sysdeps/s390/s390-32/memcmp.S
27281         (memcmp_g5): Rename to __memcmp_g5.
27282         * sysdeps/s390/s390-32/memcpy.S
27283         (memcpy_g5): Rename to __memcpy_g5.
27284         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27285         (memcpy_mvcle) Rename to __memcpy_mvcle.
27286         * sysdeps/s390/s390-32/memset.S
27287         (memset_g5): Rename to __memset_g5.
27288         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27289         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27290         and use prefixed functions.
27291         * sysdeps/s390/s390-32/multiarch/memcmp.S
27292         (memcmp_z196): Rename to __memcmp_z196.
27293         (memcmp_z10): Rename to __memcmp_z10.
27294         (memcmp): Set alias to __memcmp_g5.
27295         (bcmp): Set alias to __memcmp_g5.
27296         * sysdeps/s390/s390-32/multiarch/memcpy.S
27297         (memcpy_z196): Rename to __memcpy_z196.
27298         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27299         (memcpy_z10): Rename to __memcpy_z10.
27300         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27301         (memcpy): Set alias to __memcpy_g5.
27302         * sysdeps/s390/s390-32/multiarch/memset.S
27303         (memset_z196): Rename to __memset_z196.
27304         Jump to __memset_mvcle instead of memset_mvcle.
27305         (memset_z10): Rename to __memset_z10.
27306         Jump to __memset_mvcle instead of memset_mvcle.
27307         (memset_mvcle) Rename to __memset_mvcle.
27308         (memset): Set alias to __memset_g5.
27309         * sysdeps/s390/s390-64/memcmp.S
27310         (memcmp_z900): Rename to __memcmp_z900.
27311         * sysdeps/s390/s390-64/memcpy.S
27312         (memcpy_z900): Rename to __memcpy_z900.
27313         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27314         (memcpy_mvcle) Rename to __memcpy_mvcle.
27315         * sysdeps/s390/s390-64/memset.S
27316         (memset_z900): Rename to __memset_z900.
27317         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
27318         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27319         and use prefixed functions.
27320         * sysdeps/s390/s390-64/multiarch/memcmp.S
27321         (memcmp_z196): Rename to __memcmp_z196.
27322         (memcmp_z10): Rename to __memcmp_z10.
27323         (memcmp): Set alias to __memcmp_z900.
27324         (bcmp): Set alias to __memcmp_z900.
27325         * sysdeps/s390/s390-64/multiarch/memcpy.S
27326         (memcpy_z196): Rename to __memcpy_z196.
27327         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27328         (memcpy_z10): Rename to __memcpy_z10.
27329         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27330         (memcpy): Set alias to __memcpy_z900.
27331         * sysdeps/s390/s390-64/multiarch/memset.S
27332         (memset_z196): Rename to __memset_z196.
27333         Jump to __memset_mvcle instead of memset_mvcle.
27334         (memset_z10): Rename to __memset_z10.
27335         Jump to __memset_mvcle instead of memset_mvcle.
27336         (memset_mvcle) Rename to __memset_mvcle.
27337         (memset): Set alias to __memset_z900.
27338
27339 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
27340
27341         [BZ #17748]
27342         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
27343         __fesetenv instead of fesetenv.
27344
27345 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27346
27347         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
27348         macro.
27349
27350 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27351
27352         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
27353         regression on LE.
27354
27355         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
27356         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
27357         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27358         strncmp-power8 object.
27359         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27360         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
27361         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
27362         * NEWS: Update.
27363
27364 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27365             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27366
27367         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
27368         trailing byte check.
27369
27370 2015-01-13  David S. Miller  <davem@davemloft.net>
27371
27372         * include/signal.h (__sigreturn): Guard with __USE_MISC.
27373
27374 2015-01-13  Roland McGrath  <roland@hack.frob.com>
27375
27376         * login/logout.c (logout): Use memset rather than bzero.
27377         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
27378         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
27379         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
27380         (_gethtbyaddr): Likewise.
27381         * locale/programs/simple-hash.c (bcopy): Macro removed.
27382
27383 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27384
27385         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27386         Add strcmp-power8 object.
27387         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27388         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
27389         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
27390         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
27391         __strcmp_power8 implementation.
27392         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
27393         * NEWS: Update.
27394
27395         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27396         Add strncpy-power8 and stpncpy-power8 objects.
27397         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27398         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
27399         implementations.
27400         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
27401         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
27402         __stpncpy_power8 implementation.
27403         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
27404         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
27405         __strncpy_power8 implementation.
27406         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
27407         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
27408         * NEWS: Update.
27409
27410         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
27411         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
27412         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
27413
27414         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27415         strncat-power8 object.
27416         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
27417         __strcat_power8 implementation.
27418         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27419         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
27420         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
27421         optimized strcat for power8.
27422
27423         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27424         strcpy-power8 and stpcpy-power8 objects.
27425         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27426         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
27427         implementations.
27428         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
27429         multiarch stpcpy implementation for POWER8.
27430         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
27431         multiarch strcpy implementation for POWER8.
27432         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
27433         __strcpy_power8 function.
27434         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
27435         stpcpy for POWER8.
27436         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
27437         strcpy for POWER8.
27438         * NEWS: Update.
27439
27440 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
27441
27442         [BZ #16009]
27443         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
27444         weights and rules. Use do_xfrm_cached if data fits in cache,
27445         do_xfrm otherwise.  Moved former main loop to...
27446         * (do_xfrm_cached): New function.
27447         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
27448         find_idx, find_position and stack_push.
27449         * (find_idx): New function.
27450         * (find_position): Likewise.
27451         * localedata/sort-test.sh: Added test run for do_xfrm.
27452         * localedata/xfrm-test.c (main): Added command line option
27453         -nocache to run the test with strings that are too large for
27454         the STRXFRM cache.
27455
27456 2015-01-13  Torvald Riegel  <triegel@redhat.com>
27457
27458         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
27459         variable to lll_futex_wake call, not the value itself.
27460
27461 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
27462
27463         [BZ #17803]
27464         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
27465         twom64.  Adjust value to 0x1p-64L.
27466         (__scalblnl): Only return standard underflowing result for K <=
27467         -64 not K <= -63; adjust exponent for underflowing result by 64
27468         not 63.
27469         * math/libm-test.inc (scalbn_test_data): Add more tests.
27470         (scalbln_test_data): Likewise.
27471
27472         [BZ #17834]
27473         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
27474         0x1p63L.
27475         (__scalblnl): Get new exponent of adjusted subnormal value from ES
27476         not HX.
27477         * math/libm-test.inc (scalbn_test_data): Add more tests.
27478         (scalbln_test_data): Likewise.
27479
27480 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27481             Stefani Seibold  <stefani@seibold.net>
27482
27483         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
27484         (sysdep_routines): Add dl-vdso here, ...
27485         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
27486         (sysdep_routines): ... not here.
27487         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
27488         fallback when vDSO is not presented.
27489         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
27490         Define with libc_hidden_proto/libc_hidden_data_def definitions.
27491         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
27492         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
27493         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
27494         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
27495         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
27496         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
27497         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
27498         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
27499         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
27500         fallback configurable symbol when vDSO is not available.
27501         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
27502         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
27503         be able to redefine fallback symbol when vDSO is not available.
27504         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
27505         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
27506
27507 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27508
27509         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
27510         (TLS_INIT_TP): Add tm_capable initialization.
27511         (TLS_DEFINE_INIT_TP): Likewise.
27512         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
27513         TCB.
27514         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
27515         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
27516         calculation.
27517         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
27518         transactoion is lock elision is built and TCB tm_capable is set.
27519         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
27520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
27521         (INTERNAL_SYSCALL_NCS): Likewise.
27522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
27523         (INTERNAL_SYSCALL_NCS): Likewise.
27524         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
27525
27526         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
27527         for powerpc.
27528         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27529         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
27530         and remove it for 32 bits case.
27531         [pthread_rwlock_t] (__rwelision): New field for lock elision.
27532         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
27533         initialization.
27534         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
27535         Disable lock elision with rdlocks if elision is not available.
27536
27537         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
27538         (sysdep_routines): Add lock elision objects.
27539         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27540         [pthread_mutex_t] (__spins): Rework to add lock elision field.
27541         [pthread_mutex_t] (__elision): Add field.
27542         [__PTHREAD_SPINS]: Adjust to init lock elision field.
27543         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
27544         elision definitions for powerpc.
27545         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
27546         implementation of lock elision for powerpc.
27547         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
27548         implementation of timed lock elision for powerpc.
27549         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
27550         implementation of trylock with lock elision for powerpc.
27551         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
27552         implementaion of unlock for lock elision for powerpc.
27553         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
27554         automatic enable lock elision for mutexes.
27555         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
27556         transaction execution definitions for powerpc.
27557         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
27558         definitions.
27559         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
27560         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
27561         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
27562         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
27563         * NEWS: Update.
27564
27565 2015-01-09  Roland McGrath  <roland@hack.frob.com>
27566
27567         * sysdeps/posix/shm-directory.c: Use <> rather than ""
27568         for #include of <shm-directory.h>.
27569
27570 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
27571
27572         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
27573         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
27574
27575 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
27576
27577         [BZ #17791]
27578         * NEWS: Mention bug fix.
27579         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
27580         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
27581         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
27582
27583 2015-01-09  Torvald Riegel <triegel@redhat.com>
27584
27585         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
27586
27587 2015-01-09  Torvald Riegel <triegel@redhat.com>
27588
27589         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
27590
27591 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27592
27593         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
27594         pointer and cast to uintptr_t.
27595
27596 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27597
27598         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
27599         removed.
27600         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
27601
27602 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27603
27604         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
27605         of 0.
27606
27607 2015-01-08  Roland McGrath  <roland@hack.frob.com>
27608
27609         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
27610         <nptl/pthreadP.h> instead.
27611         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
27612
27613         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
27614         already defined.
27615         [__SIGRTMIN] (init): Function removed.
27616         [__SIGRTMIN] (initialized): Variable removed.
27617         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
27618         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
27619         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
27620         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
27621         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
27622         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
27623         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
27624         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
27625         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
27626         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
27627         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
27628         * sysdeps/nptl/allocrtsig.c: New file.
27629         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
27630         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
27631         * sysdeps/generic/testrtsig.h: File removed.
27632
27633         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
27634         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
27635
27636         * nptl/nptl-init.c (pthread_functions): Conditionalize
27637         .ptr__nptl_setxid initialization on [SIGSETXID].
27638
27639         * sysdeps/nptl/sys/procfs.h: New file.
27640         * nptl_db/Makefile (headers): Add it.
27641         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
27642
27643         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
27644         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
27645         * nptl/pthread_attr_setaffinity.c: Include it.
27646         * nptl/pthread_setattr_default_np.c: Likewise.
27647         * nptl/check-cpuset.h: New file.
27648
27649 2015-01-08  Richard Henderson  <rth@redhat.com>
27650
27651         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
27652         (CFLAGS-tst-execstack-prog.c): Likewise.
27653         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
27654
27655 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
27656             Sandra Loosemore  <sandra@codesourcery.com>
27657             Andrew Jenner  <andrew@codesourcery.com>
27658             Joseph Myers  <joseph@codesourcery.com>
27659             Nathan Sidwell  <nathan@codesourcery.com>
27660
27661         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
27662         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
27663         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
27664         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
27665         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
27666         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
27667         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
27668         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
27669         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
27670         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
27671         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
27672         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
27673         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
27674         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
27675         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
27676         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
27677         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
27678
27679 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27680
27681         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
27682         timespec struct member in syscall macro.
27683         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
27684         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
27685         first timeval struct member in syscall macro.
27686         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
27687
27688 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
27689
27690         [BZ #17748]
27691         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
27692         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
27693         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
27694         __feupdateenv and define as weak alias of __feupdateenv.  Use
27695         libm_hidden_weak.
27696         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
27697         libm_hidden_def.
27698         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
27699         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
27700         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
27701         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
27702         libm_hidden_def.
27703         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
27704         __feupdateenv and define as weak alias of __feupdateenv.  Use
27705         libm_hidden_weak.
27706         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
27707         libm_hidden_def.
27708         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
27709         __feupdateenv and define as weak alias of __feupdateenv.  Use
27710         libm_hidden_weak.
27711         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
27712         libm_hidden_def.
27713         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
27714         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
27715         (__feupdateenv): Likewise.
27716         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
27717         __feupdateenv and define as weak alias of __feupdateenv.  Use
27718         libm_hidden_weak.
27719         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
27720         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
27721         libm_hidden_def.
27722         * sysdeps/tile/math_private.h (__feupdateenv): New inline
27723         function.
27724         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
27725         libm_hidden_def.
27726         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
27727         __feupdateenv instead of feupdateenv.
27728         (default_libc_feupdateenv_test): Likewise.
27729         (libc_feresetround_ctx): Likewise.
27730
27731 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27732
27733         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
27734         prototype.
27735
27736 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
27737
27738         * posix/regcomp.c (parse_bracket_exp): Initialize type to
27739         COLL_SYM in a couple of places to avoid uninitialized variable
27740         wanings on tilegx gcc 4.8.2.
27741
27742 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
27743
27744         * sysdeps/aarch64/strcpy.S: New file.
27745         * sysdeps/aarch64/stpcpy.S: New file.
27746         * NEWS: Updated.
27747
27748 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
27749
27750         * sysdeps/aarch64/strrchr.S: New file.
27751         * NEWS: Updated.
27752
27753 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
27754
27755         [BZ #17658]
27756         * stdlib/setenv.c: Fix memory leak when setting large,
27757         duplicate string.
27758
27759 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
27760
27761         [BZ #17273]
27762         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
27763         and tabs from buffer before parsing fstab entry.
27764         * misc/tst-mntent.c (main): Add test for mount entry with
27765         trailing spaces and tabs.
27766
27767 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
27768
27769         [BZ #17748]
27770         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
27771         * math/fesetround.c (fesetround): Rename to __fesetround and
27772         define as weak alias of __fesetround.  Use libm_hidden_weak.
27773         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
27774         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
27775         * sysdeps/arm/fesetround.c (fesetround): Likewise.
27776         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
27777         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
27778         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
27779         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
27780         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
27781         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
27782         __fesetround_inline.
27783         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
27784         __fesetround_inline instead of __fesetround.
27785         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
27786         __fesetround and define as weak alias of __fesetround.  Use
27787         libm_hidden_weak.  Call __fesetround_inline instead of
27788         __fesetround.
27789         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
27790         __fesetround and define as weak alias of __fesetround.  Use
27791         libm_hidden_weak.
27792         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
27793         Likewise.
27794         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
27795         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
27796         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
27797         * sysdeps/tile/math_private.h (__fesetround): New inline function.
27798         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
27799         __fesetround and define as weak alias of __fesetround.  Use
27800         libm_hidden_weak.
27801         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
27802         __fesetround instead of fesetround.
27803         (default_libc_feholdexcept_setround): Likewise.
27804         (libc_feholdsetround_ctx): Likewise.
27805         (libc_feholdsetround_noex_ctx): Likewise.
27806
27807         [BZ #17748]
27808         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
27809         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
27810         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
27811         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
27812         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
27813         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
27814         define as weak alias of __fesetenv.  Use libm_hidden_weak.
27815         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
27816         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
27817         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
27818         define as weak alias of __fesetenv.  Use libm_hidden_weak.
27819         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
27820         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
27821         define as weak alias of __fesetenv.  Use libm_hidden_weak.
27822         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
27823         libm_hidden_def.
27824         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
27825         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
27826         Likewise.
27827         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
27828         define as weak alias of __fesetenv.  Use libm_hidden_weak.
27829         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
27830         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
27831         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
27832         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
27833         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
27834         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
27835         __fesetenv instead of fesetenv.
27836         (libc_feresetround_noex_ctx): Likewise.
27837         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
27838         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
27839         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
27840         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
27841         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
27842         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
27843         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
27844         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
27845         (__feupdateenv): Likewise.
27846         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
27847         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
27848         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
27849         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
27850
27851 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
27852
27853         [BZ #17806]
27854         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
27855         addresses have been freed.
27856
27857 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
27858
27859         * resolv/res_init.c (__res_vinit): Improve comments about nserv
27860         and nservall.
27861
27862 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
27863
27864         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
27865         Clean up check_pf allocation pattern. addresses
27866
27867 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27868
27869         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
27870         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
27871         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
27872         * nptl/pthread_exit.c (__pthread_exit): Likewise.
27873         * nptl/pthread_join.c (pthread_join): Likewise.
27874         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
27875         * sysdeps/posix/waitid.c (__waitid): Likewise.
27876         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
27877         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
27878         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
27879         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
27880         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
27881         Likewise.
27882         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
27883         (__libc_pread64): Likewise.
27884         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
27885         (__libc_pwrite): Likewise.
27886         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
27887         (__libc_pwrite64): Likewsie.
27888         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
27889         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
27890         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
27891         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
27892         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
27893         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
27894         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
27895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
27896         Likewise.
27897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
27898         (__libc_pread64): Likewise.
27899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
27900         Likewise.
27901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
27902         (__libc_pwrite64): Likewise.
27903         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
27904         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
27905         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
27906         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
27907         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
27908         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
27909         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
27910         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
27911         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
27912         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
27913         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
27914         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
27915         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
27916         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
27917         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
27918         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
27919         Likewise.
27920
27921 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
27922
27923         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
27924         (CFLAGS-test-double.c): Likewise.
27925         (CFLAGS-test-ldouble.c): Likewise.
27926         (CPPFLAGS-test-ifloat.c): Likewise.
27927         (CPPFLAGS-test-idouble.c): Likewise.
27928         (CPPFLAGS-test-ildoubl.c): Likewise.
27929         (CFLAGS-test-test-fenv.c): Remove variable.
27930         (CFLAGS-test-misc.c): Likewise.
27931
27932 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
27933
27934         [BZ #17797]
27935         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
27936         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
27937         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
27938         CLOCKS_PER_SEC == 1000000.
27939         * time/clocktest.c (main): Replace %ld with %jd and cast to
27940         intmax_t.
27941
27942 2015-01-05  Roland McGrath  <roland@hack.frob.com>
27943
27944         * sysdeps/generic/unwind-resume.h: New file.
27945         * sysdeps/gnu/unwind-resume.c: Include it.
27946         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
27947         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
27948         argument list.
27949         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
27950         global rather than static.
27951         (_Unwind_Resume): Update user.
27952         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
27953         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
27954         rather than static.  Add __attribute__ ((cold)).
27955         (_Unwind_Resume, __gcc_personality_v0): Update callers.
27956         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
27957         * sysdeps/arm/arm-unwind-resume.S: New file.
27958         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
27959         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
27960         * sysdeps/arm/Makefile [$(subdir) = csu]
27961         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
27962         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
27963         Add rt-arm-unwind-resume.
27964         [$(subdir) = nptl]
27965         (libpthread-sysdep_routines, libpthread-shared-only-routines):
27966         Add pt-arm-unwind-resume.
27967         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
27968         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
27969
27970 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
27971
27972         [BZ #17748]
27973         * include/fenv.h (__feholdexcept): Declare.  Use
27974         libm_hidden_proto.
27975         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
27976         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
27977         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
27978         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
27979         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
27980         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
27981         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
27982         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
27983         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
27984         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
27985         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
27986         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
27987         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
27988         (feholdexcept): Likewise.
27989         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
27990         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
27991         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
27992         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
27993         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
27994         __feholdexcept instead of feholdexcept.
27995         (default_libc_feholdexcept_setround): Likewise.
27996
27997 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
27998
27999         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
28000         to avoid using stl/str to align destination.
28001
28002 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28003
28004         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
28005
28006 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28007
28008         [BZ #17796]
28009         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
28010         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
28011         Define as weak alias not strong alias.
28012
28013 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28014
28015         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
28016         bltzal with addiupc.
28017         (RTLD_START): Ditto.
28018
28019 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
28020
28021         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
28022         for __vdso_* functions in declarations.
28023         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
28024         definitions.
28025         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
28026         INTERNAL_VSYSCALL): Use struct return types to check for error.
28027
28028         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
28029         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
28030         function with cast from llround().
28031         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
28032         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
28033         Define.
28034
28035 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28036
28037         [BZ #17793]
28038         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
28039         Define as weak alias not strong alias.
28040
28041         [BZ #17635]
28042         * ctype/ctype-c99.c: New file.  isblank implementation moved from
28043         ...
28044         * ctype/ctype-extn.c: ... here.
28045         (__isblank_l): Move to ...
28046         * ctype/ctype-c99_l.c: ... here.  New file.
28047         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
28048         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
28049         Remove variable.
28050         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
28051         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
28052         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
28053         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
28054         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
28055
28056         [BZ #17777]
28057         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
28058         (posix_fadvise64): Define as weak alias not strong alias.
28059         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
28060         (posix_fallocate64): Likewise.
28061         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
28062         Remove variable.
28063         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
28064         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
28065         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
28066         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
28067         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
28068
28069 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
28070
28071         [BZ #16191]
28072         * NEWS: Mention bug fix.
28073         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
28074         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
28075         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
28076         (HOST_STACK_END_ADDR): Likewise.
28077
28078 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28079
28080         [BZ #17748]
28081         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
28082         * math/fegetround.c (fegetround): Rename to __fegetround and
28083         define as weak alias of __fegetround.  Use libm_hidden_weak.
28084         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
28085         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
28086         * sysdeps/arm/fegetround.c (fegetround): Likewise.
28087         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
28088         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
28089         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
28090         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
28091         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
28092         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
28093         Undefine after rather than before function definition; use
28094         parentheses around function name in definition.
28095         (__fegetround): Also undefine macro after function definition.
28096         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
28097         __fegetround and define as weak alias of __fegetround.  Use
28098         libm_hidden_weak.  Do not undefine as macro.
28099         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
28100         Likewise.
28101         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
28102         __fegetround and define as weak alias of __fegetround.  Use
28103         libm_hidden_weak.
28104         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
28105         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
28106         * sysdeps/tile/math_private.h (__fegetround): New inline function.
28107         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
28108         __fegetround and define as weak alias of __fegetround.  Use
28109         libm_hidden_weak.
28110         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
28111         __fegetround instead of fegetround.
28112
28113         [BZ #17782]
28114         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
28115         Condition macro definition on [__USE_MISC].
28116
28117         [BZ #17781]
28118         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28119         (struct sigaction): Change type of sa_flags field to int.
28120
28121         [BZ #17780]
28122         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
28123         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
28124         __glibc_reserved0.
28125
28126         * nptl/version.c (banner): Use single year in copyright notice.
28127
28128         * NEWS: Update copyright dates.
28129         * catgets/gencat.c (print_version): Likewise.
28130         * csu/version.c (banner): Likewise.
28131         * debug/catchsegv.sh: Likewise.
28132         * debug/pcprofiledump.c (print_version): Likewise.
28133         * debug/xtrace.sh (do_version): Likewise.
28134         * elf/ldconfig.c (print_version): Likewise.
28135         * elf/ldd.bash.in: Likewise.
28136         * elf/pldd.c (print_version): Likewise.
28137         * elf/sotruss.sh: Likewise.
28138         * elf/sprof.c (print_version): Likewise.
28139         * iconv/iconv_prog.c (print_version): Likewise.
28140         * iconv/iconvconfig.c (print_version): Likewise.
28141         * locale/programs/locale.c (print_version): Likewise.
28142         * locale/programs/localedef.c (print_version): Likewise.
28143         * login/programs/pt_chown.c (print_version): Likewise.
28144         * malloc/memusage.sh (do_version): Likewise.
28145         * malloc/memusagestat.c (print_version): Likewise.
28146         * malloc/mtrace.pl: Likewise.
28147         * manual/libc.texinfo: Likewise.
28148         * nptl/version.c (banner): Likewise.
28149         * nscd/nscd.c (print_version): Likewise.
28150         * nss/getent.c (print_version): Likewise.
28151         * nss/makedb.c (print_version): Likewise.
28152         * posix/getconf.c (main): Likewise.
28153         * scripts/test-installation.pl: Likewise.
28154         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
28155
28156 2015-01-02  Will Newton  <will.newton@linaro.org>
28157
28158         * sysdeps/arm/armv7/configure: Removed.
28159         * sysdeps/arm/armv7/configure.ac: Likewise.
28160
28161 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28162
28163         * All files with FSF copyright notices: Update copyright dates
28164         using scripts/update-copyrights.
28165         * intl/plural.c: Regenerated.
28166         * locale/programs/charmap-kw.h: Likewise.
28167         * locale/programs/locfile-kw.h: Likewise.
28168
28169 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28170
28171         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
28172
28173 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28174
28175         [BZ #17748]
28176         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
28177         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
28178         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28179         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28180         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28181         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
28182         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28183         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
28184         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28185         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28186         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28187         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28188         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28189         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28190         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
28191         libm_hidden_def.
28192         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
28193         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
28194         Likewise.
28195         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28196         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28197         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
28198         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28199         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
28200         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28201         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28202         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
28203         __fegetenv instead of fegetenv.
28204         (libc_feholdsetround_noex_ctx): Likewise.
28205
28206 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
28207
28208         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
28209         (Elf_MIPS_ABIFlags_v0): New structure.
28210         (EF_MIPS_FP64): Define.
28211         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
28212         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
28213         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
28214         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
28215         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
28216         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
28217         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
28218         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
28219         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
28220         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
28221         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
28222         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
28223         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
28224         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
28225         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
28226         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
28227         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
28228         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
28229         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
28230         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
28231         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
28232         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
28233         field.
28234         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
28235         EF_MIPS_FP64.
28236         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
28237         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
28238         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
28239         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
28240         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
28241         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
28242         * sysdeps/mips/tst-abi-interlink.c: Likewise.
28243         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
28244         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
28245         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
28246         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
28247         record the current FP ABI extension.
28248         (mips-mode-switch): Define to show if kernel headers support mode
28249         switching.
28250         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
28251         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
28252         supported SYSV ABI version to 3.
28253         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
28254         feature.
28255
28256 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28257             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28258
28259         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
28260         path.
28261         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
28262
28263 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28264
28265         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
28266         __fegetround and redefine to call __fegetround.  Remove condition
28267         on [!__NO_MATH_INLINES].
28268         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
28269         function.
28270         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
28271         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
28272         Remove macro.
28273         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
28274         instead of <fenv_libc.h>.
28275         (__llrintl): Call fegetround instead of __fegetround.
28276         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
28277         instead of <fenv_libc.h>.
28278         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
28279         (__lrintl): Call fegetround instead of __fegetround.
28280         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
28281         instead of <fenv_libc.h>.
28282         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
28283         (__rintl): Call fegetround instead of __fegetround.
28284
28285 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
28286
28287         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
28288         arrays.
28289
28290 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28291
28292         [BZ #17775]
28293         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
28294         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
28295         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
28296
28297 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28298
28299         * sysdeps/i386/tls-macros.h: Include <features.h>.
28300         (TLS_LE): Use non-PIC version for GCC >= 5.0.
28301         (TLS_IE): Likewise.
28302         (TLS_LD): Likewise.
28303         (TLS_GD): Likewise.
28304         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
28305         define for GCC >= 5.0.
28306
28307 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
28308
28309         * math/test-fenv.c (test_single_exception, set_single_exc,
28310         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
28311         feexcp_mask_test, feenable_test, fe_single_test): Add
28312         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
28313         case where they are not used.
28314         * math/libm-test.inc: Likewise.
28315         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
28316         unused in the absence of FP rounding/exception support.
28317         * stdio-common/tst-printf-round.c: Likewise.
28318         * stdlib/tst-strtod-round.c: Likewise.
28319         * stdlib/tst-strtod-underflow.c: Likewise.
28320
28321 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
28322
28323         [BZ #17723]
28324         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
28325         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
28326         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28327         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28328         libm_hidden_weak.
28329         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
28330         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28331         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
28332         libm_hidden_def.
28333         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28334         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28335         libm_hidden_weak.
28336         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
28337         Likewise.
28338         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
28339         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28340         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28341         libm_hidden_weak.
28342         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28343         libm_hidden_def.
28344         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
28345         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
28346         (__feraiseexcept): Likewise.
28347         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28348         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28349         libm_hidden_weak.
28350         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28351         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28352         libm_hidden_def.
28353         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
28354         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
28355         Use libm_hidden_def.
28356         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
28357         libm_hidden_def.
28358         (feraiseexcept): Define as weak not strong alias.  Use
28359         libm_hidden_weak.
28360         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
28361         New inline function.  Factored out of ...
28362         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
28363         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
28364         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
28365         feraiseexcept.
28366         * math/w_acos.c (__acos): Likewise.
28367         * math/w_asin.c (__asin): Likewise.
28368         * math/w_ilogb.c (__ilogb): Likewise.
28369         * math/w_j0.c (y0): Likewise.
28370         * math/w_j1.c (y1): Likewise.
28371         * math/w_jn.c (yn): Likewise.
28372         * math/w_log.c (__log): Likewise.
28373         * math/w_log10.c (__log10): Likewise.
28374         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
28375         * sysdeps/aarch64/fpu/math_private.h
28376         (libc_feupdateenv_test_aarch64): Likewise.
28377         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28378         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
28379         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
28380         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28381         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28382         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28383         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
28384         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28385         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28386         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28387
28388 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28389
28390         [BZ #17732]
28391         * io/test-utime.c (main): Replace %ld with %jd and cast to
28392         intmax_t.
28393         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
28394         * nptl/tst-mutex5.c: Include <stdint.h>.
28395         (do_test): Replace %ld with %jd and cast to intmax_t.
28396         * posix/tst-regex.c (run_test): Likewise.
28397         (run_test_backwards): Likewise.
28398         * rt/tst-clock.c: Include <stdint.h>.
28399         (clock_test): Replace %ld with %jd and cast to intmax_t.
28400         * rt/tst-cpuclock1.c: Include <stdint.h>.
28401         (do_test): Replace %lu with %ju and cast to uintmax_t.
28402         * rt/tst-cpuclock2.c: Include <stdint.h>.
28403         (do_test): Replace %lu with %ju and cast to uintmax_t.
28404         * rt/tst-mqueue1.c: Include <stdint.h>.
28405         (check_attrs): Replace %ld with %jd and cast to intmax_t.
28406         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
28407         intmax_t.
28408         * rt/tst-mqueue4.c (do_test): Likewise.
28409         * rt/tst-timer4.c: Include <stdint.h>.
28410         (check_ts): Replace %ld with %jd and cast to intmax_t.
28411         (do_test): Likewise.
28412         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
28413         and cast to intmax_t.
28414         * sysdeps/pthread/tst-timer.c (main): Likewise.
28415         * time/clocktest.c (main): Likewise.
28416         * time/tst-posixtz.c (do_test): Likewise.
28417         * timezone/tst-timezone.c (main): Likewise.
28418
28419 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28420             H.J. Lu  <hongjiu.lu@intel.com>
28421
28422         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
28423         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
28424         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
28425         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
28426         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
28427         version if bit_Fast_Unaligned_Load is set.
28428         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28429         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28430         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28431         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28432         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28433         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28434         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28435         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
28436         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
28437         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
28438         to 4.
28439         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
28440         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
28441         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
28442         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
28443
28444 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
28445
28446         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
28447         instead of #if to avoid a Wundef warning.
28448         * stdlib/tst-limits.c (do_test): Likewise.
28449
28450         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
28451         parallel other exception macros.
28452         (fegetenv): Convert from macro to extern inline so that it applies
28453         retroactively to inline functions already seen by the compiler.
28454         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
28455
28456         * posix/Makefile (before-compile): Use $(objpfx) for
28457         posix-conf-vars-def.h.
28458
28459 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28460
28461         * posix/getconf.c (main): Use size_t for type of I.
28462         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
28463         NSPEC.
28464
28465         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
28466         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
28467         * posix/posix-envs.def: Likewise.
28468         * sysdeps/posix/sysconf.c: Likewise.
28469         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
28470         (specs): Remove array.
28471         * scripts/gen-posix-conf-vars.awk: Support generation of specs
28472         array.
28473
28474         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
28475         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
28476         (__sysconf): Use CONF_IS_* macros.
28477
28478         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
28479         ($(objpfx)posix-conf-vars-def.h): New target.
28480         * posix/posix-conf-vars.list: New file.
28481         * posix/posix-conf-vars.h: New file.
28482         * posix/confstr.c: Include posix-conf-vars.h.
28483         (confstr): Use CONF_IS_* macros.
28484         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
28485         CONF_IS_* macros.
28486         * scripts/gen-posix-conf-vars.awk: New file.
28487
28488 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
28489
28490         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
28491         fegetround): Add no-op macros to avoid linknamespace issues.
28492
28493         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
28494         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
28495
28496         * sysdeps/unix/sysv/linux/tile/sysdep.h
28497         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
28498         assembly-specific section to avoid a redefinition warning.
28499
28500         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
28501         long before casting to pointer to avoid a cast warning.
28502
28503 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
28504
28505         * sysdeps/tile/tilegx/Implies: New file.
28506
28507 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
28508
28509         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
28510
28511 2014-12-23  Florian Weimer  <fweimer@redhat.com>
28512
28513         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
28514
28515 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28516
28517         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
28518         not define.
28519         * sysdeps/unix/sysv/linux/utimes.c: Do not include
28520         <kernel-features.h>.
28521         (__utimes) [__NR_utimes]: Make code unconditional.
28522         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
28523         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
28524         (__ASSUME_UTIMES): Do not undefine.
28525         * sysdeps/unix/sysv/linux/tile/kernel-features.h
28526         (__ASSUME_UTIMES): Likewise.
28527         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28528         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
28529         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
28530         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
28531
28532 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28533
28534         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
28535
28536 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
28537
28538         [BZ #17747]
28539         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
28540         alias to weak alias for j0l, y0l.
28541         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
28542         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
28543
28544         [BZ #17746]
28545         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
28546         conversion.
28547
28548 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28549
28550         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
28551         to zero if not already defined.
28552
28553 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28554
28555         [BZ #17724]
28556         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
28557         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
28558         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
28559         (char *) casts added.
28560         * sysdeps/ieee754/k_standardf.c: New file.
28561         * sysdeps/ieee754/k_standardl.c: Likewise.
28562         * math/Makefile (libm-support): Remove k_standard.
28563         (libm-calls): Add k_standard.
28564
28565 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28566
28567         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
28568         Optimize to avoid an unnecessary FPCR read.
28569
28570 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28571
28572         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
28573         Optimize to reduce FPCR/FPSR accesses.
28574
28575 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28576
28577         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
28578         Call libc_fetestexcept_aarch64.
28579
28580 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28581
28582         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
28583         Call libc_fesetround_aarch64.
28584
28585 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28586
28587         [BZ #17733]
28588         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
28589         (__bind): Do not define as weak alias.
28590         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
28591         define.
28592         (__getsockname): Do not define as weak alias.
28593
28594 2014-12-22  Will Newton  <will.newton@linaro.org>
28595
28596         * manual/install.texi: Document that we require bison 2.7
28597         or above.
28598         * INSTALL: Regenerate.
28599         * configure.ac: Use AC_CHECK_PROG_VER instead of
28600         AC_PATH_PROG when checking for bison and check for
28601         version 2.7 or above.
28602         * configure: Regenerate.
28603
28604 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
28605
28606         [BZ #17745]
28607         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
28608         * sysdeps/tile/ffsll.c (ffsll): To here.
28609
28610         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
28611
28612 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28613
28614         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
28615         if not defined.
28616         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
28617         definition.
28618         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28619         hidden ___tls_get_addr.
28620         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28621         hidden __tls_get_addr.
28622         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
28623         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
28624         Likewise.
28625
28626 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
28627
28628         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
28629         _dl_init call.
28630
28631 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28632
28633         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
28634         from "call _dl_init@PLT".
28635         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
28636
28637 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
28638
28639         * manual/search.texi: (Array Sort Function): Clarify stable sorting
28640         guarantees.
28641
28642 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
28643
28644         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
28645
28646 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
28647
28648         [BZ #17744]
28649         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
28650         strnlen.
28651
28652 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
28653
28654         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
28655         of multu on MIPSr6.
28656         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
28657         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
28658         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
28659         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
28660         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
28661
28662 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
28663
28664         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
28665         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
28666         (PTR_SUBU): Use subu for mips32r6/mips64r6.
28667         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
28668         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
28669         mips32r6/mips64r6.
28670         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
28671
28672 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
28673
28674         * string/strncat.c (STRNCAT): Simplify implementation.
28675
28676 2014-12-19  David S. Miller  <davem@davemloft.net>
28677
28678         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
28679         access the quad as both a long double and as a series of 4 words.
28680
28681         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
28682         link_map->l_info array access.
28683
28684 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
28685
28686         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
28687
28688         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
28689         * math/atest-exp2.c (TIMEOUT): Likewise.
28690         * math/atest-sincos.c (TIMEOUT): Likewise.
28691
28692 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
28693
28694         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
28695         -Wno-error with -fno-builtin-lround.
28696
28697 2014-12-19  Torvald Riegel  <triegel@redhat.com>
28698
28699         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
28700         Contains futex constants and functions moved over from ...
28701         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
28702         <lowlevellock-futex.h>.
28703         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
28704         (lll_timedwait_tid): Add comments and parentheses around macro
28705         arguments.
28706
28707 2014-12-19  Torvald Riegel  <triegel@redhat.com>
28708
28709         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
28710         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
28711         (__lll_private_flag): Remove.
28712         (lll_futex_wait): Likewise.
28713         (lll_futex_timed_wait): Likewise.
28714         (lll_futex_wake): Likewise.
28715         (lll_futex_requeue): Likewise.
28716         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
28717         (__lll_timedwait_tid): Spell out argument names.
28718         (lll_timedwait_tid): Add comments and parentheses around macro
28719         arguments.
28720         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
28721         LLL_SHARED and LLL_PRIVATE usable from assembly code.
28722
28723 2014-12-19  Torvald Riegel  <triegel@redhat.com>
28724
28725         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
28726         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
28727         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28728         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
28729         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
28730         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
28731         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
28732         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
28733         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
28734         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
28735         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
28736         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
28737         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
28738         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
28739         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
28740         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
28741         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
28742         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
28743         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
28744
28745 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
28746
28747         * sysdeps/x86_64/x32/Makefile: New file.
28748
28749 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
28750
28751         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
28752         1L with (mp_limb_t) 1.
28753
28754 2014-12-17  Roland McGrath  <roland@hack.frob.com>
28755
28756         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
28757         * nptl/libc_pthread_init.c: ... here.
28758         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
28759         * nptl/register-atfork.c: ... here.
28760
28761         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
28762         Use pthread_sigmask rather than INTERNAL_SYSCALL.
28763         Use assert_perror to check its return value.
28764         (__gai_create_helper_thread): Likewise.
28765
28766         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
28767
28768         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
28769
28770 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
28771
28772         [BZ #17725]
28773         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
28774         __profil_counter.
28775         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
28776         Likewise.
28777         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
28778         Likewise.
28779         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
28780         Likewise.
28781         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
28782         (profil_counter): Likewise.
28783         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
28784         (profil_counter): Likewise.
28785         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
28786         Likewise.
28787         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
28788         Likewise.
28789         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
28790         (profil_counter): Likewise.
28791         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
28792         Likewise.
28793         [!__profil_counter] (profil_counter): Define as weak alias of
28794         __profil_counter.
28795         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
28796         (profil_counter): Rename to __profil_counter.
28797         [!__profil_counter] (profil_counter): Define as weak alias of
28798         __profil_counter.
28799         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
28800         (profil_counter): Rename to __profil_counter.
28801         [!__profil_counter] (profil_counter): Define as weak alias of
28802         __profil_counter.
28803         * sysdeps/posix/profil.c: Update comment referring to
28804         profil_counter.
28805         (__profil): Use __profil_counter instead of profil_counter.
28806         * sysdeps/posix/sprofil.c (profil_counter): Rename to
28807         __profil_counter.  Use __profil_counter_ushort and
28808         __profil_counter_uint in definitions.
28809         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
28810         instead of profil_counter_uint and profil_counter_ushort.
28811
28812         [BZ #17722]
28813         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
28814         define as weak alias of __inet_makeaddr.
28815         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
28816         as weak alias of __inet_addr.
28817         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
28818         as weak alias of __inet_pton.  Use libc_hidden_weak.
28819         * include/arpa/inet.h (__inet_pton): Declare.  Use
28820         libc_hidden_proto.
28821         (inet_makeaddr): Don't use libc_hidden_proto.
28822         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
28823         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
28824         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
28825         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
28826         Remove variable.
28827         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
28828         (test-xfail-POSIX/time.h/linknamespace): Likewise.
28829
28830 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
28831
28832         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
28833
28834 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
28835
28836         * stdio-common/bug-vfprintf-nargs.c (do_test):
28837         Cast value to intptr_t to avoid format warning
28838         for usage with PRIdPTR printing macro.
28839
28840 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
28841
28842         * libio/tst-widetext.c (do_test):
28843         Use format type %td instead of %Zd for ptrdiff_t
28844         in order to avoid format warning.
28845
28846 2014-12-17  Andreas Schwab  <schwab@suse.de>
28847
28848         * nscd/mem.c (gc): Add size_t cast to match printf format.
28849
28850 2014-12-16  Roland McGrath  <roland@hack.frob.com>
28851
28852         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
28853         (init): Apply PTR_MANGLE to pointers before storing them.
28854         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
28855         before using them.
28856
28857 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
28858
28859         [BZ #17719]
28860         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
28861         define as weak alias of __memrchr.
28862         (__memrchr): Do not define as strong alias of memrchr.
28863         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
28864         Remove variable.
28865         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
28866         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
28867         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
28868
28869         [BZ #17717]
28870         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
28871         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
28872         (if_indextoname): Rename to __if_indextoname and define as weak
28873         alias of __if_indextoname.  Use libc_hidden_weak.
28874         (if_freenameindex): Rename to __if_freenameindex and define as
28875         weak alias of __if_freenameindex.
28876         (if_nameindex): Rename to __if_nameindex and define as weak alias
28877         of __if_nameindex.
28878         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
28879         __if_nametoindex and define as weak alias of __if_nametoindex.
28880         Use libc_hidden_weak.
28881         (if_freenameindex): Rename to __if_freenameindex and define as
28882         weak alias of __if_freenameindex.
28883         (if_nameindex): Rename to __if_nameindex and define as weak alias
28884         of __if_nameindex.
28885         (if_indextoname): Rename to __if_indextoname and define as weak
28886         alias of __if_indextoname.  Use libc_hidden_weak.
28887         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
28888         __if_nametoindex and define as weak alias of __if_nametoindex.
28889         Use libc_hidden_weak.
28890         (if_freenameindex): Rename to __if_freenameindex and define as
28891         weak alias of __if_freenameindex.  Use libc_hidden_weak.
28892         (if_nameindex_netlink): Use __if_freenameindex instead of
28893         if_freenameindex.
28894         (if_nameindex): Rename to __if_nameindex and define as weak alias
28895         of __if_nameindex.  Use libc_hidden_weak.
28896         (if_indextoname): Rename to __if_indextoname and define as weak
28897         alias of __if_indextoname.  Use libc_hidden_weak.
28898         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
28899         libc_hidden_proto.
28900         [!_ISOMAC] (__if_freenameindex): Likewise.
28901         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
28902         if_nametoindex.
28903         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
28904         variable.
28905         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
28906         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
28907         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
28908         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
28909         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
28910         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
28911         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
28912
28913         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
28914         Remove variable.
28915         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
28916         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
28917
28918 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
28919
28920         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
28921         subscript above bounds'
28922
28923         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
28924         bounds.
28925
28926 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
28927
28928         * libio/tst-fopenloc.c: Use test-skeleton.c.
28929
28930         * stdlib/tst-bsearch.c: Use test-skeleton.c.
28931         (entry): Rename to ITEM.
28932         (do_test, comp): Adjust.
28933
28934         * stdio-common/tst-fseek.c: Use test-skeleton.c.
28935
28936 2014-12-16  Torvald Riegel  <triegel@redhat.com>
28937
28938         * string/tester.c: Include <libc-internal.h>.
28939         (test_memset): Ignore -Wmemset-transposed-args.
28940
28941 2014-12-16  Torvald Riegel  <triegel@redhat.com>
28942
28943         * misc/tst-mntent2.c (do_test): Fix warning.
28944
28945 2014-12-16  Torvald Riegel  <triegel@redhat.com>
28946
28947         * elf/tst-unique4lib.cc(a): Mark as used.
28948
28949 2014-12-16  Florian Weimer  <fweimer@redhat.com>
28950
28951         [BZ #17630]
28952         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
28953         names.
28954
28955 2014-12-16  Allan McRae  <allan@archlinux.org>
28956
28957         * stdio-common/Makefile (tests): Re-add bug26.
28958
28959 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
28960
28961         [BZ #17657]
28962         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
28963         static array.
28964
28965 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
28966
28967         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
28968         (__lll_lock_wait): Likewise.
28969         (__lll_timedlock_wait): Likewise.
28970         (__lll_timedwait_tid): Likewise.
28971         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
28972         (__lll_robust_timedlock_wait): Likewise.
28973         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
28974         (lll_cond_trylock): Likewise.
28975         (__lll_lock): Likewise.
28976         (__lll_robust_lock): Likewise.
28977         (__lll_cond_lock): Likewise.
28978         (lll_robust_cond_lock): Likewise.
28979         (__lll_timedlock): Likewise.
28980         (__lll_robust_timedlock): Likewise.
28981         (__lll_unlock): Likewise.
28982         (__lll_robust_unlock): Likewise.
28983         (lll_wait_tid): Likewise.
28984         (lll_timedwait_tid): Likewise.
28985
28986 2014-12-15  Torvald Riegel  <triegel@redhat.com>
28987
28988         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
28989
28990 2014-12-15  Torvald Riegel  <triegel@redhat.com>
28991
28992         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
28993
28994 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
28995
28996         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
28997         * stdio-common/tst-sprintf.c: Likewise.
28998
28999 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29000
29001         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
29002
29003 2014-12-15  Jeff Law  <law@redhat.com>
29004
29005         [BZ #16617]
29006         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
29007         on the heap.  (CVE-2012-3406)
29008         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
29009         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
29010         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
29011
29012 2014-12-15  Will Newton  <will.newton@linaro.org>
29013
29014         * manual/install.texi: Bump required version of texinfo
29015         to 4.7 from 4.5.
29016         * INSTALL: Regenerated.
29017         * configure.ac: Check for makeinfo version 4.7 and above.
29018         * configure: Regenerated.
29019
29020 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29021
29022         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
29023         PREFIX, string constant to insert between directory and name.
29024         * sysdeps/posix/shm_open.c: Update caller.
29025         * sysdeps/posix/shm_unlink.c: Likewise.
29026         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
29027         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
29028         (SEM_SHM_PREFIX): New macro.
29029         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
29030         [$(have-thread-library) = no].
29031         * nptl/Makefile (libpthread-routines): Add shm-directory.
29032         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
29033         * sysdeps/nptl/shm-directory.h: New file.
29034         * sysdeps/posix/shm-directory.c
29035         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
29036         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
29037         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
29038         INTERNAL_SYSCALL.
29039         (__where_is_shmfs): Function removed.
29040         (mountpoint, defaultmount, defaultdir, __namedsem_once):
29041         Variables removed.
29042         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
29043         Use SHM_GET_NAME.
29044         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
29045
29046         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
29047         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
29048         unconditional for use inside libpthread.
29049         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
29050
29051 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29052
29053         * nptl/pthread_getaffinity.c: New file.
29054         * nptl/pthread_setaffinity.c: New file.
29055         * nptl/pthread_getname.c: New file.
29056         * nptl/pthread_setname.c: New file.
29057
29058         * nptl/pthread_create.c (START_THREAD_DEFN)
29059         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
29060
29061 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29062             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29063
29064         * resolv/res_send.c (send_vc): Disable warning resplen may
29065         be used uninitialized.
29066
29067 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29068
29069         * nptl/tst-mutex6.c
29070         (ATTR_NULL): New define checks ATTR against NULL.
29071         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
29072         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
29073
29074 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
29075
29076         [BZ #17581]
29077         * malloc/hooks.c
29078         (mem2mem_check): Revert my previous change.
29079         (malloc_check_get_size): Revert my previous change.
29080         (mem2chunk_check): Revert my previous change.
29081
29082 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29083
29084         * sysdeps/posix/shm-directory.c: New file.
29085         * sysdeps/posix/shm-directory.h: New file.
29086         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
29087         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
29088         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
29089         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
29090         Transmute EPERM to EACCES.
29091         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
29092         from ...
29093         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
29094         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
29095
29096 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29097
29098         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
29099         pointer and cast to uintptr_t.
29100         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
29101         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
29102         Add cast to avoid warning.
29103         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
29104
29105 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29106
29107         * nptl/semaphore.h: Move to ...
29108         * sysdeps/pthread/semaphore.h: ... here.
29109         * Makefile (installed-headers): Change nptl/semaphore.h to
29110         sysdeps/pthread/semaphore.h.
29111
29112 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29113
29114         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
29115         generated error format strings.
29116
29117         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
29118         -Wformat-extra-args warnings for scanf formats.
29119         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
29120         test of zero-length format (duh).
29121         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
29122         corner-case scanf format test.
29123         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
29124         generated fprintf format string.
29125         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
29126         corner-case sprintf format tests.
29127         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
29128         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
29129         -Wformat-extra-args warnings throughout.
29130         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
29131         (CFLAGS-scanf4.c): Likewise.
29132         (CFLAGS-scanf7.c): Likewise.
29133         (CFLAGS-tst-sprintf.c): Likewise.
29134         (CFLAGS-tst-printf.c): Likewise.
29135         (CFLAGS-tst-printfsz.c): Likewise.
29136
29137 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29138
29139         * include/cpio.h: New file.
29140         * include/fmtmsg.h: Likewise.
29141
29142         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
29143         corresponding format argument to size_t.
29144         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
29145         arguments.
29146         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
29147         corresponding format argument to size_t.
29148         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
29149         arguments.
29150         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
29151         corresponding format argument to size_t.
29152         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
29153         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
29154         (CFLAGS-tst-mbswcs2.c): Likewise.
29155         (CFLAGS-tst-mbswcs3.c): Likewise.
29156         (CFLAGS-tst-mbswcs4.c): Likewise.
29157         (CFLAGS-tst-mbswcs5.c): Likewise.
29158         (CFLAGS-tst-trans.c): Likewise.
29159
29160 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29161
29162         * posix/regexbug1.c (main): Use "%s" format with regerror results,
29163         rather than assuming they won't contain any '%'s.
29164
29165 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
29166
29167         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
29168         inhibit_loop_to_libcall to avoid recursive calls.
29169         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
29170         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
29171
29172 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29173
29174         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
29175         prototype.
29176
29177 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29178
29179         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
29180         integer value instead of boolean.
29181
29182 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29183
29184         * malloc/malloc.c: Fix powerof2 check.
29185
29186 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29187
29188         * locale/programs/locfile.h (maybe_swap_uint32):
29189         Remove inline and add unused attribute.
29190
29191 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29192
29193         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
29194         Truncating assembler expression to a .long expression.
29195
29196 2014-12-11  Andreas Schwab  <schwab@suse.de>
29197
29198         * elf/rtld.c (struct map_args): Constify str member.
29199         (do_preload): Constify fname argument.
29200
29201 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29202
29203         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
29204         constants definition.
29205
29206 2014-12-11  Andreas Schwab  <schwab@suse.de>
29207
29208         [BZ #16657]
29209         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
29210         FORCE_ELISION instead of DO_ELISION.
29211         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
29212         Remove.
29213         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
29214         Likewise.
29215
29216         * iconvdata/gconv-modules: Remove duplicate entry.
29217
29218 2014-12-11  Will Newton  <will.newton@linaro.org>
29219
29220         Merge gettext 0.19.3 into intl/.
29221
29222         This involves a number of cosmetic changes to comments
29223         and ANSI function definitions and prototypes throughout
29224         all the files. The gettext copyright header is used but
29225         with the date ranges taken from the glibc copy.
29226
29227         * NEWS: Add gettext merge to 2.21.
29228         * intl/bindtextdom.c: Switch to gettext copyright.
29229         Use ANSI definitions and prototypes.
29230         Use gl_* locking primitives rather than __libc_* ones.
29231         Use __builtin_expect rather than __glibc_likely/unlikely.
29232         * intl/dcgettext.c: Switch to gettext copyright.
29233         Use ANSI definitions and prototypes.
29234         * intl/dcigettext.c: Switch to gettext copyright.
29235         Use ANSI definitions and prototypes.
29236         (INTDIV0_RAISES_SIGFPE): New define.
29237         Use gl_* locking primitives rather than __libc_* ones.
29238         Include eval-plural.h instead of plural-eval.c.
29239         Use __builtin_expect rather than __glibc_likely/unlikely.
29240         * intl/dcngettext.c: Switch to gettext copyright.
29241         Use ANSI definitions and prototypes.
29242         * intl/dgettext.c: Likewise.
29243         * intl/dngettext.c: Likewise.
29244         * intl/plural-eval.c: Renamed to...
29245         * intl/eval-plural.h: ...this.
29246         * intl/explodename.c: Switch to gettext copyright.
29247         Use ANSI definitions and prototypes.
29248         (_nl_explode_name): Use strchr instead of __rawmemchr.
29249         * intl/finddomain.c: Switch to gettext copyright.
29250         Use ANSI definitions and prototypes.
29251         Use gl_* locking primitives rather than __libc_* ones.
29252         (_nl_find_domain): Use malloc rather than alloca for
29253         allocation of temporary locale name.
29254         * intl/gettext.c: Switch to gettext copyright.
29255         Use ANSI definitions and prototypes.
29256         * intl/gettextP.h: Switch to gettext copyright.
29257         Use ANSI definitions and prototypes.
29258         Use gl_* locking primitives rather than __libc_* ones.
29259         * intl/gmo.h: Switch to gettext copyright.
29260         (struct sysdep_string): Move struct segment_pair outside of
29261         struct definition.
29262         * intl/hash-string.c: Use ANSI definitions and prototypes.
29263         * intl/hash-string.h: Switch to gettext copyright.
29264         Use ANSI definitions and prototypes.
29265         * intl/l10nflist.c: Switch to gettext copyright.
29266         Use ANSI definitions and prototypes.
29267         (_nl_normalize_codeset): Avoid integer overflow.
29268         * intl/loadinfo.h: Switch to gettext copyright.
29269         Use ANSI definitions and prototypes.
29270         (LIBINTL_DLL_EXPORTED): New define.
29271         (PATH_SEPARATOR): New define.
29272         * intl/loadmsgcat.c: Switch to gettext copyright.
29273         * intl/localealias.c: Switch to gettext copyright.
29274         Use ANSI definitions and prototypes.
29275         (_nl_expand_alias): Use PATH_SEPARATOR.
29276         * intl/ngettext.c: Switch to gettext copyright.
29277         Use ANSI definitions and prototypes.
29278         * intl/plural-exp.c: Likewise.
29279         * intl/plural-exp.h: Switch to gettext copyright.
29280         Use ANSI definitions and prototypes.
29281         (struct expression): Move definition of enum operator outside
29282         of struct definition.
29283         * intl/plural.c: Regenerate.
29284         * intl/plural.y: Switch to gettext copyright.
29285         Use ANSI definitions and prototypes.
29286         Port to bison 3.0.
29287         * intl/textdomain.c: Switch to gettext copyright.
29288         Use ANSI definitions and prototypes.
29289         Use gl_* locking primitives rather than __libc_* ones.
29290
29291 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
29292
29293         * debug/warning-nop.c: Add used atrribute.
29294
29295 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29296
29297         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
29298
29299         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
29300         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
29301         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
29302
29303 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29304             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29305
29306         [BZ #17634]
29307         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
29308         Undefine after defining function.  Define as weak alias of
29309         __wcschr.  Use libc_hidden_weak.
29310         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
29311         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
29312         (libc_hidden_def): Also define __GI___wcschr alias.
29313         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
29314         __wcschr and define as weak alias of __wcschr.
29315         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
29316         __wcschr.
29317         [!WCSCHR] (DEFAULT_WCSCHR): Define.
29318         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
29319         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
29320         libc_hidden_weak.  Do not use libc_hidden_def.
29321         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
29322         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
29323         __GI___wcschr alias.
29324         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
29325         [IS_IN (libc)] (wcschr): Define as macro expanding to
29326         __redirect_wcschr.
29327         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
29328         [IS_IN (libc)] (__wcschr_power6): Likewise.
29329         [IS_IN (libc)] (__wcschr_power7): Likewise.
29330         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
29331         instead of wcschr.
29332         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
29333         __libc_wcschr.
29334         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
29335         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
29336         __wcschr and define as weak alias of __wcschr.  Use
29337         libc_hidden_builtin_def.
29338         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
29339         as weak alias of __wcschr.  Use libc_hidden_weak.
29340         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
29341         wcschr.
29342         * time/era.c (_nl_init_era_entries): Likewise.
29343         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
29344         variable.
29345         (test-xfail-XPG3/time.h/linknamespace): Likewise.
29346         (test-xfail-XPG4/time.h/linknamespace): Likewise.
29347
29348 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29349
29350         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
29351         format for long int variable.
29352
29353 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
29354
29355         [BZ #10672]
29356         * manual/search.texi: (Array Sort Function): Remove claim how to make
29357         qsort stable.
29358
29359 2014-12-10  Andreas Schwab  <schwab@suse.de>
29360
29361         [BZ #12847]
29362         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
29363         user-controlled locks.
29364
29365 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
29366
29367         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
29368         register.
29369
29370 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29371
29372         * configure.ac (--disable-werror): New configure option.
29373         (enable_werror): New AC_SUBST.
29374         * configure: Regenerated.
29375         * config.make.in (enable-werror): New variable.
29376         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
29377         -Wno-error=undef.
29378         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
29379         * manual/install.texi (Configuring and compiling): Document
29380         --disable-werror.
29381         * INSTALL: Regenerated.
29382         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
29383         (CFLAGS-tst-chk2.c): Likewise.
29384         (CFLAGS-tst-chk3.c): Likewise.
29385         (CFLAGS-tst-chk4.cc): Likewise.
29386         (CFLAGS-tst-chk5.cc): Likewise.
29387         (CFLAGS-tst-chk6.cc): Likewise.
29388         (CFLAGS-tst-lfschk1.c): Likewise.
29389         (CFLAGS-tst-lfschk2.c): Likewise.
29390         (CFLAGS-tst-lfschk3.c): Likewise.
29391         (CFLAGS-tst-lfschk4.cc): Likewise.
29392         (CFLAGS-tst-lfschk5.cc): Likewise.
29393         (CFLAGS-tst-lfschk6.cc): Likewise.
29394
29395         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
29396         (main): Disable -Wdeprecated-declarations around calls to
29397         register_printf_function.
29398
29399         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
29400         (do_test): Disable -Wdiv-by-zero around some calls to
29401         fwrite_unlocked and fread_unlocked.
29402
29403         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
29404         (DIAG_POP_NEEDS_COMMENT): Likewise.
29405         (_DIAG_STR1): Likewise.
29406         (_DIAG_STR): Likewise.
29407         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
29408         * stdio-common/bug21.c: Include <libc-internal.h>.
29409         (do_test): Disable -Wformat around call to sscanf.
29410         * stdio-common/scanf14.c: Include <libc-internal.h>.
29411         (main): Disable -Wformat around some calls to scanf functions.
29412
29413 2014-12-09  Torvald Riegel  <triegel@redhat.com>
29414
29415         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
29416
29417 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29418
29419         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
29420         stack variable alignment.
29421
29422 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
29423
29424         [BZ #17682]
29425         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
29426         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
29427         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
29428         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
29429         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
29430         __getrlimit instead of getrlimit.
29431         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
29432         __gettimeofday instead of gettimeofday.
29433         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
29434         Likewise.
29435         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
29436         Likewise.
29437         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29438         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
29439         Remove variable.
29440         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
29441         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
29442
29443 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29444
29445         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
29446         for wide-character tests.
29447
29448 2014-12-04  Roland McGrath  <roland@hack.frob.com>
29449
29450         * io/openat64.c: #include <libc-internal.h>
29451         (__openat64): Prototypify.  Use ignore_value on MODE.
29452         * io/openat.c: Likewise.
29453         * misc/reboot.c: #include <libc-internal.h>
29454         (reboot): Prototypify.  Use ignore_value on HOWTO.
29455         * misc/ptrace.c: #include <libc-internal.h>
29456         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
29457
29458 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
29459
29460         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
29461         XPG4, UNIX98 and XOPEN2K.
29462         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
29463         Remove variable.
29464         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
29465
29466 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
29467
29468         * libio/fileops.c: Use ISO C style for function definitions.
29469         * libio/iofopen.c: Likewise.
29470         * libio/wfileops.c: Likewise.
29471
29472         [BZ #17653]
29473         * libio/fileops.c (_IO_new_file_underflow): Unset cached
29474         offset on EOF.
29475         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
29476         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
29477         (fgets_func): Function pointer to fgets and fgetws.
29478         (do_ftell_test): Add test to verify ftell value after read
29479         EOF.
29480         (do_test): Set fgets_func.
29481
29482         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
29483         O_TRUNC flag for w and w+ modes.
29484         (do_rewind_test): Likewise.
29485         (do_ftell_test): Likewise.
29486         (do_write_test): Likewise.
29487
29488         [BZ #17647]
29489         * libio/fileops.c (do_ftell): Seek only when there are
29490         unflushed writes.
29491         * libio/wfileops.c (do_ftell_wide): Likewise.
29492         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
29493         test case.
29494         (do_one_test): Call it.
29495
29496 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
29497
29498         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
29499         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
29500         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
29501         Remove variable.
29502         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
29503         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
29504         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
29505
29506 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29507
29508         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
29509         Remove variable.
29510         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
29511
29512         [BZ #17668]
29513         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
29514         as weak alias of __getifaddrs.  Use libc_hidden_weak.
29515         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29516         __freeifaddrs.  Use libc_hidden_weak.
29517         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
29518         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
29519         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29520         __freeifaddrs.  Use libc_hidden_weak.
29521         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
29522         __getifaddrs and define as weak alias of __getifaddrs.  Use
29523         libc_hidden_weak.
29524         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29525         __freeifaddrs.  Use libc_hidden_weak.
29526         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
29527         Remove variable.
29528         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
29529         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
29530
29531 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
29532
29533         [BZ #17601]
29534         * sysdeps/mips/start.S (__start): Use indirect jump to call
29535         __libc_start_main.
29536
29537 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29538
29539         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
29540
29541         * nptl/tst-mutex1.c: Include <stdbool.h>.
29542         [!ATTR] (ATTR_NULL): New macro.
29543         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
29544         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
29545         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
29546
29547         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
29548         to char *.
29549
29550         [BZ #17665]
29551         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
29552         Change conditional to [__USE_MISC].
29553
29554         [BZ #17664]
29555         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
29556         fgets_unlocked.
29557         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
29558         __fgets_unlocked.
29559         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
29560         fgets_unlocked.
29561         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
29562         Remove variable.
29563         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
29564         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
29565         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
29566         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
29567         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
29568         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
29569         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
29570         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
29571         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
29572
29573         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
29574
29575 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29576
29577         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29578         Remove strpbrk objects.
29579         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29580         (__libc_ifunc_impl_list): Remove strpbrk implementation.
29581         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
29582         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
29583         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
29584         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
29585
29586         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29587         Remove strcspn objects.
29588         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29589         (__libc_ifunc_impl_list): Remove strcspn implementation.
29590         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
29591         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
29592         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
29593         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
29594
29595         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29596         Remove strspn objetcs.
29597         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29598         (__libc_ifunc_impl_list): Remove strspn implementation.
29599         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
29600         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
29601         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
29602         * sysdeps/powerpc/powerpc64/strspn.S: New file.
29603
29604 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
29605
29606         [BZ #17581]
29607         * malloc/hooks.c
29608         (mem2mem_check): Add a terminator to the chain of checking blocks.
29609         (malloc_check_get_size): Use it here.
29610         (mem2chunk_check): Ditto.
29611
29612 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29613
29614         * sysdeps/powerpc/powerpc64/strtok.S: New file.
29615         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
29616
29617 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
29618
29619         * bits/ioctl-types.h: Indent preprocessor directives correctly.
29620
29621         * nptl/nptl-init.c: Include libc-internal.h.
29622         (__pthread_initialize_minimal_internal): Use ROUND_UP.
29623
29624         * elf/ldconfig.c (search_dir): Expand comment.
29625
29626 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
29627
29628         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
29629         variable.
29630         (linknamespace-symlist-stdlibs-tests): Likewise.
29631         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
29632         instead of $(objpfx)symlist-stdlibs.
29633         (linknamespace-libs-isoc): New variable.
29634         (linknamespace-libs): Use $(linknamespace-libs-isoc).
29635         (linknamespace-libs-ISO): New variable.
29636         (linknamespace-libs-ISO99): Likewise.
29637         (linknamespace-libs-ISO11): Likewise.
29638         (linknamespace-libs-XPG3): Likewise.
29639         (linknamespace-libs-XPG4): Likewise.
29640         (linknamespace-libs-POSIX): Likewise.
29641         (linknamespace-libs-UNIX98): Likewise.
29642         (linknamespace-libs-XOPEN2K): Likewise.
29643         (linknamespace-libs-POSIX2008): Likewise.
29644         (linknamespace-libs-XOPEN2K8): Likewise.
29645         ($(objpfx)symlist-stdlibs): Replace by
29646         $(linknamespace-symlist-stdlibs-tests).  Use
29647         $(linknamespace-libs-$*) as set of libraries.
29648         ($(linknamespace-header-tests)): Update dependencies.  Use
29649         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
29650         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
29651         * conform/linknamespace.pl: Remove comment about considering
29652         definitions of symbols from irrelevant libraries.
29653
29654 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
29655
29656         [BZ #13862]
29657         * elf/dl-tls.c: Include <atomic.h>.
29658         (oom): Remove #ifdef SHARED/#endif.
29659         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
29660         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
29661         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
29662         big enough.
29663         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
29664         * nptl/Makefile (tests): Add tst-stack4.
29665         (modules-names): Add tst-stack4mod.
29666         ($(objpfx)tst-stack4): New.
29667         (tst-stack4mod.sos): Likewise.
29668         ($(objpfx)tst-stack4.out): Likewise.
29669         ($(tst-stack4mod.sos)): Likewise.
29670         (clean): Likewise.
29671         * nptl/tst-stack4.c: New file.
29672         * nptl/tst-stack4mod.c: Likewise.
29673
29674 2014-11-27  J. Brown  <jb999@gmx.de>
29675
29676         * sysdeps/x86/bits/string.h: Add recent CPUs.
29677
29678 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
29679
29680         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
29681         sigblock.
29682
29683         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
29684         feof.
29685
29686         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
29687         variable.
29688
29689 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
29690
29691         * nscd/connections.c: Include libc-internal.h because of macro
29692         usage ignore_value.
29693
29694 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
29695
29696         * string/bits/string3.h (__warn_memset_zero_len): Don't
29697         declare for gcc newer than 5.0.
29698         (memset): Don't test for zero-length __LEN for gcc newer than
29699         5.0.
29700
29701 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
29702
29703         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
29704         size_t for %zu format.
29705
29706         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
29707         difference, not %ju.
29708
29709 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
29710
29711         * include/libc-internal.h (ignore_value): New macro.
29712         * nscd/connections.c (restart): Wrap calls to setuid and setgid
29713         with ignore_value.
29714
29715         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
29716         definition.
29717
29718         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
29719         pthread_cleanup_push to void *.
29720
29721         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
29722         Undefine.
29723
29724         [BZ #16619]
29725         [BZ #16740]
29726         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
29727         instead of 1L << 52.
29728
29729         * libio/bug-rewind.c (do_test): Check fwscanf return values.
29730         * libio/bug-rewind2.c (do_test): Likewise.
29731
29732         * debug/test-stpcpy_chk-ifunc.c: Remove file.
29733         * debug/test-strcpy_chk-ifunc.c: Likewise.
29734         * wcsmbs/test-wcschr-ifunc.c: Likewise.
29735         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
29736         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
29737         * wcsmbs/test-wcslen-ifunc.c: Likewise.
29738         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
29739         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
29740         * Rules [$(multi-arch) = no] (tests): Do not filter out
29741         $(tests-ifunc).
29742         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
29743         * debug/Makefile (tests-ifunc): Remove variable.
29744         (tests): Do not add $(tests-ifunc).
29745         * wcsmbs/Makefile (tests-ifunc): Remove variable.
29746         (tests): Do not add $(tests-ifunc).
29747         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
29748         [TEST_IFUNC]: Remove conditionals.
29749         * string/test-string.h (TEST_IFUNC): Remove macro.
29750         [TEST_IFUNC]: Remove conditionals.
29751
29752         * string/test-strchr.c [!WIDE] (L): New macro.
29753         [WIDE] (L): Likewise.
29754         (check1): Use CHAR instead of char.  Use L on string and character
29755         constants.
29756
29757 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
29758
29759         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
29760         tests.
29761         * sysdeps/powerpc/bits/atomic.h
29762         (__arch_atomic_exchange_and_add_32_acq): Add definition.
29763         (__arch_atomic_exchange_and_add_32_rel): Likewise.
29764         (atomic_exchange_and_add_acq): Likewise.
29765         (atomic_exchange_and_add_rel): Likewise.
29766         * sysdeps/powerpc/powerpc32/bits/atomic.h
29767         (__arch_atomic_exchange_and_add_64_acq): Add definition.
29768         (__arch_atomic_exchange_and_add_64_rel): Likewise.
29769         * sysdeps/powerpc/powerpc64/bits/atomic.h
29770         (__arch_atomic_exchange_and_add_64_acq): Add definition.
29771         (__arch_atomic_exchange_and_add_64_rel): Likewise.
29772
29773 2014-11-26  Torvald Riegel  <triegel@redhat.com>
29774
29775         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
29776         Change synchronization of __sched_fifo_min_prio and
29777         __sched_fifo_max_prio.
29778         * nptl/pthread_mutexattr_getprioceiling.c
29779         (pthread_mutexattr_getprioceiling): Likewise.
29780         * nptl/pthread_mutexattr_setprioceiling.c
29781         (pthread_mutexattr_setprioceiling): Likewise.
29782         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
29783         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
29784         Likewise.
29785
29786 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
29787
29788         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
29789         void.
29790
29791 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
29792
29793         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
29794         third argument const.
29795
29796 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29797
29798         fnmatch: work around GCC compiler warning bug with uninit var
29799         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
29800         This works around a bug with x86-64 GCC 4.9.2 and earlier
29801         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
29802         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
29803         used uninitialized in this function [-Wmaybe-uninitialized]".
29804
29805 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
29806
29807         * posix/bug-regex31.c (main): Return RES not 0.
29808
29809 2014-11-25  Anton Blanchard <anton@samba.org>
29810
29811         * sysdeps/powerpc/bits/atomic.h
29812         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
29813
29814 2014-11-24  Sterling Augustine  <saugustine@google.com>
29815
29816         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
29817
29818 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
29819
29820         [BZ #17608]
29821         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
29822
29823 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
29824
29825         [BZ #17633]
29826         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
29827         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
29828         variable.
29829         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
29830         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
29831
29832 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
29833
29834         * string/strncpy.c (strncpy): Improve performance by using memset.
29835
29836 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
29837
29838         * string/strcpy.c (strcpy):
29839         Improve performance by using strlen and memcpy.
29840
29841 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
29842
29843         * string/strcoll_l.c (get_next_seq): __always_inline.
29844         * string/strcoll_l.c (do_compare): __always_inline.
29845
29846 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29847
29848         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
29849         defined.
29850         * include/mqueue.h: Likewise.
29851         * include/stdlib.h: Likewise.
29852
29853         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
29854         (get_null_defines): Adjust.
29855         * sunrpc/Makefile: Adjust comment.
29856         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
29857         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
29858         (CFLAGS-interp.c): Likewise.
29859         (CFLAGS-ldconfig.c): Likewise.
29860         (CPPFLAGS-.os): Likewise.
29861         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
29862         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
29863         * extra-modules.mk (extra-modules.mk): Likewise.
29864         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
29865         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
29866         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
29867         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
29868         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
29869         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
29870         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
29871         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
29872         * iconvdata/Makefile (CPPFLAGS): Likewise.
29873         (cpp-srcs-left): Add libof for all iconvdata routines.
29874         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
29875         * include/assert.h: Likewise.
29876         * include/ctype.h: Likewise.
29877         * include/errno.h: Likewise.
29878         * include/libc-symbols.h: Likewise.
29879         * include/math.h: Likewise.
29880         * include/netdb.h: Likewise.
29881         * include/resolv.h: Likewise.
29882         * include/stdio.h: Likewise.
29883         * include/stdlib.h: Likewise.
29884         * include/string.h: Likewise.
29885         * include/sys/stat.h: Likewise.
29886         * include/wctype.h: Likewise.
29887         * intl/l10nflist.c: Likewise.
29888         * libidn/idn-stub.c: Likewise.
29889         * libio/libioP.h: Likewise.
29890         * nptl/libc_multiple_threads.c: Likewise.
29891         * nptl/pthreadP.h: Likewise.
29892         * posix/regex_internal.h: Likewise.
29893         * resolv/res_hconf.c: Likewise.
29894         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
29895         * sysdeps/arm/memmove.S: Likewise.
29896         * sysdeps/arm/sysdep.h: Likewise.
29897         * sysdeps/generic/_itoa.h: Likewise.
29898         * sysdeps/generic/symbol-hacks.h: Likewise.
29899         * sysdeps/gnu/errlist.awk: Likewise.
29900         * sysdeps/gnu/errlist.c: Likewise.
29901         * sysdeps/i386/i586/memcpy.S: Likewise.
29902         * sysdeps/i386/i586/memset.S: Likewise.
29903         * sysdeps/i386/i686/memcpy.S: Likewise.
29904         * sysdeps/i386/i686/memmove.S: Likewise.
29905         * sysdeps/i386/i686/mempcpy.S: Likewise.
29906         * sysdeps/i386/i686/memset.S: Likewise.
29907         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
29908         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
29909         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
29910         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
29911         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
29912         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
29913         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
29914         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
29915         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
29916         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
29917         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
29918         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
29919         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
29920         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
29921         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
29922         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
29923         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
29924         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
29925         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
29926         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
29927         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
29928         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
29929         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
29930         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
29931         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
29932         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
29933         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
29934         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
29935         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
29936         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
29937         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
29938         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
29939         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
29940         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
29941         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
29942         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
29943         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
29944         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
29945         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
29946         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
29947         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
29948         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
29949         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
29950         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
29951         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
29952         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
29953         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
29954         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
29955         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
29956         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
29957         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
29958         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
29959         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
29960         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
29961         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
29962         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
29963         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
29964         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
29965         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
29966         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
29967         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
29968         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
29969         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
29970         * sysdeps/nptl/bits/libc-lock.h: Likewise.
29971         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
29972         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
29973         * sysdeps/posix/closedir.c: Likewise.
29974         * sysdeps/posix/opendir.c: Likewise.
29975         * sysdeps/posix/readdir.c: Likewise.
29976         * sysdeps/posix/rewinddir.c: Likewise.
29977         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
29978         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
29979         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
29980         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
29981         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
29982         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
29983         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
29984         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
29985         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
29986         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
29987         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
29988         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
29989         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
29990         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
29991         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
29992         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
29993         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
29994         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
29995         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
29996         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
29997         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
29998         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
29999         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
30000         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
30001         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
30002         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
30003         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
30004         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
30005         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
30006         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
30007         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
30008         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
30009         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
30010         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
30011         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
30012         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
30013         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
30014         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
30015         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
30016         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
30017         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
30018         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
30019         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
30020         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
30021         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
30022         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
30023         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
30024         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
30025         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
30026         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
30027         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
30028         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
30029         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
30030         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
30031         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
30032         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
30033         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
30034         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
30035         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
30036         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
30037         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
30038         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
30039         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
30040         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
30041         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
30042         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
30043         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
30044         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
30045         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
30046         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
30047         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
30048         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
30049         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
30050         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
30051         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
30052         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
30053         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
30054         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
30055         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
30056         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
30057         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
30058         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
30059         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
30060         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
30061         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
30062         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
30063         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
30064         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
30065         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
30066         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
30067         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
30068         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
30069         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
30070         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
30071         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30072         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
30073         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
30074         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30075         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
30076         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
30077         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30078         * sysdeps/unix/alpha/sysdep.S: Likewise.
30079         * sysdeps/unix/alpha/sysdep.h: Likewise.
30080         * sysdeps/unix/make-syscalls.sh: Likewise.
30081         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30082         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30083         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30084         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
30085         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30086         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
30087         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
30088         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30089         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30090         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
30091         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30092         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30093         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30094         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30095         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30096         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
30097         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30098         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30099         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30100         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30101         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
30102         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30103         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30104         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30105         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30106         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30107         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30110         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
30111         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30112         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30113         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
30114         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30115         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
30116         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30117         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
30118         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30119         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
30120         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
30121         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30122         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30123         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30124         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
30125         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30126         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30127         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30128         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30129         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30130         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30131         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30132         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30133         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30134         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30135         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
30136         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30137         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30138         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30139         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
30140         * sysdeps/x86_64/memcpy.S: Likewise.
30141         * sysdeps/x86_64/memmove.c: Likewise.
30142         * sysdeps/x86_64/memset.S: Likewise.
30143         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
30144         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
30145         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
30146         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
30147         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
30148         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
30149         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
30150         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
30151         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
30152         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
30153         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
30154         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
30155         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
30156         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30157         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30158         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
30159         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
30160         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
30161         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30162         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
30163         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
30164         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
30165         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30166         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30167         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
30168         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
30169         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
30170         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
30171         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
30172         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
30173         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
30174         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
30175         * sysdeps/x86_64/strcmp.S: Likewise.
30176
30177         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
30178
30179         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
30180         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
30181         * elf/rtld-Rules: Likewise.
30182         * elf/setup-vdso.h: Likewise.
30183         * include/assert.h: Likewise.
30184         * include/bits/stdlib-float.h: Likewise.
30185         * include/errno.h: Likewise.
30186         * include/sys/stat.h: Likewise.
30187         * include/unistd.h: Likewise.
30188         * sysdeps/aarch64/setjmp.S: Likewise.
30189         * sysdeps/alpha/setjmp.S: Likewise.
30190         * sysdeps/arm/__longjmp.S: Likewise.
30191         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
30192         * sysdeps/arm/setjmp.S: Likewise.
30193         * sysdeps/arm/sysdep.h: Likewise.
30194         * sysdeps/generic/_itoa.h: Likewise.
30195         * sysdeps/generic/dl-sysdep.h: Likewise.
30196         * sysdeps/generic/ldsodefs.h: Likewise.
30197         * sysdeps/i386/dl-tls.h: Likewise.
30198         * sysdeps/i386/setjmp.S: Likewise.
30199         * sysdeps/m68k/setjmp.c: Likewise.
30200         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
30201         * sysdeps/mach/hurd/opendir.c: Likewise.
30202         * sysdeps/posix/getcwd.c: Likewise.
30203         * sysdeps/posix/opendir.c: Likewise.
30204         * sysdeps/posix/profil.c: Likewise.
30205         * sysdeps/powerpc/dl-procinfo.h: Likewise.
30206         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
30207         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
30208         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
30209         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
30210         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
30211         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
30212         * sysdeps/s390/dl-tls.h: Likewise.
30213         * sysdeps/s390/s390-32/setjmp.S: Likewise.
30214         * sysdeps/s390/s390-64/setjmp.S: Likewise.
30215         * sysdeps/sh/sh3/setjmp.S: Likewise.
30216         * sysdeps/sh/sh4/setjmp.S: Likewise.
30217         * sysdeps/unix/alpha/sysdep.h: Likewise.
30218         * sysdeps/unix/arm/sysdep.S: Likewise.
30219         * sysdeps/unix/i386/sysdep.S: Likewise.
30220         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30221         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
30222         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30223         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30224         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30225         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30226         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
30227         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30228         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30229         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30230         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
30231         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30232         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30235         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30236         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30237         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30238         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30239         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30240         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30241         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30242         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30243         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30244         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30245         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30246         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30247         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30248         * sysdeps/x86_64/setjmp.S: Likewise.
30249
30250         * include/math.h: Use IS_IN instead of IS_IN_libm.
30251         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
30252         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30253         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
30254         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
30255         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30256         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
30257         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
30258         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30259         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30260         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
30261         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
30262         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
30263         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
30264         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
30265         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
30266         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
30267         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30268         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
30269         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30270         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
30271         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
30272         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
30273         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
30274         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
30275         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
30276         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
30277         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
30278         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30279         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30280         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
30281         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
30282         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
30283         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
30284         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
30285         Likewise.
30286         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
30287         Likewise.
30288         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
30289         Likewise.
30290         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
30291         Likewise.
30292         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
30293         Likewise.
30294         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
30295         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
30296         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
30297         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
30298         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
30299         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
30300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
30301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
30302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
30303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
30304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
30305         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
30306         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
30307         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
30308         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
30309         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
30310         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
30311         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
30312         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
30313         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
30314         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
30315         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
30316         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
30317         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
30318         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
30319         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
30320         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
30321
30322         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
30323         * nptl/pthreadP.h: Likewise.
30324         * nptl_db/structs.def: Likewise.
30325         * sysdeps/arm/sysdep.h: Likewise.
30326         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30327         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30328         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
30329         * sysdeps/unix/alpha/sysdep.h: Likewise.
30330         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30331         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30332         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30333         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30334         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30335         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30336         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30337         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30338         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30339         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30340         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30341         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30342         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30343         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30346         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30347         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30348         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30349         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30350         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30351         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30352         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30353         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30354         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
30355         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30356
30357         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
30358         * nptl/pthreadP.h: Likewise.
30359         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30360         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30361         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30362         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30363         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30364         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30365         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30366         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30367         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30368         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30369         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30370         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
30372         Likewise.
30373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
30374         Likewise.
30375         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30376         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30377         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30378         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30379         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30380         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30381         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30382         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30383
30384         * dlfcn/dladdr.c: Use IS_IN.
30385         * dlfcn/dladdr1.c: Likewise.
30386         * dlfcn/dlclose.c: Likewise.
30387         * dlfcn/dlerror.c: Likewise.
30388         * dlfcn/dlinfo.c: Likewise.
30389         * dlfcn/dlmopen.c: Likewise.
30390         * dlfcn/dlopen.c: Likewise.
30391         * dlfcn/dlsym.c: Likewise.
30392         * dlfcn/dlvsym.c: Likewise.
30393
30394         * include/ifaddrs.h: Use IS_IN.
30395         * inet/check_pf.c: Likewise.
30396         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
30397         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
30398
30399         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
30400         IS_IN_ldconfig.
30401         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
30402         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
30403
30404         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
30405         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
30406         IS_IN (libc).
30407
30408         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
30409
30410         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
30411         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30412         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30413         * include/libc-symbols.h (IS_IN_LIB): New macro.
30414         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
30415         * include/netdb.h: Likewise.
30416         * include/stap-probe.h: Remove all uses of IN_LIB.
30417
30418         * Makeconfig (module-cppflags-real): Define MODULE_NAME
30419         instead of IN_MODULE.
30420         * include/libc-symbols.h (IN_MODULE): Define using
30421         MODULE_NAME.
30422         (PASTE_NAME, PASTE_NAME1): New macros.
30423         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
30424         of IN_LIB.
30425         (STAP_PROBE_ASM): Likewise.
30426
30427 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30428
30429         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
30430         __mach_init in dlopened libc.
30431
30432 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
30433
30434         * sysdeps/arm/preconfigure.ac: Delete EABI check.
30435         * sysdeps/arm/preconfigure: Regenerate.
30436
30437 2014-11-21  Roland McGrath  <roland@hack.frob.com>
30438
30439         * nptl/pthread_create.c (__pthread_create_2_1): Set
30440         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
30441         when copying values from IATTR into PD.
30442
30443 2014-11-21  Will Newton  <will.newton@linaro.org>
30444             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
30445
30446         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
30447         Refactor inline-asm.  Also add comment.
30448
30449         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
30450         ElfW macro instead of hardcoded Elf64 types.
30451         (la_aarch64_gnu_pltenter): Likewise.
30452         * sysdeps/aarch64/dl-machine.h
30453         (elf_machine_runtime_setup): Use ElfW(Addr).
30454
30455         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
30456         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
30457         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
30458         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
30459         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
30460         (R_AARCH64_TLS_DTPMOD64): Rename to ..
30461         (R_AARCH64_TLS_DTPMOD): This.
30462         (R_AARCH64_TLS_DTPREL64): Rename to ...
30463         (R_AARCH64_TLS_DTPREL): This.
30464         (R_AARCH64_TLS_TPREL64): Rename to ...
30465         (R_AARCH64_TLS_TPREL): This.
30466         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
30467         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
30468         R_AARCH64_TLS_TPREL64.
30469         (elf_machine_rela): Likewise.
30470
30471 2014-11-21  Torvald Riegel  <triegel@redhat.com>
30472
30473         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
30474         by setting it to 0.  64b atomics are not supported currently.
30475
30476 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30477
30478         [BZ #16469]
30479         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
30480         search domain names.
30481
30482 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30483
30484         [BZ #16469]
30485         * NEWS: Update.
30486         * resolv/res_query.c (__libc_res_nquerydomain): Retain
30487         trailing dot.
30488         * posix/tst-getaddrinfo5.c: New.
30489         * posix/Makefile (tests): Add it.
30490
30491 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30492
30493         [BZ #14498]
30494         * NEWS: Fixed.
30495         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
30496         after parsing line but before break_if_match.
30497         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
30498         if there is a protocol mismatch.
30499
30500 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
30501
30502         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
30503         because the potential race is on the user-supplied stream.
30504
30505 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30506
30507         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
30508         string literal if not passed a buffer.
30509         * manual/job.texi (ctermid): Update reasoning, note deviation
30510         from posix, suggest mtasurace when not passed a buffer, for
30511         future non-preliminary safety notes.
30512
30513 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30514
30515         * manual/users.texi (cuserid): Fix MT-Safety note for the case
30516         of not passing it a buffer.
30517         Reported by Peng Haitao.
30518
30519 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30520
30521         * manual/Makefile ($(objpfx)stamp-summary): Require
30522         check-safety.sh to pass.
30523         * manual/check-safety.sh: Wish for verification that every
30524         @deftypefn and @deftypefun is followed by a @safety remark.
30525
30526 2014-11-20  Roland McGrath  <roland@hack.frob.com>
30527
30528         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
30529
30530         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
30531         PTHREAD_CANCEL_ASYNCHRONOUS.
30532         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
30533         send SIGCANCEL.
30534
30535         * nptl/default-sched.h: New file.
30536         * sysdeps/unix/sysv/linux/default-sched.h: New file.
30537         * nptl/pthread_create.c: Include it.
30538         (__pthread_create_2_1): Use collect_default_sched instead of making
30539         Linux syscalls here directly.
30540
30541 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30542
30543         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
30544         __pthread_once): Use C11 atomics.
30545
30546 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30547
30548         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
30549
30550 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30551
30552         * include/atomic.h (__atomic_link_error, __atomic_check_size,
30553         atomic_thread_fence_acquire, atomic_thread_fence_release,
30554         atomic_thread_fence_seq_cst, atomic_load_relaxed,
30555         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
30556         atomic_compare_exchange_weak_relaxed,
30557         atomic_compare_exchange_weak_acquire,
30558         atomic_compare_exchange_weak_release,
30559         atomic_exchange_acquire, atomic_exchange_release,
30560         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
30561         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
30562         atomic_fetch_and_acquire,
30563         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
30564
30565 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30566
30567         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
30568         USE_ATOMIC_COMPILER_BUILTINS): Define.
30569         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
30570         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30571         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
30572         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30573         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
30574         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30575         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
30576         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30577         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
30578         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30579         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
30580         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30581         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
30582         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30583         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
30584         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30585         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30586         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30587         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30588         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30589         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
30590         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30591         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30592         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30593         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
30594         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30595         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30596         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30597         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
30598         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30599         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
30600         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30601         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
30602         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30603         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
30604         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30605         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
30606         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30607         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
30608         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30609
30610 2014-11-19  Roland McGrath  <roland@hack.frob.com>
30611
30612         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
30613         the sched_priority value here.  It was already checked when the user
30614         called pthread_attr_setschedparam.
30615
30616         * nptl/tst-bad-schedattr.c: New file.
30617         * nptl/Makefile (tests): Add it.
30618
30619 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
30620             Florian Weimer  <fweimer@redhat.com>
30621             Joseph Myers  <joseph@codesourcery.com>
30622             Adam Conrad  <adconrad@0c3.net>
30623             Andreas Schwab  <schwab@suse.de>
30624             Brooks  <bmoses@google.com>
30625
30626         [BZ #17625]
30627         * wordexp-test.c (__dso_handle): Add prototype.
30628         (__register_atfork): Likewise.
30629         (__app_register_atfork): New function.
30630         (registered_forks): New global.
30631         (register_fork): New function.
30632         (test_case): Add 3 new tests for WRDE_CMDSUB.
30633         (main): Call __app_register_atfork.
30634         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
30635         fork count is non-zero fail the test.
30636         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
30637         is set.
30638         (parse_dollars): Remove check for WRDE_NOCMD.
30639         (parse_dquote): Likewise.
30640
30641 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30642
30643         * Makeconfig (built-modules): List non-library modules to be
30644         built.
30645         (module-cppflags): Include libc-modules.h for
30646         everything except shlib-versions.v.i.
30647         (CPPFLAGS): Use it.
30648         (before-compile): Add libc-modules.h.
30649         ($(common-objpfx)libc-modules.h,
30650         $(common-objpfx)libc-modules.stmp): New targets.
30651         (common-generated): Add libc-modules.h and libc-modules.stmp.
30652         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
30653         * include/libc-symbols.h: Don't include libc-modules.h.
30654         * include/libc-modules.h: Remove file.
30655         * scripts/gen-libc-modules.awk: New script to generate
30656         libc-modules.h.
30657         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
30658         Depend on libc-modules.stmp.
30659
30660         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
30661
30662         * Makeconfig (in-module): Get value of libof set for the
30663         translation unit.
30664         (CPPFLAGS): Use $(in-module).
30665         * Makerules: Don't suffix routine names for nonlib.
30666         * include/libc-modules.h: New file.
30667         * include/libc-symbols.h: Include libc-modules.h
30668         (IS_IN): New macro to replace IS_IN_* macros.
30669         * elf/Makefile: Set libof-* for each routine.
30670         * elf/rtld-Rules: Likewise.
30671         * extra-modules.mk: Likewise.
30672         * iconv/Makefile: Likewise.
30673         * iconvdata/Makefile: Likewise.
30674         * locale/Makefile: Likewise.
30675         * malloc/Makefile: Likewise.
30676         * nss/Makefile: Likewise.
30677         * sysdeps/gnu/Makefile: Likewise.
30678         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
30679         * sysdeps/unix/sysv/linux/Makefile: Likewise.
30680         * sysdeps/s390/s390-64/Makefile: Likewise.
30681         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
30682         CPPFLAGS for nscd instead of nonlib.
30683
30684 2014-11-18  Roland McGrath  <roland@hack.frob.com>
30685
30686         * nptl/createthread.c: New file.
30687
30688         * nptl/createthread.c: Moved ...
30689         * sysdeps/unix/sysv/linux/createthread.c: ... here.
30690
30691         * nptl/createthread.c: Add proper top-line comment.
30692         (do_clone): Folded into ...
30693         (create_thread): ... here.  Take new arguments STOPPED_START and
30694         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
30695         increment __nptl_threads, do event-reporting logic, do
30696         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
30697         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
30698         resource cleanup if sched_setaffinity or sched_setscheduler fails,
30699         just send SIGCANCEL.
30700         * nptl/pthread_create.c: Forward-declare create_thread before
30701         including createthread.c.
30702         (start_thread): Use new macro START_THREAD_DEFN to replace defining
30703         declaration, and new macro START_THREAD_SELF to replace argument.
30704         Remove return statement.
30705         (report_thread_creation): New function.
30706         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
30707         synchronization logic, and __nptl_nthreads increment here, around
30708         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
30709         PD->parent_cancelhandling here, before create_thread.  When
30710         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
30711         __deallocate_stack, and ENOMEM translation here.
30712
30713 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
30714
30715         [BZ #17616]
30716         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
30717         (mptwo): Rename to __mptwo.
30718         (__inv): Use __mptwo instead of mptwo.
30719         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
30720         (mptwo): Rename to __mptwo.
30721         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
30722         of mpone and __mptwo instead of mptwo.
30723         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
30724         instead of mpone.
30725         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
30726         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
30727         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
30728         of mpone and __mptwo instead of mptwo.
30729         (__mpranred): Use __mpone instead of mpone.
30730         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
30731         variable.
30732         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
30733         (test-xfail-ISO99/math.h/linknamespace): Likewise.
30734         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
30735         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
30736         (test-xfail-ISO11/math.h/linknamespace): Likewise.
30737         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
30738         (test-xfail-XPG3/math.h/linknamespace): Likewise.
30739         (test-xfail-XPG4/math.h/linknamespace): Likewise.
30740         (test-xfail-POSIX/math.h/linknamespace): Likewise.
30741         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
30742         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
30743         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
30744         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
30745         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
30746         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
30747         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
30748         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
30749         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
30750         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
30751
30752 2014-11-18  Tom de Vries  <tom@codesoucery.com>
30753
30754         * manual/signal.texi (Primitives Interrupted by Signals): In section,
30755         replace BSD Handler xref with BSD Signal Handling.
30756
30757 2014-11-17  Richard Henderson  <rth@redhat.com>
30758
30759         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
30760         (_FP_PACK_RAW_2): Remove.
30761         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
30762         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
30763         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
30764         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
30765         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
30766         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
30767         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
30768         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
30769         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
30770         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
30771         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
30772         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
30773         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
30774         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
30775         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
30776         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
30777
30778 2014-11-14  Roland McGrath  <roland@hack.frob.com>
30779
30780         * signal/signal.h [__USE_MISC]
30781         (struct sigvec): Remove type.
30782         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
30783         (sigvec): Remove declaration.
30784         * sysdeps/posix/sigvec.c: Moved ...
30785         * signal/sigvec.c: ... here, replacing old file.
30786         (struct sigvec): New type, copied from old signal.h definition.
30787         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
30788         (__sigvec): Convert definition to prototype.
30789         (sigvec): Replace weak_alias with compat_symbol.
30790         * signal/Versions (libc: GLIBC_2.21): New version set.
30791         * include/signal.h: Remove __sigvec declaration.
30792         * sysdeps/unix/bsd/sigvec.c: Remove file.
30793         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
30794         * manual/signal.texi (BSD Handler): Remove subsection.
30795         Move siginterrupt up to ...
30796         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
30797         (Blocking in BSD): Fold subsection into its parent.
30798         * NEWS: Mention sigvec removal.
30799
30800 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
30801
30802         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
30803         (DLA_FMS): Make definition conditional only on [__FMA4__].
30804         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
30805         definition.
30806
30807         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
30808         Make definition conditional only on [PROF].
30809         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
30810         definition.
30811         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
30812         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
30813
30814         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
30815         !__GNUC__].
30816         * include/signal.h (__sigpause): Move declaration above call to
30817         libc_hidden_proto.
30818         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
30819         variable.
30820         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
30821         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
30822
30823 2014-11-14  David S. Miller  <davem@davemloft.net>
30824
30825         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
30826         Define before including <string/memcpy.c> and <string/mempcpy.c>.
30827
30828 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
30829
30830         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
30831         * configure: Regenerated.
30832         * manual/install.texi (Tools for Compilation): Document a
30833         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
30834         compiler verified to work.
30835         * INSTALL: Regenerated.
30836
30837         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
30838         redeclare with asm name.
30839         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
30840         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
30841         including <string.h>.
30842         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
30843         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
30844         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
30845         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
30846         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
30847         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
30848         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
30849
30850 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
30851
30852         * stdlib/strtol.c (__strtol): Use prototype definition.
30853
30854         [BZ #17594]
30855         * stdlib/strtol.c (SYM__): New macro.
30856         (SYM__1): Likewise.
30857         (__strtol): Likewise.
30858         (strtol): Rename to __strtol and define as weak alias of
30859         __strtol.  Use libc_hidden_weak.
30860
30861 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30862
30863         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
30864         Use numbered labels in inline assembly.
30865
30866 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30867
30868         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
30869         Add setjmp LIBC_PROBE.
30870         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
30871         Likewise.
30872         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
30873         Add longjmp, longjmp_target LIBC_PROBE.
30874         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
30875         Likewise.
30876
30877 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30878
30879         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
30880         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
30881         to get rid of unused variable warning.
30882
30883 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30884
30885         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
30886         Check for unwind_backtrace ==  NULL only in SHARED case.
30887         (__backchain_backtrace): Compile only in SHARED case.
30888         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
30889         Likewise.
30890         (__backchain_backtrace): Declare as static.
30891
30892 2014-11-12  Roland McGrath  <roland@hack.frob.com>
30893
30894         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
30895         (__libc_multiple_threads_ptr): Variable moved ...
30896         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
30897
30898 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
30899
30900         * conform/GlibcConform.pm: New file.
30901         * conform/conformtest.pl: Use GlibcConform module.
30902         * conform/linknamespace.pl: New file.
30903         * conform/list-header-symbols.pl: Likewise.
30904         * conform/Makefile (linknamespace-symlists-base): New variable.
30905         (linknamespace-symlists-tests): Likewise.
30906         (linknamespace-header-base): Likewise.
30907         (linknamespace-header-tests): Likewise.
30908         (tests-special): Add new tests.
30909         ($(linknamespace-symlists-tests)): New rule.
30910         (linknamespace-libs): New variable.
30911         ($(objpfx)symlist-stdlibs): New rule.
30912         ($(linknamespace-header-tests)): Likewise.
30913         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
30914         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
30915         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
30916         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
30917         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
30918         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
30919         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
30920         (test-xfail-ISO/math.h/linknamespace): Likewise.
30921         (test-xfail-ISO/signal.h/linknamespace): Likewise.
30922         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
30923         (test-xfail-ISO/time.h/linknamespace): Likewise.
30924         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
30925         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
30926         (test-xfail-ISO99/math.h/linknamespace): Likewise.
30927         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
30928         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
30929         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
30930         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
30931         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
30932         (test-xfail-ISO11/math.h/linknamespace): Likewise.
30933         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
30934         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
30935         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
30936         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
30937         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
30938         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
30939         (test-xfail-XPG3/math.h/linknamespace): Likewise.
30940         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
30941         (test-xfail-XPG3/search.h/linknamespace): Likewise.
30942         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
30943         (test-xfail-XPG3/time.h/linknamespace): Likewise.
30944         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
30945         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
30946         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
30947         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
30948         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
30949         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
30950         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
30951         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
30952         (test-xfail-XPG4/math.h/linknamespace): Likewise.
30953         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
30954         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
30955         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
30956         (test-xfail-XPG4/search.h/linknamespace): Likewise.
30957         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
30958         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
30959         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
30960         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
30961         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
30962         (test-xfail-XPG4/time.h/linknamespace): Likewise.
30963         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
30964         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
30965         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
30966         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
30967         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
30968         (test-xfail-POSIX/math.h/linknamespace): Likewise.
30969         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
30970         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
30971         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
30972         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
30973         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
30974         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
30975         (test-xfail-POSIX/time.h/linknamespace): Likewise.
30976         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
30977         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
30978         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
30979         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
30980         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
30981         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
30982         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
30983         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
30984         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
30985         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
30986         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
30987         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
30988         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
30989         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
30990         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
30991         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
30992         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
30993         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
30994         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
30995         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
30996         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
30997         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
30998         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
30999         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
31000         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
31001         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
31002         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31003         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
31004         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31005         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
31006         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
31007         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31008         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31009         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
31010         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
31011         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31012         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
31013         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
31014         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
31015         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
31016         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
31017         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31018         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
31019         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
31020         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
31021         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
31022         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
31023         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
31024         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
31025         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
31026         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
31027         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31028         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
31029         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
31030         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
31031         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31032         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
31033         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31034         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
31035         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
31036         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
31037         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
31038         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31039         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
31040         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
31041         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
31042         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
31043         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31044         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
31045         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
31046         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
31047         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
31048         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31049         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
31050         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
31051         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
31052         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31053         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
31054         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
31055         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
31056         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
31057         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
31058         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31059         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
31060         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
31061         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
31062         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
31063         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
31064         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31065         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
31066         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
31067         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
31068         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
31069         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
31070         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
31071         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31072         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
31073         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31074
31075         [BZ #17589]
31076         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
31077         of fgets_unlocked.
31078
31079         [BZ #17585]
31080         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
31081         (memmem): Rename to __memmem and define as weak alias of
31082         __memmem.  Use libc_hidden_weak.
31083         (__memmem): Use libc_hidden_def.
31084         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
31085         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
31086         memmem.
31087
31088         [BZ #17582]
31089         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
31090         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
31091         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
31092         and define as weak alias of __fgets_unlocked.  Use
31093         libc_hidden_weak.
31094         (__fgets_unlocked): Use libc_hidden_def.
31095         * include/stdio.h (__fgets_unlocked): Declare.  Use
31096         libc_hidden_proto.
31097         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
31098         __fgets_unlocked instead of fgets_unlocked.
31099         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
31100         (GET_NPROCS_CONF_PARSER): Likewise.
31101         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
31102         (GET_NPROCS_CONF_PARSER): Likewise.
31103
31104         [BZ #17574]
31105         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
31106         weak alias of __wmemset.  Use libc_hidden_weak.
31107         (__wmemset): Use libc_hidden_def.
31108         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
31109         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
31110         of wmemset.
31111
31112         [BZ #17573]
31113         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
31114         with asm name __mempcpy.
31115         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
31116
31117         [BZ #17572]
31118         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
31119         and define as weak alias of __rawmemchr.
31120         (__rawmemchr): Do not define as strong alias of rawmemchr.
31121
31122         [BZ #17571]
31123         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
31124         alias of __qsort_r.
31125         (qsort): Call __qsort_r instead of qsort_r.
31126         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
31127         (__qsort_r): Declare.  Call libc_hidden_proto.
31128         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
31129         instead of qsort_r.
31130         * nscd/gai.c (__qsort_r): Define to qsort_r.
31131         * posix/tst-rfc3484.c (__qsort_r): Likewise.
31132         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
31133         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
31134
31135         [BZ #17570]
31136         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
31137         define as weak alias of __malloc_info.
31138
31139         [BZ #17584]
31140         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
31141         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31142         (__rewinddir): Use libc_hidden_def.
31143         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
31144         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31145         (__rewinddir): Use libc_hidden_def.
31146         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
31147         weak alias of __rewinddir.  Don't use libc_hidden_def.
31148         (__rewinddir): Use libc_hidden_def.
31149         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
31150         (__rewinddir): Use libc_hidden_proto.
31151         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
31152         rewinddir.
31153         (__getcwd): Use __rewinddir instead of rewinddir.
31154
31155         [BZ #17583]
31156         * libio/fileno.c (fileno): Rename to __fileno and define as weak
31157         alias of __fileno.  Use libc_hidden_weak.
31158         (__fileno): Use libc_hidden_def.
31159         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
31160         * libio/ftello.c (ftello): Rename to __ftello and define as weak
31161         alias of __ftello.
31162         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
31163         __ftello.
31164         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
31165         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
31166         libc_hidden_def.
31167         (fread_unlocked): Don't use libc_hidden_ver.
31168         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
31169         and define as weak alias of __fread_unlocked.  Don't use
31170         libc_hidden_def.
31171         (__fread_unlocked): Use libc_hidden_def.
31172         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
31173         (ftello): Don't use libc_hidden_proto.
31174         (__ftello): Declare.  Use libc_hidden_proto.
31175         (fread_unlocked): Don't use libc_hidden_proto.
31176         (__fread_unlocked): Declare.  Use libc_hidden_proto.
31177         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
31178         and __ftello instead of fileno, fread_unlocked and ftello.
31179
31180 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
31181
31182         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
31183         GOT12.
31184         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
31185         Likewise.
31186         (_dl_start_user): Likewise.
31187         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
31188
31189 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
31190             Siddhesh Poyarekar  <siddhesh@redhat.com>
31191
31192         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
31193         Move argv and envp down instead of moving argc up.
31194         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
31195
31196 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
31197
31198         [BZ #17506]
31199         * test-skeleton.c (main): Return successful if one of
31200         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
31201         * string/tst-strcoll-overflow.c: Define expected status.
31202
31203 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
31204
31205         [BZ #17475]
31206         * locale/iso-639.def: Define Bhili and Tulu language codes.
31207
31208 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
31209
31210         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
31211
31212 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
31213
31214         [BZ #17555]
31215         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
31216
31217 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
31218
31219         * configure.ac: Updated check of minimal required version to
31220         2.22.
31221         * manual/install.texi (Tools for Compilation): Updated version
31222         number.
31223         * configure: Regenerated.
31224         * INSTALL: Likewise.
31225
31226 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
31227
31228         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
31229         __tls_get_addr.
31230
31231 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
31232
31233         * include/sys/wait.h (__libc_waitpid): Remove declaration.
31234         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
31235         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31236         libc_hidden_weak.
31237         (waitpid): Define as alias of __waitpid.
31238         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
31239         __waitpid.
31240         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31241         libc_hidden_weak.
31242         (waitpid): Define as alias of __waitpid.
31243         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
31244         __libc_waitpid alias.
31245         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
31246         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
31247         Likewise.
31248         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
31249         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
31250         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
31251         alias.
31252         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
31253         __waitpid.
31254         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31255         libc_hidden_weak.
31256         (waitpid): Define as alias of __waitpid.
31257
31258 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
31259
31260         * manual/llio.texi: Add comment that write safety has been
31261         fixed in Linux.
31262
31263         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
31264         (localplt-build-dso): Add elf/ld.so.
31265         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
31266         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
31267         and free for ld.so.
31268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
31269         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
31270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
31271         Likewise.
31272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
31273         Likewise.
31274         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
31275         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
31276         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
31277         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
31278         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
31279         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
31280         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
31281         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
31282         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
31283         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
31284         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
31285
31286 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
31287
31288         [BZ #14132]
31289         * include/libc-symbols.h (INTUSE): Remove macro.
31290         (INTDEF): Likewise.
31291         (INTVARDEF): Likewise.
31292         (_INTVARDEF): Likewise.
31293         (INTDEF2): Likewise.
31294         (INTVARDEF2): Likewise.
31295         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
31296         rtld_hidden_def instead of INTVARDEF.
31297         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
31298         (_dl_starting_up_internal): Remove declaration.
31299         (_dl_starting_up): Use rtld_hidden_proto.
31300         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
31301         declaration.
31302         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
31303         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
31304         _dl_starting_up.
31305         * elf/dl-writev.h (_dl_writev): Likewise.
31306         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
31307         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
31308         _dl_starting_up_internal.
31309
31310 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31311
31312         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
31313         test-skeleton.c.
31314
31315 2014-11-05  Will Newton  <will.newton@linaro.org>
31316
31317         * benchtests/Makefile: (bench-malloc): Add malloc thread
31318         scalability benchmark.
31319         * benchtests/bench-malloc-threads.c: New file.
31320
31321 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
31322
31323         * sysdeps/aarch64/strchrnul.S: New file.
31324
31325 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31326
31327         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
31328         definition.
31329         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
31330         Likwise.
31331         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
31332         Likewise.
31333         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
31334         Likewise.
31335         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
31336         Likewise.
31337         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
31338         Likewise.
31339
31340 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
31341
31342         * catgets/test-gencat.c: Use test-skeleton.c.
31343         * catgets/tst-catgets.c: Likewise.
31344         * csu/tst-empty.c: Likewise.
31345         * elf/tst-audit2.c: Likewise.
31346         * elf/tst-global1.c: Likewise.
31347         * elf/tst-pathopt.c: Likewise.
31348         * elf/tst-piemod1.c: Likewise.
31349         * elf/tst-tls10.c: Likewise.
31350         * elf/tst-tls11.c: Likewise.
31351         * elf/tst-tls12.c: Likewise.
31352         * gnulib/tst-gcc.c: Likewise.
31353         * iconvdata/tst-e2big.c: Likewise.
31354         * iconvdata/tst-loading.c: Likewise.
31355         * iconv/tst-iconv1.c: Likewise.
31356         * iconv/tst-iconv2.c: Likewise.
31357         * inet/test-inet6_opt.c: Likewise.
31358         * inet/tst-gethnm.c: Likewise.
31359         * inet/tst-network.c: Likewise.
31360         * inet/tst-ntoa.c: Likewise.
31361         * intl/tst-codeset.c: Likewise.
31362         * intl/tst-gettext2.c: Likewise.
31363         * intl/tst-gettext3.c: Likewise.
31364         * intl/tst-ngettext.c: Likewise.
31365         * intl/tst-translit.c: Likewise.
31366         * io/test-stat.c: Likewise.
31367         * libio/test-fmemopen.c: Likewise.
31368         * libio/tst-freopen.c: Likewise.
31369         * libio/tst-sscanf.c: Likewise.
31370         * libio/tst-ungetwc1.c: Likewise.
31371         * libio/tst-ungetwc2.c: Likewise.
31372         * libio/tst-widetext.c: Likewise.
31373         * localedata/tst-ctype.c: Likewise.
31374         * localedata/tst-digits.c: Likewise.
31375         * localedata/tst-leaks.c: Likewise.
31376         * localedata/tst-mbswcs1.c: Likewise.
31377         * localedata/tst-mbswcs2.c: Likewise.
31378         * localedata/tst-mbswcs3.c: Likewise.
31379         * localedata/tst-mbswcs4.c: Likewise.
31380         * localedata/tst-mbswcs5.c: Likewise.
31381         * localedata/tst-setlocale.c: Likewise.
31382         * localedata/tst-trans.c: Likewise.
31383         * localedata/tst-wctype.c: Likewise.
31384         * localedata/tst-xlocale1.c: Likewise.
31385         * login/tst-grantpt.c: Likewise.
31386         * malloc/tst-calloc.c: Likewise.
31387         * malloc/tst-malloc.c: Likewise.
31388         * malloc/tst-mallocstate.c: Likewise.
31389         * malloc/tst-mcheck.c: Likewise.
31390         * malloc/tst-mtrace.c: Likewise.
31391         * malloc/tst-obstack.c: Likewise.
31392         * math/atest-exp2.c: Likewise.
31393         * math/atest-exp.c: Likewise.
31394         * math/atest-sincos.c: Likewise.
31395         * math/test-matherr.c: Likewise.
31396         * math/test-misc.c: Likewise.
31397         * math/test-powl.c: Likewise.
31398         * math/tst-definitions.c: Likewise.
31399         * misc/tst-dirname.c: Likewise.
31400         * misc/tst-efgcvt.c: Likewise.
31401         * misc/tst-fdset.c: Likewise.
31402         * misc/tst-hsearch.c: Likewise.
31403         * misc/tst-mntent2.c: Likewise.
31404         * nptl/tst-sem7.c: Likewise.
31405         * nptl/tst-sem8.c: Likewise.
31406         * nptl/tst-sem9.c: Likewise.
31407         * nss/test-netdb.c: Likewise.
31408         * posix/tst-fnmatch.c: Likewise.
31409         * posix/tst-getlogin.c: Likewise.
31410         * posix/tst-gnuglob.c: Likewise.
31411         * posix/tst-mmap.c: Likewise.
31412         * pwd/tst-getpw.c: Likewise.
31413         * resolv/tst-inet_ntop.c: Likewise.
31414         * rt/tst-timer.c: Likewise.
31415         * stdio-common/test-fseek.c: Likewise.
31416         * stdio-common/test-popen.c: Likewise.
31417         * stdio-common/test-vfprintf.c: Likewise.
31418         * stdio-common/tst-cookie.c: Likewise.
31419         * stdio-common/tst-fileno.c: Likewise.
31420         * stdio-common/tst-gets.c: Likewise.
31421         * stdio-common/tst-obprintf.c: Likewise.
31422         * stdio-common/tst-perror.c: Likewise.
31423         * stdio-common/tst-sprintf2.c: Likewise.
31424         * stdio-common/tst-sprintf3.c: Likewise.
31425         * stdio-common/tst-sprintf.c: Likewise.
31426         * stdio-common/tst-swprintf.c: Likewise.
31427         * stdio-common/tst-tmpnam.c: Likewise.
31428         * stdio-common/tst-unbputc.c: Likewise.
31429         * stdio-common/tst-wc-printf.c: Likewise.
31430         * stdlib/tst-environ.c: Likewise.
31431         * stdlib/tst-fmtmsg.c: Likewise.
31432         * stdlib/tst-limits.c: Likewise.
31433         * stdlib/tst-rand48-2.c: Likewise.
31434         * stdlib/tst-rand48.c: Likewise.
31435         * stdlib/tst-random2.c: Likewise.
31436         * stdlib/tst-random.c: Likewise.
31437         * stdlib/tst-strtol.c: Likewise.
31438         * stdlib/tst-strtoll.c: Likewise.
31439         * stdlib/tst-tls-atexit.c: Likewise.
31440         * stdlib/tst-xpg-basename.c: Likewise.
31441         * string/test-ffs.c: Likewise.
31442         * string/tst-bswap.c: Likewise.
31443         * string/tst-inlcall.c: Likewise.
31444         * string/tst-strtok.c: Likewise.
31445         * string/tst-strxfrm.c: Likewise.
31446         * sysdeps/x86_64/tst-audit10.c: Likewise.
31447         * sysdeps/x86_64/tst-audit3.c: Likewise.
31448         * sysdeps/x86_64/tst-audit4.c: Likewise.
31449         * sysdeps/x86_64/tst-audit5.c: Likewise.
31450         * time/tst-ftime_l.c: Likewise.
31451         * time/tst-getdate.c: Likewise.
31452         * time/tst-mktime3.c: Likewise.
31453         * time/tst-mktime.c: Likewise.
31454         * time/tst-posixtz.c: Likewise.
31455         * time/tst-strptime2.c: Likewise.
31456         * time/tst-strptime3.c: Likewise.
31457         * wcsmbs/tst-btowc.c: Likewise.
31458         * wcsmbs/tst-mbrtowc.c: Likewise.
31459         * wcsmbs/tst-mbsrtowcs.c: Likewise.
31460         * wcsmbs/tst-wchar-h.c: Likewise.
31461         * wcsmbs/tst-wcpncpy.c: Likewise.
31462         * wcsmbs/tst-wcrtomb.c: Likewise.
31463         * wcsmbs/tst-wcsnlen.c: Likewise.
31464         * wcsmbs/tst-wcstof.c: Likewise.
31465
31466 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
31467
31468         [BZ #14132]
31469         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
31470         INTDEF.
31471         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
31472         declaration.
31473         (_dl_mcount): Use rtld_hidden_proto.
31474         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
31475         _dl_mcount.
31476         * elf/rtld.c (_rtld_global_ro): Likewise.
31477
31478         [BZ #14132]
31479         * elf/dl-init.c (_dl_init): Don't use INTDEF.
31480         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
31481         of _dl_init_internal.
31482         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
31483         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
31484         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
31485         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
31486         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
31487         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
31488         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
31489         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
31490         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
31491         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
31492         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
31493         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
31494         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
31495         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
31496         * sysdeps/tile/dl-start.S (_start): Likewise.
31497         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
31498         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
31499
31500         [BZ #14132]
31501         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
31502         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
31503         (rtld_progname): Make macro definition unconditional.
31504         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
31505         INTDEF.
31506         (dlmopen_doit): Do not use INTUSE with _dl_argv.
31507         (dl_main): Likewise.
31508         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
31509         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
31510         instead of _dl_argv_internal.
31511         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
31512         __GI__dl_argv instead of INTUSE(_dl_argv).
31513         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
31514         __GI__dl_argv instead of _dl_argv_internal.
31515
31516         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
31517         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
31518         macro.
31519         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
31520         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
31521         New macro.
31522         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
31523         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
31524         macro.
31525         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
31526         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
31527
31528 2014-11-04  Andreas Schwab  <schwab@suse.de>
31529
31530         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
31531
31532 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31533
31534         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
31535         mtvsrd instruction in binary form.
31536
31537 2014-11-03  Andreas Schwab  <schwab@suse.de>
31538
31539         [BZ #17522]
31540         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
31541         for less than MB_LEN_MAX use a local buffer of that size.
31542         * libio/tst-fputws.c: New file.
31543         * libio/Makefile (tests): Add tst-fputws.
31544
31545 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
31546
31547         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
31548         the size of the fpu_fr.fpu_dregs[] array.
31549
31550 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
31551
31552         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
31553         (__nanosleep): Do not define as alias.
31554         (nanosleep): Define as alias of __nanosleep.
31555         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
31556         __libc_nanosleep name.
31557
31558 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31559
31560         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
31561         install.texi in comment.
31562
31563 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31564
31565         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
31566         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
31567         ... add here and use lwsync or sync ...
31568         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
31569         ... and add here using lwsync.
31570
31571 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
31572
31573         * elf/dl-machine-reject-phdr.h: New file.
31574         * elf/dl-load.c: #include that.
31575         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
31576         if that returned true.
31577
31578 2014-10-31  Roland McGrath  <roland@hack.frob.com>
31579
31580         [BZ #17496]
31581         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
31582         gen-as-const-headers chunk.  Add a big scare comment after the last
31583         safe place to touch before-compile.
31584
31585 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31586
31587         * manual/install.texi (Tools for Compilation): Update autoconf
31588         version requirements.
31589         * INSTALL: Regenerated.
31590
31591         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
31592         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
31593         (__libc_pselect): Likewise.
31594
31595         [BZ #14138]
31596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
31597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31600
31601 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31602
31603         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
31604         correct barrier instruction.
31605         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
31606         Likewise.
31607         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
31608         Likewise.
31609
31610 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31611
31612         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
31613         after defining inlines.  Instead, just use parens to defeat macro
31614         expansion of __isctype in its declaration.
31615
31616 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31617
31618         * include/sys/uio.h (__libc_readv): Remove declaration.
31619         (__libc_writev): Likewise.
31620         * misc/readv.c (__libc_readv): Rename to __readv.
31621         (__readv): Do not define as alias.
31622         (readv): Define as alias of __readv.
31623         * misc/writev.c (__libc_writev): Rename to __writev.
31624         (__writev): Do not define as alias.
31625         (writev): Define as alias of __writev.
31626         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
31627         (__readv): Do not define as alias.
31628         (readv): Define unconditionally as alias of __readv.
31629         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
31630         (__writev): Do not define as alias.
31631         (writev): Define unconditionally as alias of __writev.
31632         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
31633         name.
31634         (writev): Do not define __libc_writev name.
31635
31636 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31637
31638         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
31639         (convert_charseq): New function, broken out of ...
31640         (use_from_charmap): ... here.  Call it.
31641         (use_to_charmap): Use convert_charseq and free instead of duplicating
31642         its code with a variable-length stack struct.
31643
31644 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31645
31646         * include/fcntl.h (__libc_creat): Remove declaration.
31647         * io/creat.c (__libc_creat): Rename to creat.
31648         (creat): Do not define as alias.
31649         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
31650         of creat instead of __libc_creat.
31651         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
31652         to creat.
31653         (creat): Do not define as alias.
31654         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
31655         __libc_creat.
31656         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
31657         __libc_creat name.
31658         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
31659         Likewise.
31660
31661 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
31662
31663         * manual/llio.texi: Add comments discussing why write() may be
31664         considered MT-unsafe on Linux.
31665
31666 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
31667
31668         * dl-load.c (local_strdup): Remove.
31669         (expand_dynamic_string_token): Use __strdup.
31670         (decompose_rpath): Likewise.
31671         (_dl_map_object): Likewise.
31672
31673 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
31674
31675         [BZ #14132]
31676         * sysdeps/generic/unwind-dw2-fde.c
31677         (__register_frame_info_bases_internal): Do not declare.
31678         (__register_frame_info_table_bases_internal): Likewise.
31679         (__deregister_frame_info_bases_internal): Likewise.
31680         (__register_frame_info_bases): Declare and use hidden_proto before
31681         definition.  Use hidden_def instead of INTDEF.
31682         (__register_frame_info_table_bases): Likewise.
31683         (__deregister_frame_info_bases): Likewise.
31684         (__register_frame_info): Do not use INTUSE.
31685         (__register_frame): Likewise.
31686         (__register_frame_info_table): Likewise.
31687         (__register_frame_table): Likewise.
31688         (__deregister_frame_info): Likewise.
31689         (__deregister_frame): Likewise.
31690
31691 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
31692
31693         * sysdeps/unix/sysv/linux/arm/kernel-features.h
31694         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
31695         not undefine.
31696         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
31697         Likewise.
31698         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
31699         Likewise.
31700
31701 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
31702
31703         [BZ #14138]
31704         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
31705         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
31706         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
31707         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
31708         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
31709         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
31710         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
31711         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
31712         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
31713         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
31714         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
31715         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
31716         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
31717         syscall.
31718         (setfsuid): Likewise.
31719         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
31720         (setfsuid): Likewise.
31721         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
31722         (setfsuid): Likewise.
31723         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
31724         Likewise.
31725         (setfsuid): Likewise.
31726         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
31727         (setfsuid): Likewise.
31728         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
31729         Likewise.
31730         (setfsuid): Likewise.
31731
31732 2014-10-27  Andreas Schwab  <schwab@suse.de>
31733
31734         [BZ #17501]
31735         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
31736         check for Slow_SSE4_2 feature bit.
31737         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
31738         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
31739         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
31740         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
31741
31742 2014-10-24  Roland McGrath  <roland@hack.frob.com>
31743
31744         * configure.ac: Validate compiler version with a empirical test of
31745         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
31746         $CC -v output.
31747         * configure: Regenerated.
31748
31749         * inet/htons.c (htons): Prototypify.
31750         * inet/htonl.c (htonl): Likewise.
31751
31752 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31753
31754         * string/strncat.c (strncat): Improve performance by using strlen.
31755
31756 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31757
31758         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
31759
31760 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31761
31762         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
31763         Call libc_fetestexcept_aarch64.
31764
31765 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31766
31767         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
31768         Call libc_feholdexcept_aarch64.
31769
31770 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31771
31772         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
31773         Call get_rounding_mode.
31774
31775 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31776
31777         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
31778         Simplify logic.
31779
31780 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31781
31782         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
31783         Simplify logic.
31784
31785 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
31786
31787         [BZ #14138]
31788         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
31789         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
31790         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
31791         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
31792         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
31793         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
31794         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
31795         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
31796         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
31797         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
31798         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
31799         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
31800         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
31801         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
31802         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
31803         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
31804         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
31805         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
31806         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
31807         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
31808         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
31809         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
31810         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
31811         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
31812         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
31813         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
31814         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
31815         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
31816         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
31817         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
31818         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
31819         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
31820         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
31821         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
31822         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
31823         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
31824         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
31825         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
31826         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
31827         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
31828         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
31829         syscall.
31830         (geteuid): Likewise.
31831         (getgid): Likewise.
31832         (getuid): Likewise.
31833         (getresgid): Likewise.
31834         (getresuid): Likewise.
31835         (getgroups): Likewise.
31836         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
31837         (geteuid): Likewise.
31838         (getgid): Likewise.
31839         (getuid): Likewise.
31840         (getresgid): Likewise.
31841         (getresuid): Likewise.
31842         (getgroups): Likewise.
31843         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
31844         (geteuid): Likewise.
31845         (getgid): Likewise.
31846         (getuid): Likewise.
31847         (getresgid): Likewise.
31848         (getresuid): Likewise.
31849         (getgroups): Likewise.
31850         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
31851         Likewise.
31852         (geteuid): Likewise.
31853         (getgid): Likewise.
31854         (getuid): Likewise.
31855         (getresgid): Likewise.
31856         (getresuid): Likewise.
31857         (getgroups): Likewise.
31858         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
31859         (geteuid): Likewise.
31860         (getgid): Likewise.
31861         (getuid): Likewise.
31862         (getresgid): Likewise.
31863         (getresuid): Likewise.
31864         (getgroups): Likewise.
31865         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
31866         Likewise.
31867         (geteuid): Likewise.
31868         (getgid): Likewise.
31869         (getuid): Likewise.
31870         (getgroups): Likewise.
31871
31872         [BZ #14138]
31873         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
31874         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
31875         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
31876         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
31877         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
31878         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
31879         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
31880         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
31881         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
31882         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
31883         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
31884         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
31885         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
31886         __chown.
31887         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
31888         (lchown): Likewise.
31889         (fchown): Likewise.
31890         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
31891         Likewise.
31892         (lchown): Likewise.
31893         (fchown): Likewise.
31894         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
31895         (lchown): Likewise.
31896         (fchown): Likewise.
31897         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
31898         Likewise.
31899         (lchown): Likewise.
31900         (fchown): Likewise.
31901
31902 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
31903
31904         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
31905         Simplify logic.
31906
31907 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
31908
31909         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
31910         Cleanup logic.
31911
31912 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
31913
31914         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
31915         Remove unused include.
31916
31917 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
31918
31919         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
31920         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
31921         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
31922         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
31923
31924 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
31925             Helge Deller <deller@gmx.de>
31926
31927         [BZ #17508]
31928         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
31929         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
31930         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
31931
31932 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
31933
31934         [BZ #14132]
31935         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
31936         Remove macro definition.
31937         (__ashrdi3_v_glibc20): Likewise.
31938         (__lshrdi3_v_glibc20): Likewise.
31939         (__cmpdi2_v_glibc20): Likewise.
31940         (__ucmpdi2_v_glibc20): Likewise.
31941         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
31942         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
31943         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
31944         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
31945         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
31946         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
31947
31948 2014-10-22  Roland McGrath  <roland@hack.frob.com>
31949
31950         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
31951         old GNU extension [0] syntax.
31952         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
31953         alloca rather than an array member with variable length.
31954         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
31955         * nscd/nscd.c (invalidate_db): New function, broken out of ...
31956         (parse_opt): ... here.  Likewise use alloca there.
31957         Validate the -i argument before checking for rootness.
31958         (send_shutdown): New function, broken out of ...
31959         (parse_opt): ... here.
31960
31961 2014-10-22  Roland McGrath  <roland@hack.frob.com>
31962
31963         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
31964         macro to get at the _rt_local_ro field.
31965         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
31966         ([PIC] case) or _dl_hwcap ([!PIC] case).
31967         * sysdeps/arm/setjmp.S: Likewise.
31968
31969         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
31970         * sysdeps/arm/configure.ac: New check to define it.
31971         * sysdeps/arm/configure: Regenerated.
31972         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
31973         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
31974         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
31975         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
31976         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
31977         Use move/movt pair instead of a load.
31978         (LDST_GLOBAL): Macro removed.
31979         (LDR_GLOBAL): New macro replaces it.
31980         (LDR_HIDDEN): New macro.
31981         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
31982         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
31983
31984         * setjmp/tst-setjmp-static.c: New file.
31985         * setjmp/Makefile (tests): Add it.
31986         (tests-static): New variable.
31987
31988 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
31989
31990         [BZ #17485]
31991         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
31992
31993 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
31994
31995         [BZ #14132]
31996         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
31997
31998 2014-10-21  Roland McGrath  <roland@hack.frob.com>
31999
32000         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
32001
32002 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32003
32004         * io/fts.c (dirent_not_directory): New function.
32005         (fts_build): Call it.
32006
32007 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32008
32009         * nptl/version.c (__nptl_main): Use normal __write rather than
32010         INTERNAL_SYSCALL.
32011         (banner): Update copyright years.
32012
32013         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
32014         gettimeofday.
32015         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
32016         * nptl/pthread_cond_timedwait.c: Likewise.
32017         * nptl/pthread_mutex_timedlock.c: Likewise.
32018         * nptl/sem_timedwait.c: Likewise.
32019
32020         * sysdeps/nptl/bits/libc-lock.h
32021         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
32022         (__libc_lock_init_recursive): Return void, not 0.
32023         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
32024         (__libc_rwlock_init): Likewise.
32025         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
32026
32027 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32028
32029         [BZ #15215]
32030         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
32031         (__pthread_once_slow): ... here.
32032         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
32033         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
32034
32035 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32036
32037         [BZ #15215]
32038         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
32039         __PTHREAD_ONCE_FORK_GEN_INCR): New.
32040         * sysdeps/nptl/fork.c (__libc_fork): Use them.
32041         * nptl/pthread_once.c (__pthread_once): Likewise.
32042         Update comments.
32043
32044 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
32045
32046         [BZ #14138]
32047         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
32048         name.
32049         (writev): Use __libc_writev as strong name.
32050         * sysdeps/unix/sysv/linux/readv.c: Remove file.
32051         * sysdeps/unix/sysv/linux/writev.c: Likewise.
32052
32053 2014-10-17  Roland McGrath  <roland@hack.frob.com>
32054
32055         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
32056
32057         * sysdeps/i386/nptl/tls.h
32058         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
32059         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
32060         New macros.
32061         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
32062         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
32063         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
32064         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
32065         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
32066         Call CHECK_THREAD_SYSINFO instead of doing an assert.
32067
32068         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
32069         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
32070         on [__NR_futex].
32071         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
32072         broken out of ...
32073         (__pthread_mutex_init): ... here.  Call it.
32074         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
32075         Conditionalize PI cases on [__NR_futex].
32076         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
32077         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
32078         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
32079
32080         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
32081         conditional on [SIGSETXID].
32082         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
32083         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
32084         is defined.  Likewise for SIGSETXID.
32085         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
32086         Conditionalize definitions on [SIGSETXID].
32087         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
32088         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
32089         unblocking on [SIGCANCEL].
32090
32091         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
32092         [__NR_set_robust_list].
32093
32094 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
32095
32096         * string/strcoll_l.c (get_next_seq): Fix up formatting.
32097         (do_compare): Likewise.
32098
32099 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
32100
32101         [BZ #15884]
32102         * string/strcoll_l.c: Don't include stdio.h.
32103         (coll_seq): Remove members idxarr and rulearr.
32104         (get_next_seq_cached): Remove function.
32105         (get_next_seq): Likewise.
32106         (get_next_seq_nocache): Rename to get_next_seq.
32107         (do_compare): Remove function.
32108         (do_compare_nocache): Rename to do_compare.
32109         (STRCOLL): Remove weight and rules cache.
32110
32111 2014-10-16  Roland McGrath  <roland@hack.frob.com>
32112
32113         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
32114         * sysdeps/arm/sfp-machine.h: ... to here.
32115         * sysdeps/arm/Implies: Remove arm/soft-fp.
32116
32117 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
32118
32119         * conform/data/sys/utsname.h-data (*_t): Allow.
32120         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
32121         [POSIX] (WEXITED): Do not expect constant.
32122         [POSIX] (WSTOPPED): Likewise.
32123         [POSIX] (WNOHANG): Likewise.
32124         [POSIX] (WNOWAIT): Likewise.
32125         [POSIX] (siginfo_t): Do not expect type or elements.
32126         [POSIX] (pid_t): Do not expect type.
32127         [POSIX] (signal.h): Do not allow header.
32128         [POSIX] (sys/resource.h): Likewise.
32129         [POSIX] (si_*): Do not allow pattern.
32130         [POSIX] (W*): Likewise.
32131         [POSIX] (P_*): Likewise.
32132         [POSIX] (BUS_*): Likewise.
32133         [POSIX] (CLD_*): Likewise.
32134         [POSIX] (FPE_*): Likewise.
32135         [POSIX] (ILL_*): Likewise.
32136         [POSIX] (POLL_*): Likewise.
32137         [POSIX] (SEGV_*): Likewise.
32138         [POSIX] (SI_*): Likewise.
32139         [POSIX] (TRAP_*): Likewise.
32140         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
32141         variable.
32142
32143 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
32144
32145         [BZ #12926]
32146         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
32147         infinite loop when __recvmsg returns 0.
32148
32149 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
32150
32151         * CANCEL-FCT-WAIVE: Remove file.
32152         * CANCEL-FILE-WAIVE: Likewise.
32153
32154         [BZ #14132]
32155         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
32156         instead of INTVARDEF.
32157         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32158         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
32159         rtld_hidden_data_def instead of INTVARDEF.
32160         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32161         * elf/dl-deps.c (expand_dst): Likewise.
32162         * elf/dl-load.c (_dl_dst_count): Likewise.
32163         (_dl_dst_substitute): Likewise.
32164         (decompose_rpath): Likewise.
32165         (_dl_init_paths): Likewise.
32166         (open_path): Likewise.
32167         (_dl_map_object): Likewise.
32168         * elf/rtld.c (dl_main): Likewise.
32169         (process_dl_audit): Likewise.
32170         (process_envvars): Likewise.
32171         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
32172         Remove declaration.
32173         (__libc_enable_secure): Use rtld_hidden_proto.
32174
32175 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32176
32177         * elf/dl-load.c
32178         (add_path): New function broken out of _dl_rtld_di_serinfo.
32179         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
32180
32181 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32182
32183         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
32184         parentheses around macro arguments.
32185         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
32186         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
32187         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
32188         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
32189         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
32190         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32191         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32192         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
32193         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
32194         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
32195         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
32196         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
32197         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
32198         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
32199         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
32200         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
32201         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
32202         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
32203         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
32204         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
32205         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
32206         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
32207         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
32208         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32209         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32210         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
32211         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
32212         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
32213         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
32214         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
32215         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
32216         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
32217         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
32218         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
32219         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
32220         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
32221         Likewise.
32222         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
32223         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32224         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32225         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
32226         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
32227         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
32228         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
32229         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
32230         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
32231         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
32232         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
32233         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
32234         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
32235         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
32236         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
32237         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32238         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32239         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
32240         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
32241         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
32242         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
32243         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
32244         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
32245         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
32246         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
32247         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
32248         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
32249         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
32250         (_FP_FRAC_SRS_1): Likewise.
32251         (_FP_FRAC_CLZ_1): Likewise.
32252         (_FP_MUL_MEAT_1_imm): Likewise.
32253         (_FP_MUL_MEAT_1_wide): Likewise.
32254         (_FP_MUL_MEAT_1_hard): Likewise.
32255         (_FP_SQRT_MEAT_1): Likewise.
32256         (_FP_FRAC_ASSEMBLE_1): Likewise.
32257         (_FP_FRAC_DISASSEMBLE_1): Likewise.
32258         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
32259         (__FP_CLZ_2): Likewise.
32260         (_FP_MUL_MEAT_2_wide): Likewise.
32261         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
32262         (_FP_MUL_MEAT_2_gmp): Likewise.
32263         (_FP_MUL_MEAT_2_120_240_double): Likewise.
32264         (_FP_SQRT_MEAT_2): Likewise.
32265         (_FP_FRAC_ASSEMBLE_2): Likewise.
32266         (_FP_FRAC_DISASSEMBLE_2): Likewise.
32267         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
32268         (_FP_FRAC_CLZ_4): Likewise.
32269         (_FP_MUL_MEAT_4_wide): Likewise.
32270         (_FP_MUL_MEAT_4_gmp): Likewise.
32271         (_FP_SQRT_MEAT_4): Likewise.
32272         (_FP_FRAC_ASSEMBLE_4): Likewise.
32273         (_FP_FRAC_DISASSEMBLE_4): Likewise.
32274         * soft-fp/op-common.h (_FP_CMP): Likewise.
32275         (_FP_CMP_EQ): Likewise.
32276         (_FP_CMP_UNORD): Likewise.
32277         (_FP_TO_INT): Likewise.
32278         (_FP_FROM_INT): Likewise.
32279         [!__FP_CLZ] (__FP_CLZ): Likewise.
32280         (_FP_DIV_HELP_imm): Likewise.
32281         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
32282         Likewise.
32283         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
32284         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
32285         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
32286         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
32287         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
32288         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32289         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32290         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
32291         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
32292         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
32293         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
32294         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
32295         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
32296         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
32297         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
32298         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
32299         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
32300         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
32301         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
32302         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
32303         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
32304         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
32305         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
32306         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32307         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32308         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
32309         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
32310         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
32311         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
32312         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
32313         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
32314         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
32315         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
32316         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
32317         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
32318         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
32319         (FP_UNPACK_RAW_SP): Likewise.
32320         (FP_PACK_RAW_S): Likewise.
32321         (FP_PACK_RAW_SP): Likewise.
32322         (FP_UNPACK_S): Likewise.
32323         (FP_UNPACK_SP): Likewise.
32324         (FP_UNPACK_SEMIRAW_S): Likewise.
32325         (FP_UNPACK_SEMIRAW_SP): Likewise.
32326         (FP_PACK_S): Likewise.
32327         (FP_PACK_SP): Likewise.
32328         (FP_PACK_SEMIRAW_S): Likewise.
32329         (FP_PACK_SEMIRAW_SP): Likewise.
32330         (_FP_SQRT_MEAT_S): Likewise.
32331         (FP_CMP_S): Likewise.
32332         (FP_CMP_EQ_S): Likewise.
32333         (FP_CMP_UNORD_S): Likewise.
32334         (FP_TO_INT_S): Likewise.
32335         (FP_FROM_INT_S): Likewise.
32336
32337         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
32338
32339         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
32340         (FP_EX_INVALID_IMZ): Likewise.
32341         (FP_EX_INVALID_IMZ_FMA): Likewise.
32342         (FP_EX_INVALID_ISI): Likewise.
32343         (FP_EX_INVALID_ZDZ): Likewise.
32344         (FP_EX_INVALID_IDI): Likewise.
32345         (FP_EX_INVALID_SQRT): Likewise.
32346         (FP_EX_INVALID_CVI): Likewise.
32347         (FP_EX_INVALID_VC): Likewise.
32348         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
32349         "invalid" exceptions.
32350         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
32351         (_FP_ADD_INTERNAL): Likewise.
32352         (_FP_MUL): Likewise.
32353         (_FP_FMA): Likewise.
32354         (_FP_DIV): Likewise.
32355         (_FP_CMP_CHECK_NAN): Likewise.
32356         (_FP_SQRT): Likewise.
32357         (_FP_TO_INT): Likewise.
32358         (FP_EXTEND): Likewise.
32359
32360 2014-10-09  Allan McRae  <allan@archlinux.org>
32361
32362         * po/fr.po: Update French translation from translation project.
32363
32364 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32365
32366         [BZ #14132]
32367         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
32368         of INTDEF.
32369         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
32370         (__cxa_atexit): Use libc_hidden_proto.
32371         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
32372
32373         [BZ #14132]
32374         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
32375         declaration.
32376         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
32377         [!_ISOMAC] (__iswspace_l_internal): Likewise.
32378         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
32379         [!_ISOMAC] (__iswctype_internal): Likewise.
32380         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
32381         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
32382         alias.
32383         (fcntl): Remove __fcntl_internal alias.
32384         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
32385         __connect_internal alias.
32386         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
32387         Likewise.
32388
32389         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
32390         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
32391         FP_DENORM_ZERO.
32392         (_FP_CHECK_FLUSH_ZERO): New macro.
32393         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
32394         (_FP_CMP): Likewise.
32395         (_FP_CMP_EQ): Likewise.
32396         (_FP_TO_INT): Do not set inexact for subnormal arguments if
32397         FP_DENORM_ZERO.
32398         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
32399         (FP_TRUNC): Likewise.
32400
32401         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
32402         treated as invalid conversion, not as normal exponent.
32403
32404         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
32405         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
32406         (_FP_CMP_EQ): Likewise.
32407         (_FP_CMP_UNORD): Likewise.
32408         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
32409         (FP_CMP_EQ_D): Likewise.
32410         (FP_CMP_UNORD_D): Likewise.
32411         * soft-fp/extended.h (FP_CMP_E): Likewise.
32412         (FP_CMP_EQ_E): Likewise.
32413         (FP_CMP_UNORD_E): Likewise.
32414         * soft-fp/quad.h (FP_CMP_Q): Likewise.
32415         (FP_CMP_EQ_Q): Likewise.
32416         (FP_CMP_UNORD_Q): Likewise.
32417         * soft-fp/single.h (FP_CMP_S): Likewise.
32418         (FP_CMP_EQ_S): Likewise.
32419         (FP_CMP_UNORD_S): Likewise.
32420         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
32421         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
32422         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
32423         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
32424         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
32425         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
32426         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
32427         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
32428         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
32429         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
32430         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
32431         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
32432         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
32433         to FP_CMP_Q.
32434         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
32435         FP_CMP_Q.
32436         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
32437         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
32438         FP_CMP_EQ_Q.
32439         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
32440         FP_CMP_Q.
32441         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
32442         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
32443         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
32444         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
32445         FP_CMP_EQ_Q.
32446         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
32447         FP_CMP_Q.
32448         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
32449         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
32450         FP_CMP_EQ_Q.
32451         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
32452         FP_CMP_Q.
32453         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
32454         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
32455         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
32456         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
32457         FP_CMP_EQ_Q.
32458
32459         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
32460         a subnormal result, set the underflow exception if trapping on
32461         underflow is enabled.
32462         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
32463         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
32464         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
32465         redefine to 0.
32466         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
32467         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32468         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32469         * soft-fp/extendxftf2.c (__extendxftf2): Use
32470         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
32471
32472         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
32473         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
32474         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32475         FP_HANDLE_EXCEPTIONS.
32476         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
32477         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32478         FP_HANDLE_EXCEPTIONS.
32479         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
32480         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32481         FP_HANDLE_EXCEPTIONS.
32482         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
32483         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32484         FP_HANDLE_EXCEPTIONS.
32485
32486 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
32487
32488         [BZ #14132]
32489         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
32490         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
32491         use INTUSE.
32492         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
32493         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
32494         Remove alias.
32495         (__adjtimex): Define using libc_hidden_ver.
32496         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
32497         Remove declaration.
32498         (ntp_gettime): Call __adjtimex directly.
32499         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
32500         Remove declaration.
32501         (ntp_gettimex): Call __adjtimex directly.
32502         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
32503         __adjtimex_internal alias.
32504
32505 2014-10-08  Roland McGrath  <roland@hack.frob.com>
32506
32507         [BZ #17460]
32508         * nscd/nscd.c (more_help): Rewrite list of tables collection
32509         using xstrdup and asprintf.
32510
32511         * nscd/nscd_conf.c: Remove local xstrdup declaration.
32512
32513 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32514             Roland McGrath  <roland@hack.frob.com>
32515
32516         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
32517         (do_lookup_unique): ... local function 'enter' here; update callers.
32518
32519 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
32520
32521         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
32522         compat_symbol calls on [SHARED].
32523         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
32524         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
32525         Remove.
32526         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32527         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
32528         (oldsetrlimit): Remove.
32529         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
32531         (lchown): New syscall entry.
32532         (oldsetrlimit): Remove.
32533         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32534         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
32535         (oldsetrlimit): Remove.
32536         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32537
32538         [BZ #14138]
32539         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
32540         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
32541         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
32542         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
32543         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
32544         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
32545         (fchown): Likewise.
32546         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
32547         (fchown): Likewise.
32548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
32549         Likewise.
32550
32551 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32552
32553         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
32554         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
32555         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
32556         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
32557         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
32558         Likewise.
32559         (__old_sem_post): Likewise.
32560
32561 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
32562
32563         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
32564         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
32565         HAVE_CLOCK_GETTIME_VSYSCALL macros.
32566         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
32567         Use INLINE_VSYSCALL macro.
32568         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
32569         __vdso_clock_gettime.
32570         * sysdeps/unix/sysv/linux/tile/init-first.c
32571         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
32572         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
32573         __vdso_clock_gettime.
32574
32575         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
32576         to set up frame more cleanly.
32577
32578         * sysdeps/tile/memcmp.c: New file.
32579
32580         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
32581
32582         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
32583         * sysdeps/tile/tilegx/strcasestr.c: New file.
32584         * sysdeps/tile/tilegx/strnlen.c: New file.
32585         * sysdeps/tile/tilegx/strstr.c: New file.
32586
32587         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
32588
32589 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
32590
32591         * nptl/tst-setuid3.c: Write errors to stdout.
32592
32593 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32594
32595         * elf/dl-deps.c
32596         (preload): New functions broken out of _dl_map_object_deps.
32597         (_dl_map_object_deps):  Remove a nested function. Update call sites.
32598
32599 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
32600
32601         [BZ #14138]
32602         * sysdeps/unix/sysv/linux/execve.c: Remove file.
32603         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
32604
32605 2014-10-01  Steve Ellcey  <sellcey@mips.com>
32606
32607         * sysdeps/mips/strcmp.S: New.
32608
32609 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
32610
32611         [BZ #14138]
32612         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
32613         (linkat): Likewise.
32614         (mkdirat): Likewise.
32615         (readlinkat): Likewise.
32616         (renameat): Likewise.
32617         (symlinkat): Likewise.
32618         (unlinkat): Likewise.
32619         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
32620         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
32621         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
32622         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
32623         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
32624         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
32625         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
32626
32627 2014-09-30  Will Newton  <will.newton@linaro.org>
32628
32629         * math/math.h: Define long double math functions if
32630         _LIBC_TEST is defined.
32631         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
32632
32633         * localedata/Makefile: Move assignment to tests-special
32634         into an ifdef testing run-built-tests.
32635         * timezone/Makefile: Likewise.
32636
32637 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
32638
32639         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
32640         with $(BASH) not $(SHELL).
32641
32642 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
32643             Matthew LeGendre  <legendre1@llnl.gov>
32644
32645         [BZ #17411]
32646         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
32647         l_reloc_result.
32648
32649 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32650
32651         * stdio-common/printf_fp.c
32652         (hack_digit): New function, broken out of ...
32653         (__printf_fp): ... local function here.  Update call sites.
32654         hack_digit now takes an additional parameter that is a pointer
32655         to a struct of the referenced locals.  Those locals moved inside
32656         the struct and references updated.
32657
32658 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
32659
32660         * aclocal.m4: Require autoconf 2.69.
32661         * configure: Regenerated.
32662         * sysdeps/aarch64/configure: Likewise.
32663         * sysdeps/alpha/configure: Likewise.
32664         * sysdeps/arm/armv7/configure: Likewise.
32665         * sysdeps/arm/configure: Likewise.
32666         * sysdeps/ia64/configure: Likewise.
32667         * sysdeps/mach/configure: Likewise.
32668         * sysdeps/mips/configure: Likewise.
32669         * sysdeps/s390/configure: Likewise.
32670         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
32671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
32672
32673         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
32674         file.
32675         * sysdeps/ia64/configure.ac: Likewise.
32676
32677 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
32678
32679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
32680         specify symbol version for ld.so.  Do not include entry for
32681         libpthread.
32682         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
32683         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
32684         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
32685
32686         [BZ #14171]
32687         * Makeconfig [$(build-shared) = yes]
32688         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
32689         makefiles.
32690         [$(build-shared) = yes && $(soversions.mk-done) = t]
32691         ($(common-objpfx)gnu/lib-names.h): Remove rule.
32692         [$(build-shared) = yes && $(soversions.mk-done) = t]
32693         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
32694         to Makerules.
32695         [$(build-shared) = yes && $(soversions.mk-done) = t]
32696         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
32697         here.
32698         [$(build-shared) = yes && $(soversions.mk-done) = t]
32699         (common-generated): Don't append gnu/lib-names.h and
32700         gnu/lib-names.stmp here.
32701         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
32702         (lib-names-h-abi): New variable.
32703         [$(build-shared) = yes && $(soversions.mk-done) = t]
32704         (lib-names-stmp-abi): Likewise.
32705         [$(build-shared) = yes && $(soversions.mk-done) = t &&
32706         abi-variants] (before-compile): Append
32707         $(common-objpfx)$(lib-names-h-abi).
32708         [$(build-shared) = yes && $(soversions.mk-done) = t &&
32709         abi-variants] (common-generated): Append gnu/lib-names.h.
32710         [$(build-shared) = yes && $(soversions.mk-done) = t &&
32711         abi-variants] (install-others-nosubdir): Depend on
32712         $(inst_includedir)/$(lib-names-h-abi).
32713         [$(build-shared) = yes && $(soversions.mk-done) = t &&
32714         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
32715         [$(build-shared) = yes && $(soversions.mk-done) = t]
32716         ($(common-objpfx)$(lib-names-h-abi)): New rule.
32717         [$(build-shared) = yes && $(soversions.mk-done) = t]
32718         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
32719         [$(build-shared) = yes && $(soversions.mk-done) = t]
32720         (common-generated): Append $(lib-names-h-abi) and
32721         $(lib-names-stmp-abi).
32722         * scripts/lib-names.awk: Do not handle multi being set.
32723         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
32724         Remove variable.
32725         (abi-lp64_be-ld-soname): Likewise.
32726         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
32727         Likewise.
32728         (abi-hard-ld-soname): Likewise.
32729         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
32730         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
32731         Remove variable.
32732         (abi-o32_hard-ld-soname): Likewise.
32733         (abi-o32_soft_2008-ld-soname): Likewise.
32734         (abi-o32_hard_2008-ld-soname): Likewise.
32735         (abi-n32_soft-ld-soname): Likewise.
32736         (abi-n32_hard-ld-soname): Likewise.
32737         (abi-n32_soft_2008-ld-soname): Likewise.
32738         (abi-n32_hard_2008-ld-soname): Likewise.
32739         (abi-n64_soft-ld-soname): Likewise.
32740         (abi-n64_hard-ld-soname): Likewise.
32741         (abi-n64_soft_2008-ld-soname): Likewise.
32742         (abi-n64_hard_2008-ld-soname): Likewise.
32743         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
32744         Likewise.
32745         (abi-64-v2-ld-soname): Likewise.
32746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
32747         ld.so entries.
32748         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
32749         variable.
32750         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
32751         entry.
32752         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
32753         variable.
32754         (abi-64-ld-soname): Likewise.
32755         (abi-x32-ld-soname): Likewise.
32756         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
32757         entry.
32758         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
32759
32760 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
32761
32762         [BZ #14138]
32763         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
32764         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
32765         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
32766         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
32767         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
32768         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
32769         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
32770         syscall entry for GLIBC_2.2 symbol version.
32771         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
32772         Likewise.
32773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
32774         (setrlimit): Likewise.
32775         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
32776         Likewise.
32777
32778 2014-09-23  Will Newton  <will.newton@linaro.org>
32779
32780         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
32781         _LINUX_ARM_SYSDEP_H include guard too.
32782         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
32783         define.
32784
32785 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32786
32787         * sysdeps/unix/sysv/linux/eventfd.c:
32788         Make first argument unsigned.
32789         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
32790         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
32791
32792 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
32793
32794         [BZ #16852]
32795         * socket/recvmmsg.c (recvmmsg): Drop const argument.
32796         * socket/sys/socket.h: Likewise.
32797         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
32798
32799 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32800
32801         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
32802
32803 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
32804
32805         * time/tst-ftime.c: New test.
32806         * time/Makefile (tests): Add tst-ftime.
32807
32808 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
32809
32810         * soft-fp/extended.h: Fix comment formatting.
32811         * soft-fp/op-1.h: Likewise.
32812         * soft-fp/op-2.h: Likewise.
32813         * soft-fp/op-4.h: Likewise.
32814         * soft-fp/op-8.h: Likewise.
32815         * soft-fp/op-common.h: Likewise.
32816         * soft-fp/soft-fp.h: Likewise.
32817
32818         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
32819
32820 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
32821
32822         [BZ #6652]
32823         * Makeconfig (soversions-default-setname): Remove variable.
32824         ($(common-objpfx)soversions.i): Don't pass default_setname to
32825         soversions.awk.
32826         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
32827         oldest_abi to abi-versions.awk.
32828         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
32829         * config.make.in (oldest-abi): Remove variable.
32830         * configure.ac (--enable-oldest-abi): Remove configure option.
32831         * configure: Regenerated.
32832         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
32833         text.
32834         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
32835         * scripts/soversions.awk: Do not handle default_setname variable.
32836         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
32837         variable.
32838         * sysdeps/mach/hurd/configure: Regenerated.
32839         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
32840         variable.
32841         * sysdeps/unix/sysv/linux/configure: Regenerated.
32842
32843 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
32844
32845         * elf/Makefile (CFLAGS-interp.c): Remove.
32846         ($(elf-objpfx)runtime-linker.h): Generate header with linker
32847         path string.
32848         * elf/interp.c: Include generated runtime-linker.h
32849
32850         * Makerules (lib%.so): Don't include $(+interp) in
32851         prerequisites.
32852         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
32853         * dlfcn/eval.c: Remove file.
32854
32855         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
32856         macros.
32857
32858         [BZ #17266]
32859         * misc/sys/cdefs.h: Define __extern_always_inline for clang
32860         4.2 and newer.
32861
32862         [BZ #17370]
32863         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
32864
32865 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
32866             Jakub Jelinek  <jakub@redhat.com>
32867
32868         [BZ #17266]
32869         * libio/stdio.h: Check definition of __fortify_function
32870         instead of __extern_always_inline to include bits/stdio2.h.
32871         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
32872         check if __extern_always_inline is defined.
32873         [__USE_MISC || __USE_XOPEN]: Likewise.
32874         [__USE_ISOC99] Likewise.
32875         * misc/sys/cdefs.h (__fortify_function): Define only if
32876         __extern_always_inline is defined.
32877         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
32878         __extern_always_inline and __extern_inline only for g++-4.3
32879         and newer or a compatible gcc.
32880
32881 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
32882
32883         [BZ #17371]
32884         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
32885         last change to handle zero prefix length.
32886
32887 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32888
32889         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
32890         _SC_REGEX_VERSION.
32891
32892         * posix/getconf.c (vars): Add _POSIX_IPV6 and
32893         _POSIX_RAW_SOCKETS.
32894
32895 2014-09-13  Allan McRae  <allan@archlinux.org>
32896
32897         * po/ru.po: Update Russian translation from translation project.
32898
32899 2014-09-12  Roland McGrath  <roland@hack.frob.com>
32900
32901         * locale/programs/locale.c (show_locale_vars): Inline local function
32902         into its sole call site.  Clean up some style nits.
32903         (print_item): New function, broken out of ...
32904         (show_info): ... local function here.  Clean up style nits.
32905
32906         * locale/programs/ld-ctype.c (set_one_default): New function, broken
32907         out of ...
32908         (set_class_defaults): ... local function set_default here.
32909         Define set_default as a macro locally to pass constant parameters.
32910         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
32911         rather than a shared local.
32912
32913         * stdlib/rpmatch.c (try): New function, broken out of ...
32914         (rpmatch): ... local function here.  Also, prototypify definition.
32915
32916 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
32917
32918         * scripts/soversions.awk: Do not handle configuration names.
32919         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
32920         vendor and os variables to soversions.awk.
32921         * configure.ac: Do not modify gnu-* host_os.
32922         * configure: Regenerated
32923         * shlib-versions: Remove first column with configuration names.
32924         * nptl/shlib-versions: Likewise.
32925         * nptl_db/shlib-versions: Likewise.
32926         * sysdeps/hppa/shlib-versions: Likewise.
32927         * sysdeps/m68k/shlib-versions: Likewise.
32928         * sysdeps/mach/hurd/shlib-versions: Likewise.
32929         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
32930         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
32931         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
32932         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
32933         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
32934         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
32935         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
32936         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
32937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
32938         Likewise.
32939         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
32940         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
32941         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
32942         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
32943         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
32944         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
32945         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
32946         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
32947
32948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
32949         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
32950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
32951         Regenerated.
32952         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
32953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
32954         Condition symbol version definitions on [HAVE_ELFV2_ABI].
32955
32956         * shlib-versions: Remove OS-specific entries.  Moved to files in
32957         sysdeps.
32958         * sysdeps/mach/hurd/shlib-versions: New file.
32959         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
32960
32961         * nptl/shlib-versions: Remove architecture-specific entries.
32962         Moved to files in sysdeps.
32963         * shlib-versions: Likewise.
32964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
32965         file.
32966         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
32967         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
32968         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
32969         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
32970
32971         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
32972         (UDP_NO_CHECK6_RX): Likewise.
32973
32974 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
32975
32976         * sysdeps/posix/sysconf.c (__sysconf): Spell
32977         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
32978
32979 2014-08-12  Florian Weimer  <fweimer@redhat.com>
32980
32981         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
32982         loading.
32983         * iconv/Versions (__gconv_transliterate): Export for use from
32984         gconv modules.
32985         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
32986         (struct __gconv_trans_data, __gconv_trans_fct,
32987         __gconv_trans_context_fct, __gconv_trans_query_fct,
32988         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
32989         definitions.
32990         (struct __gconv_step_data): Remove __trans member.
32991         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
32992         longer hidden.  Remove unused trans_data argument.
32993         * iconv/gconv_int.h (struct trans_struct): Remove definition.
32994         (__gconv_translit_find): Remove declaration.
32995         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
32996         prototype.
32997         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
32998         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
32999         trans_data argument.  Add hidden definition.
33000         (__gconv_translit_find): Remove.
33001         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
33002         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
33003         * iconv/skeleton.c: Remove transliteration initialization.
33004         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
33005         __gconv_step_data initialization.
33006         * libio/iofwide.c (__libio_translit_): Remove.
33007         (_IO_fwide): Adjust struct __gconv_step_data initialization.
33008         * wcsmbs/btowc.c (__btowc): Likewise.
33009         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
33010         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
33011         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
33012         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
33013         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
33014         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
33015         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
33016         * wcsmbs/wctob.c (wctob): Likewise.
33017
33018 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33019
33020         [BZ #16194]
33021         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
33022         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
33023         register usage.
33024         * sysdeps/x86/Makefile: Adjust.
33025
33026 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33027             Roland McGrath  <roland@hack.frob.com>
33028
33029         * locale/weight.h: Add include guard.
33030         (findidx): Make static rather than auto; take new parameters
33031         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
33032         * locale/weightwc.h: Likewise.
33033         * posix/fnmatch_loop.c
33034         (FCT): Change type of EXTRA from int32_t to wint_t.
33035         Don't include either header inside the function.
33036         Call FINDIDX rather than findidx, and pass new arguments.
33037         #undef FINDIDX at the end of the file.
33038         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
33039         FINDIDX before including fnmatch_loop.c for the non-wide version.
33040         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
33041         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
33042         for the wide version.
33043         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
33044         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
33045         Pass new arguments to findidx.
33046         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
33047         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
33048         Don't #include it inside the function.  Pass new arguments to findidx.
33049         * posix/regex_internal.h
33050         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
33051         (re_string_elem_size_at): Don't #include it inside the function.
33052         Pass new arguments to findidx.
33053         * string/strcoll_l.c: #include WEIGHT_H at top level.
33054         (get_next_seq): Don't #include it inside the function.
33055         Pass new arguments to findidx.
33056         (get_next_seq_nocache): Likewise.
33057         * string/strxfrm_l.c: #include WEIGHT_H at top level.
33058         (STRXFRM): Don't #include it inside the function.
33059         Pass new arguments to findidx.
33060
33061 2014-09-11  Florian Weimer  <fweimer@redhat.com>
33062
33063         [BZ #17344]
33064         * malloc/malloc.c (unlink): Turn asserts into a call to
33065         malloc_printerr.
33066
33067 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
33068
33069         [BZ #17370]
33070         * libio/wfileops (do_ftell_wide): Free OUT.
33071
33072 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
33073
33074         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
33075
33076 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33077
33078         [BZ #17363]
33079         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
33080         group if the current group is empty.
33081
33082 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33083
33084         * benchtests/bench-memset.c (test_main): Add more test from size
33085         from 32 to 512 bytes.
33086         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33087         Add POWER8 memset object.
33088         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
33089         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
33090         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
33091         implementation.
33092         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
33093         Likewise.
33094         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
33095         multiarch POWER8 memset optimization.
33096         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
33097         POWER8 memset optimization.
33098
33099         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33100         Remove bzero multiarch objects.
33101         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
33102         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
33103         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
33104         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
33105         Remove define.
33106         [__bzero]: Redefine to specific name.
33107         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
33108         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
33109         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
33110         define.
33111         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
33112         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
33113
33114 2014-09-10  Florian Weimer  <fweimer@redhat.com>
33115
33116         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
33117         warnings into errors.
33118
33119         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
33120         __cxa_thread_atexit_impl prototype.
33121
33122 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33123
33124         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
33125         Fix capitalization of error message.
33126
33127 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33128
33129         * sysdeps/mips/preconfigure: Modify ABI tests.
33130
33131 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
33132
33133         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
33134
33135 2014-09-07  Roland McGrath  <roland@hack.frob.com>
33136             Carlos O'Donell  <carlos@systemhalted.org>
33137
33138         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
33139         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
33140         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
33141         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
33142         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
33143         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
33144         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
33145         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
33146         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
33147         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
33148         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
33149         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
33150         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
33151         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
33152         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
33153         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
33154         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
33155         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
33156         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
33157         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
33158         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
33159         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
33160         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
33161         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
33162         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
33163         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
33164         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
33165         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
33166         Deconditionalize the code that was previously under [RESET_PID].
33167         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
33168         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
33169         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
33170         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
33171         include sysdep.h.
33172
33173 2014-09-08  Allan McRae  <allan@archlinux.org>
33174
33175         * version.h (RELEASE): Set to "development".
33176         (VERSION): Set to "2.20.90"
33177
33178 2014-09-07  Allan McRae  <allan@archlinux.org
33179
33180         * version.h (RELEASE): Set to "stable".
33181         (VERSION): Set to "2.20"
33182         * include/features.h (__GLIBC_MINOR__): Set to 20.
33183
33184         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
33185         Liebler.
33186
33187         * po/ko.po: Update Korean translation from translation project.
33188
33189 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
33190
33191         [BZ #17354]
33192         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
33193         macro for handling signed relocations.
33194
33195 2014-09-03  Florian Weimer  <fweimer@redhat.com>
33196
33197         [BZ #17325]
33198         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
33199         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
33200         assert.
33201         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
33202         * iconvdata/ibm935.c (BODY): Likewise.
33203         * iconvdata/ibm937.c (BODY): Likewise.
33204         * iconvdata/ibm939.c (BODY): Likewise.
33205         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
33206         assert.
33207         * iconvdata/Makefile (iconv-test.out): Pass module list to test
33208         script.
33209         * iconvdata/run-iconv-test.sh: New test loop for checking for
33210         decoder crashers.
33211
33212 2014-09-02  Khem Raj  <raj.khem@gmail.com>
33213
33214         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
33215         libm_hidden_ver.
33216
33217 2014-09-01  Allan McRae  <allan@archlinux.org>
33218
33219         * po/eo.po: Update Esperanto translation from translation project.
33220
33221         * po/ca.po: Update Catalan translation from translation project.
33222
33223 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33224
33225         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
33226         __proc_dostop call.
33227
33228 2014-08-27  Mark Wielaard  <mjw@redhat.com>
33229
33230         [BZ #17319]
33231         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
33232         to call set_thread_area instead of hand written asm.
33233         (__NR_set_thread_area): Removed define.
33234         (TLS_FLAG_WRITABLE): Likewise.
33235         (__ASSUME_SET_THREAD_AREA): Remove check.
33236         (TLS_EBX_ARG): Remove define.
33237         (TLS_LOAD_EBX): Likewise.
33238
33239 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33240
33241         Simplify atomicity of socket creation in bind.
33242
33243         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
33244         looking up the name after linking the file.
33245
33246 2014-08-27  Allan McRae  <allan@archlinux.org>
33247
33248         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
33249
33250 2014-08-26  Florian Weimer  <fweimer@redhat.com>
33251
33252         [BZ #17187]
33253         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
33254         trans_compare, open_translit, __gconv_translit_find):
33255         Remove module loading code.
33256
33257 2014-08-26  Allan McRae  <allan@archlinux.org>
33258
33259         * po/vi.po: Update Vietnamese translation from translation project.
33260
33261         * po/uk.po: Update Ukrainian translation from translation project.
33262
33263         * po/fr.po: Update French translation from translation project.
33264
33265         * po/ru.po: Update Russian translation from translation project.
33266
33267         * po/pl.po: Update Polish translation from translation project.
33268
33269         * po/cs.po: Update Czech translation from translation project.
33270
33271         * po/de.po: Update German translation from translation project.
33272
33273         * po/bg.po: Update Bulgarian translation from translation project.
33274
33275         * po/sv.po: Update Sweedish translation from translation project.
33276
33277         * po/nl.po: Update Dutch translation from translation project.
33278
33279         * po/es.po: Update Spanish translation from translation project.
33280
33281 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
33282
33283         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
33284
33285         * catgets/Makefile (CPPFLAGS-gencat): Remove.
33286         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
33287         (CPPFLAGS-iconvconfig): Likewise.
33288         * timezone/Makefile (CPPFLAGS-zic): Likewise.
33289
33290         * include/libc-symbols.h: Remove unnecessary check for
33291         NOT_IN_libc.
33292         * nptl/pthreadP.h: Likewise.
33293         * sysdeps/aarch64/setjmp.S: Likewise.
33294         * sysdeps/alpha/setjmp.S: Likewise.
33295         * sysdeps/arm/sysdep.h: Likewise.
33296         * sysdeps/i386/setjmp.S: Likewise.
33297         * sysdeps/m68k/setjmp.c: Likewise.
33298         * sysdeps/posix/getcwd.c: Likewise.
33299         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
33300         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
33301         * sysdeps/s390/s390-32/setjmp.S: Likewise.
33302         * sysdeps/s390/s390-64/setjmp.S: Likewise.
33303         * sysdeps/sh/sh3/setjmp.S: Likewise.
33304         * sysdeps/sh/sh4/setjmp.S: Likewise.
33305         * sysdeps/unix/alpha/sysdep.h: Likewise.
33306         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
33307         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33308         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
33309         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
33310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
33311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
33312         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33313         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33314         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33315         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33316         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33317         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
33318         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33319         * sysdeps/x86_64/setjmp.S: Likewise.
33320
33321 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
33322
33323         [BZ #17263]
33324         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
33325         <stdint.h>.
33326         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
33327         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
33328
33329 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
33330
33331         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
33332
33333         [BZ #17262]
33334         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
33335         and __x86_64__ when disabling x87 inline functions.
33336
33337 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33338
33339         [BZ #17259]
33340         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
33341         asm statement with __cpuid_count.
33342
33343 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
33344
33345         * configure.ac: Change __ehdr_start code to dereference the struct.
33346         Run readelf on the output to look for relocations.
33347         * configure: Regenerated.
33348
33349 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
33350
33351         [BZ #17261]
33352         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
33353         value to 0.
33354         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
33355
33356 2014-08-12  Roland McGrath  <roland@hack.frob.com>
33357
33358         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
33359
33360 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
33361
33362         [BZ #16892]
33363         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
33364         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
33365
33366 2014-08-12  Sean Anderson  <seanga2@gmail.com>
33367
33368         * malloc/malloc.c: Fix typo in comment.
33369
33370 2014-08-09  Allan McRae  <allan@archlinux.org>
33371
33372         * Regenerate libc.po.
33373
33374 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
33375
33376         * intl/tst-gettext2.sh: Check every lang file for creation.
33377
33378 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33379
33380         * sysdeps/aarch64/fpu/math_private.h
33381         (libc_feholdsetround_noex_aarch64_ctx): New function.
33382
33383 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33384
33385         * sysdeps/arm/armv6/strcpy.S (strcpy):
33386         Fix performance issue in misaligned cases.
33387
33388 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33389
33390         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
33391         Move definition from termios.h.
33392         (struct termio): Likewise.
33393         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33394         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33395         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33396         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33397         Likewise.
33398         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
33399         Move definition to ioctl-types.h
33400         (struct termio): Likewise.
33401         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33402         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33403         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33404         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33405         Likewise.
33406
33407 2014-08-05  Richard Henderson  <rth@redhat.com>
33408
33409         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
33410         exceptions.
33411         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
33412         Add fraiseexcpt.
33413         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
33414         Use __feraiseexcept.
33415         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
33416         Protect libm symbols with IS_IN_libm.
33417
33418         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
33419
33420 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
33421
33422         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
33423
33424 2014-08-04  Will Newton  <will.newton@linaro.org>
33425
33426         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
33427         file.
33428
33429 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
33430
33431         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
33432         variants for each function.
33433
33434 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33435
33436         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
33437         appended ...
33438         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
33439         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
33440         appended ...
33441         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
33442         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
33443         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
33444         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
33445         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
33446         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
33447         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
33448         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
33449         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
33450         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
33451         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
33452         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
33453         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
33454         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
33455         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
33456         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
33457         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
33458         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
33459         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
33460         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
33461         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
33462         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
33463         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
33464         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
33465         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
33466         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
33467         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
33468         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
33469         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
33470         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
33471         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
33472         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
33473         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
33474         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
33475         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
33476         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
33477         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
33478         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
33479         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
33480         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
33481         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
33482         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
33483         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
33484         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
33485         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
33486         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
33487         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
33488         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
33489         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
33490         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
33491         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
33492         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
33493         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
33494         Update #include.
33495         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
33496         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
33497
33498 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33499
33500         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
33501         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
33502         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
33503         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
33504         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
33505         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
33506
33507 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33508
33509         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
33510         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
33511         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
33512         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
33513
33514 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33515
33516         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
33517         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
33518         (__libc_vfork): Define function under this name.
33519         (__vfork): Define as an alias.
33520         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
33521         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
33522
33523 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33524
33525         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
33526         that was previously under [RESET_PID].
33527         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
33528
33529 2014-08-04  Andreas Schwab  <schwab@suse.de>
33530
33531         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
33532
33533 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
33534
33535         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
33536         (main): Likewise.
33537
33538 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33539
33540         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
33541
33542 2014-08-01  Richard Henderon  <rth@redhat.com>
33543
33544         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
33545         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
33546         typo in exact zero test.
33547         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
33548         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
33549         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
33550
33551 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33552
33553         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
33554         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
33555         * sysdeps/arm/sysdep.h: ... here.
33556         [!__ASSEMBLER__]: Include <stdint.h>.
33557
33558 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
33559
33560         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
33561         (HAVE_WCTYPE_H): Likewise.
33562         (HAVE_ISWCTYPE): Likewise.
33563         (ENABLE_NLS): Likewise.
33564         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
33565         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
33566
33567         * posix/regex_internal.c: Check if DEBUG is defined and is
33568         set.
33569
33570         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
33571         (HAVE_MBSRTOWCS): Likewise.
33572         * posix/fnmatch.c: Include string.h unconditionally.
33573
33574 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
33575
33576         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
33577         reversal.
33578
33579 2014-07-31  Roland McGrath  <roland@hack.frob.com>
33580
33581         * sysdeps/generic/safe-fatal.h: New file.
33582         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
33583         * nptl/forward.c: Include it.
33584         (__pthread_unwind): Use __safe_fatal as default action, rather
33585         than a bogus use of INTERNAL_SYSCALL that could never work.
33586
33587         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
33588         * configure.ac (libc_cv_builtin_trap): New test.
33589         * configure: Regenerated.
33590         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
33591         (ABORT_INSTRUCTION): Define using __builtin_trap.
33592
33593         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
33594         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
33595         * sysdeps/nptl/nptl-signals.h: New file.
33596         * nptl/pthreadP.h: Include <nptl-signals.h>.
33597
33598 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33599
33600         * sysdeps/s390/s390-64/utf16-utf32-z9.c
33601         (ONE_DIRECTION): Define.
33602         * sysdeps/s390/s390-64/utf8-utf16-z9.c
33603         (ONE_DIRECTION): Define.
33604         * sysdeps/s390/s390-64/utf8-utf32-z9.c
33605         (ONE_DIRECTION): Define.
33606
33607 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33608
33609         * sysdeps/s390/Makefile: Delete file.
33610         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
33611         * sysdeps/s390/__longjmp.c: Delete file.
33612         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
33613         Remove fields __flags and __reserved.
33614         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
33615         and add versioning.
33616         * sysdeps/s390/rtld-__longjmp.c: Delete file.
33617         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
33618         * sysdeps/s390/rtld-setjmp.S: Likewise.
33619         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
33620         * sysdeps/s390/s390-32/__longjmp.c: ... here.
33621         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
33622         * sysdeps/s390/s390-32/setjmp.S: ... here.
33623         Add versioning.
33624         (__sigsetjmp): Remove setting __flags field.
33625         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
33626         * sysdeps/s390/s390-64/__longjmp.c: ... here.
33627         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
33628         * sysdeps/s390/s390-64/setjmp.S: ... here.
33629         Add versioning.
33630         (__sigsetjmp): Remove setting __flags field.
33631         * sysdeps/s390/setjmp.S: Delete file.
33632         * sysdeps/s390/sigjmp.c: Likewise.
33633         * sysdeps/s390/v1-longjmp.c: Likewise.
33634         * sysdeps/s390/v1-setjmp.h: Likewise.
33635         * sysdeps/s390/v1-sigjmp.c: Likewise.
33636         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
33637         Remove v1-longjmp_chk.
33638         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
33639         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
33640         Include debug/longjmp_chk.c and add versioning.
33641         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
33642         Include nptl/pt-longjmp.c and add versioning.
33643         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
33644         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
33645         Include __longjmp.c.
33646         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
33647         Move to ...
33648         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
33649         (__getcontext): Remove setting __flags field.
33650         Add versioning.
33651         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
33652         Don't restore upper high grps.
33653         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
33654         Likewise.
33655         (__swapcontext): Remove setting uc_flags field.
33656         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
33657         Delete file.
33658         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
33659         Include __longjmp.c.
33660         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
33661         Move to ...
33662         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
33663         (__getcontext): Remove setting __flags field.
33664         Add versioning.
33665         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
33666         (__swapcontext): Remove setting uc_flags field.
33667         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
33668         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
33669         Remove fields uc_high_gprs and __reserved.
33670         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
33671         New file with reverted content.
33672         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
33673         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
33674         Regenerated.
33675         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
33676         Regenerated.
33677
33678 2014-07-31  Andreas Schwab  <schwab@suse.de>
33679
33680         * config.h.in (HAVE_IFUNC): Define to 0.
33681         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
33682         definedness.
33683
33684 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
33685
33686         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33687         memmove-avx-unaligned, memcpy-avx-unaligned and
33688         mempcpy-avx-unaligned.
33689         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
33690         Add tests for AVX memcpy functions.
33691         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
33692         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
33693         memcpy_chk.
33694         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
33695         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
33696         memmove_chk.
33697         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
33698         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
33699         mempcpy_chk.
33700         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
33701         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
33702         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
33703
33704 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33705
33706         [BZ #17213]
33707         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
33708         powerpc64le.
33709
33710 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
33711
33712         [BZ #16839]
33713         * manual/llio.texi: Add section about open file description locks.
33714         * manual/examples/ofdlocks.c: Example of open file description
33715         lock usage.
33716         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
33717         F_OFD_SETLK, and F_OFD_SETLKW.
33718
33719 2014-07-23  Allan McRae  <allan@archlinux.org>
33720
33721         * po/es.po: Update Spanish translation from translation project.
33722
33723 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
33724
33725         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
33726
33727 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
33728
33729         [BZ #17078]
33730         * sysdeps/arm/dl-machine.h (elf_machine_rela)
33731         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
33732         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
33733
33734 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
33735
33736         [BZ #17088]
33737         * math/fesetenv.c (__fesetenv)
33738         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
33739         * math/feupdateenv.c (__feupdateenv)
33740         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
33741
33742         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
33743         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33744         (__ASSUME_SOCKETCALL): Do not define.
33745
33746         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
33747         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
33748         (__ASSUME_SOCKETCALL): Do not define.
33749         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
33750         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
33751         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
33752         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
33753         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
33754         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
33755         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33756         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33757
33758         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
33759         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
33760         (__ASSUME_SOCKETCALL): Do not define.
33761         (__ASSUME_IPC64): Define unconditionally.
33762         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
33763         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
33764         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
33765         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
33766         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
33767         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33768         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
33769         Likewise.
33770
33771         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
33772         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
33773         (__ASSUME_SOCKETCALL): Do not define.
33774         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
33775         (__ASSUME_FUTEX_LOCK_PI): Likewise.
33776         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
33777         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
33778         (__ASSUME_REQUEUE_PI): Define unconditionally.
33779         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
33780         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
33781         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33782         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
33783         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33784         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33785
33786         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
33787         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
33788         (__ASSUME_SOCKETCALL): Do not define.
33789         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
33790         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
33791         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33792         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
33793         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33794         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33795
33796         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
33797         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
33798         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
33799         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
33800         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
33801         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
33802         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33803         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
33804         (__ASSUME_GETCPU_SYSCALL): Likewise.
33805
33806         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
33807         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
33808         cases for individual architectures.
33809         * sysdeps/gnu/configure: Regenerated.
33810         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
33811         LIBC_SLIBDIR_RTLDDIR.
33812         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
33813         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
33814         LIBC_SLIBDIR_RTLDDIR.
33815         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
33816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
33817         LIBC_SLIBDIR_RTLDDIR.
33818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
33819         Regenerated.
33820         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
33821         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
33822         file.
33823         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
33824         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
33825         file.
33826         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
33827         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
33828         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
33829         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
33830
33831         * sysdeps/aarch64/shlib-versions: Move to ...
33832         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
33833         * sysdeps/alpha/shlib-versions: Move to ...
33834         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
33835         * sysdeps/arm/shlib-versions: Move to ...
33836         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
33837         * sysdeps/hppa/shlib-versions: Move all contents except for
33838         libgcc_s entry to ...
33839         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
33840         entry from ...
33841         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
33842         * sysdeps/ia64/shlib-versions: Move to ...
33843         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
33844         entry from ...
33845         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
33846         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
33847         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
33848         * sysdeps/microblaze/shlib-versions: Move to ...
33849         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
33850         * sysdeps/mips/shlib-versions: Move to ...
33851         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
33852         entry from ...
33853         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
33854         * sysdeps/tile/shlib-versions: Move to ...
33855         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
33856         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
33857         from ...
33858         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
33859         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
33860         entry from ...
33861         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
33862
33863 2014-07-17  Will Newton  <will.newton@linaro.org>
33864
33865         * sysdeps/arm/bits/atomic.h
33866         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
33867         (__arch_compare_and_exchange_bool_16_int): Likewise.
33868         (__arch_compare_and_exchange_bool_64_int): Likewise.
33869
33870         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
33871         into an #else block.
33872
33873 2014-07-16  Roland McGrath  <roland@hack.frob.com>
33874
33875         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
33876         just Linux configurations.  Test empirically that the compiler sets
33877         __ARM_EABI__, rather than using the tuple to decide.
33878         * sysdeps/arm/preconfigure: Regenerated.
33879         * sysdeps/unix/sysv/linux/arm/configure: File removed.
33880         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
33881         contents appended ...
33882         * sysdeps/arm/configure.ac: ... here.
33883         * sysdeps/arm/configure: Regenerated.
33884
33885 2014-07-15  Roland McGrath  <roland@hack.frob.com>
33886
33887         * nptl/pthread_kill.c: New file.
33888         * nptl/pthread_sigmask.c: New file.
33889         * nptl/pthread_sigqueue.c: New file.
33890
33891         * sysdeps/nptl/lowlevellock.h: New file.
33892         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
33893         * sysdeps/nptl/lowlevellock-futex.h: New file.
33894
33895         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
33896         Remove dead declarations.
33897
33898 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
33899
33900         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
33901         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
33902         config-cflags-avx2.
33903         * sysdeps/x86_64/configure.ac: Likewise.
33904         * sysdeps/i386/configure: Regenerated.
33905         * sysdeps/x86_64/configure: Likewise.
33906         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33907         memset-avx2 only if config-cflags-avx2 is yes.
33908         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
33909         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
33910         defined.
33911         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
33912         only if HAVE_AVX2_SUPPORT is defined.
33913         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
33914
33915 2014-07-14  Alan Modra  <amodra@gmail.com>
33916
33917         [BZ #17153]
33918         * elf/elf.h (DT_PPC64_NUM): Correct value.
33919         * NEWS: Add to fixed bug list.
33920
33921 2014-07-13  Jim Meyering  <meyering@fb.com>
33922
33923         [BZ 17150]
33924         regex: don't deref NULL upon heap allocation failure
33925         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
33926         failure in one more place.
33927         To trigger the segfault, configure grep -with-included-regex,
33928         build it, and run these commands:
33929         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
33930
33931 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
33932
33933         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
33934
33935 2014-07-11  Richard Henderson  <rth@redhat.com>
33936
33937         * sysdeps/aarch64/libm-test-ulps: Update.
33938
33939 2014-07-10  Florian Weimer  <fweimer@redhat.com>
33940
33941         [BZ #17135]
33942         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
33943         * nptl/allocatestack.c (__nptl_setxid_error): New function.
33944         (__nptl_setxid): Initialize error member.  Call
33945         __nptl_setxid_error.
33946         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
33947         * nptl/descr.h (struct xid_command): Add error member.
33948         * nptl/tst-setuid3.c: New file.
33949         * nptl/Makefile (tests): Add it.
33950
33951 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33952
33953         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
33954         New define.
33955         (__lll_trylock): Use __lll_base_trylock.
33956         (__lll_cond_trylock): Likewise.
33957
33958 2014-07-10  Roland McGrath  <roland@hack.frob.com>
33959
33960         * nptl/pthread_create.c (start_thread): Use atomic_or and
33961         lll_futex_wake directly rather than lll_robust_dead.
33962         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
33963         (lll_robust_dead): Macro removed.
33964         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
33965         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
33966         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
33967         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
33968         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
33969         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
33970         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
33971         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
33972         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
33973         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
33974         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
33975         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
33976         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
33977         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
33978         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
33979
33980         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
33981         Use atomic_compare_and_exchange_val_acq directly rather than
33982         lll_robust_trylock.
33983         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
33984         (__lll_robust_trylock, lll_robust_trylock): Removed.
33985         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
33986         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
33987         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
33988         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
33989         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
33990         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
33991         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
33992         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
33993         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
33994         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
33995         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
33996         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
33997         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
33998         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
33999
34000 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34001
34002         * manual/locale.texi (Locale Names): New section documenting
34003         locale name syntax.  Adjust menu and node chaining accordingly.
34004         (Choosing Locale): Reference Locale Names, Locale Categories.
34005         Mention setting LC_ALL=C.  Reflect that name syntax is now
34006         documented.
34007         (Locale Categories): New section title.  Reference Locale Names.
34008         LC_ALL is an environment variable, but not a category.
34009         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
34010         description, now in Locale Name.  Reference that section.  Locale
34011         name syntax is now documented.
34012
34013 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34014
34015         [BZ #17137]
34016         * locale/findlocale.c (name_present, valid_locale_name): New
34017         functions.
34018         (_nl_find_locale): Use the loc_name variable to store name
34019         candidates.  Call name_present and valid_locale_name to check and
34020         validate locale names.  Return an error if the locale is invalid.
34021
34022 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34023
34024         * locale/setlocale.c (setlocale): Use strdup for allocating
34025         composite name copy.
34026
34027 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34028
34029         Sync up with gnulib.
34030         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
34031         [!_LIBC && ENABLE_NLS]: Include gettext.h.
34032         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
34033         and _GL_ARG_NONNULL.
34034         [USE_UNLOCKED_IO]: Include unlocked-io.h.
34035         [!_LIBC]: Include code for Windows and Cygwin.
34036         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
34037         Include prototype for int strerror_r.
34038         [!_LIBC] (is_open): New function.
34039         (flush_stdout): New function.
34040         (print_errno_message): Use it.
34041         (error): Likewise.
34042         (error_at_line): Likewise.
34043         (error_tail) Add function attribute macros.  Use
34044         __builtin_expect.
34045
34046         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
34047
34048         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
34049
34050         * io/ftw.c: Include sys/param.h unconditionally.
34051
34052         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
34053
34054         [BZ #17125]
34055         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
34056         libc_freeres_ptr.
34057         (freecache): New function to free CACHE on exit.
34058
34059         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
34060         initialization.
34061
34062 2014-07-09  David S. Miller  <davem@davemloft.net>
34063
34064         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34065
34066         * sysdeps/sparc/nptl/internaltypes.h: Delete.
34067         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
34068         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
34069         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
34070         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
34071         * sysdeps/sparc/nptl/sem_init.c: Likewise.
34072         * sysdeps/sparc/nptl/sem_post.c: Likewise.
34073         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
34074         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
34075         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
34076         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
34077         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
34078         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
34079
34080 2014-07-09  Andreas Schwab  <schwab@suse.de>
34081
34082         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
34083         output.
34084         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
34085         (do_test): Likewise.
34086
34087         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
34088
34089 2014-07-09  Will Newton  <will.newton@linaro.org>
34090
34091         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
34092         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
34093         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34094         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34095         * sysdeps/hppa/start.S (_start): Likewise.
34096
34097 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
34098
34099         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
34100
34101         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
34102         defined.
34103
34104 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34105
34106         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
34107         after checking that it is non-NULL.
34108
34109         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
34110
34111 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34112
34113         * sysdeps/powerpc/memmove.c: Remove file.
34114         * sysdeps/powerpc/powerpc32/power4/memcopy.h
34115         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
34116         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34117         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
34118         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
34119         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
34120         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
34121         string memmove instead of removed powerpc one.
34122
34123         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
34124         [weak_alias]: Fix compiler warning due trailing data.
34125         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
34126         [weak_alias]: Likewise.
34127         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
34128         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
34129
34130         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
34131         (__libc_ifunc_impl_list): Add memmove functions.
34132
34133 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34134
34135         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
34136         Remove code.
34137         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
34138         Likewise.
34139         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
34140         Likewise.
34141         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
34142         Likewise.
34143         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
34144         Likewise.
34145         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
34146         Likewise.
34147         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
34148         Likewise.
34149         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
34150         Likewise.
34151         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
34152         Likewise.
34153         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
34154         Likewise.
34155         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
34156         Likewise.
34157         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
34158         Likewise.
34159         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
34160         Likewise.
34161         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
34162         Likewise.
34163         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
34164         Likewise.
34165         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
34166         Likewise.
34167         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
34168         Likewise.
34169
34170 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34171
34172         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
34173         to avoid alignment traps in non-cacheable memory.
34174         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
34175
34176         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
34177         multiarch objects.
34178         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
34179         file: multiarch power7 memmove.
34180         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
34181         multiarch default memmove.
34182         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
34183         multiarch memove for powerpc32/power4.
34184
34185         * string/bcopy.c: Use full path to include memmove.c.
34186         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
34187         multiarch objects.
34188         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
34189         bcopy for powerpc64.
34190         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
34191         bcopy for powerpc64.
34192         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
34193         and memmove implementations.
34194         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
34195         optimized multiarch memmove for POWER7/powerpc64.
34196         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
34197         default multiarch memmove for powerpc64.
34198         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
34199         multiarch for powerpc64.
34200         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
34201         for POWER7/powerpc64.
34202         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
34203         memmove for POWER7/powerpc64.
34204
34205         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
34206         glibc default one.
34207
34208         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
34209         __ELF_NATIVE_CLASS equal to 64.
34210
34211 2014-07-07  Roland McGrath  <roland@hack.frob.com>
34212
34213         * sysdeps/nptl/lowlevellock.h: File removed.
34214
34215         * NEWS: NPTL is no longer an add-on!
34216         * nptl/internaltypes.h: Moved ...
34217         * sysdeps/nptl/internaltypes.h: ... here.
34218         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
34219         * sysdeps/nptl/fork.c: Likewise.
34220         * sysdeps/nptl/gai_misc.h: Likewise.
34221         * sysdeps/nptl/librt-cancellation.c: Likewise.
34222         * sysdeps/nptl/jmp-unwind.c: Likewise.
34223         * sysdeps/nptl/setxid.h: Likewise.
34224         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
34225         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
34226         * sysdeps/unix/sysv/linux/arm/Implies: New file.
34227         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
34228         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
34229         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
34230         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
34231         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
34232         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
34233         * sysdeps/unix/sysv/linux/mips/Implies: New file.
34234         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
34235         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
34236         * sysdeps/unix/sysv/linux/sh/Implies: New file.
34237         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
34238         * sysdeps/unix/sysv/linux/tile/Implies: New file.
34239         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
34240         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
34241         * nptl/Makeconfig: Moved ...
34242         * sysdeps/nptl/Makeconfig: ... here.
34243         * nptl/configure: File removed.
34244         * nptl/ANNOUNCE: File removed.
34245         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
34246         * sysdeps/unix/sysv/linux/configure: Regenerated.
34247
34248         * nptl/Makefile (routines): Add libc_pthread_init,
34249         libc_multiple_threads, register-atfork and unregister-atfork.
34250         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
34251         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
34252         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
34253         pthread-pi-defines.sym, structsem.sym.
34254         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
34255         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
34256         [$(subdir) = nptl] (tests): Add tst-setgetname.
34257         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
34258         * sysdeps/unix/sysv/linux/sigaction.c: Just include
34259         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
34260         [!LIBC_SIGACTION]: Remove aliases.
34261         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
34262         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
34263         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
34264         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
34265         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
34266         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
34267         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
34268         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
34269         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
34270         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
34271         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
34272         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
34273         __libc_allocate_rtsig_private.
34274         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
34275         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
34276         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
34277         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
34278         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
34279         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
34280         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
34281         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
34282         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
34283         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
34284         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
34285         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
34286         * nptl/internaltypes.h: ... here.
34287         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
34288         * sysdeps/nptl/jmp-unwind.c: ... here.
34289         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
34290         * nptl/libc-lowlevellock.c: ... here.
34291         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
34292         * nptl/libc_multiple_threads.c: ... here.
34293         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
34294         * nptl/libc_pthread_init.c: ... here.
34295         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
34296         * nptl/lowlevelbarrier.sym: ... here.
34297         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
34298         * nptl/lowlevelcond.sym: ... here.
34299         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
34300         * nptl/lowlevellock.c: ... here.
34301         * nptl/lowlevellock.h: Moved ...
34302         * sysdeps/nptl/lowlevellock.h: ... here.
34303         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
34304         * nptl/lowlevelrobustlock.c: ... here.
34305         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
34306         * nptl/lowlevelrobustlock.sym: ... here.
34307         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
34308         * nptl/lowlevelrwlock.sym: ... here.
34309         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
34310         * nptl/pt-fork.c: ... here.
34311         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
34312         * nptl/pthread-pi-defines.sym: ... here.
34313         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
34314         * nptl/pthread_attr_getaffinity.c: ... here.
34315         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
34316         * nptl/pthread_attr_setaffinity.c: ... here.
34317         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
34318         * nptl/pthread_mutex_cond_lock.c: ... here.
34319         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
34320         Update #include.
34321         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
34322         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
34323         * nptl/pthread_once.c: ... here, replacing old file.
34324         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
34325         * nptl/pthread_yield.c: ... here.
34326         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
34327         * nptl/register-atfork.c: ... here.
34328         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
34329         * nptl/sem_post.c: ... here.
34330         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
34331         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
34332         * nptl/sem_timedwait.c: ... here.
34333         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
34334         * nptl/sem_trywait.c: ... here.
34335         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
34336         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
34337         * nptl/sem_wait.c: ... here.
34338         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
34339         * nptl/structsem.sym: ... here.
34340         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
34341         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
34342         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
34343         * nptl/unregister-atfork.c: ... here.
34344         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
34345         * nptl/unwindbuf.sym: ... here.
34346         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
34347         * sysdeps/nptl/fork.c: ... here.
34348         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
34349         * sysdeps/nptl/fork.h: ... here.
34350         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
34351         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
34352         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
34353         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
34354         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
34355         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
34356         * sysdeps/unix/sysv/linux/getpid.c: ... here.
34357         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
34358         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
34359         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
34360         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
34361         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
34362         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
34363         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
34364         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
34365         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
34366         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
34367         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
34368         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
34369         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
34370         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
34371         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
34372         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
34373         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
34374         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
34375         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
34376         * sysdeps/unix/sysv/linux/raise.c: ... here.
34377         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
34378         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
34379         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
34380         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
34381         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
34382         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
34383         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
34384         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
34385         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
34386         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
34387         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
34388         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
34389         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
34390         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
34391         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
34392
34393 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
34394
34395         * sysdeps/generic/memcopy.h: Add comment for
34396         MEMCPY_OK_FOR_FWD_MEMMOVE.
34397
34398 2014-07-04  Will Newton  <will.newton@linaro.org>
34399
34400         * string/memchr.c: Merge from gnulib.
34401         [_LIBC]: Remove conditionals.
34402         (__ptr_t): Remove define.
34403         (LONG_MAX_32_BITS): Likewise.
34404         (LONG_MAX): Likewise.
34405         (MEMCHR): Use ANSI prototype and optimize algorithm.
34406
34407         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
34408
34409 2014-07-03  Roland McGrath  <roland@hack.frob.com>
34410
34411         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
34412         (lll_futex_timed_wait_bitset): Fix syscall argument count.
34413
34414         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
34415         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
34416         in a bare environment with no <stdlib.h> installed.
34417         * sysdeps/nptl/configure: Regenerated.
34418
34419         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
34420
34421         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
34422         AC_EGREP_CPP for kernel header checks, so they only succeed if
34423         including <linux/version.h> actually works right.
34424         * sysdeps/unix/sysv/linux/configure: Regenerated.
34425
34426         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
34427         value so it's not diagnosed as unused.
34428
34429         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
34430         thing) with "ifeq ($(subdir),rt)".
34431
34432 2014-07-03  Richard Henderson  <rth@redhat.com>
34433
34434         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
34435         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
34436         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
34437
34438         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
34439         (math_force_eval): New.
34440
34441         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
34442         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
34443
34444         * sysdeps/alpha/fpu/s_round.c: Remove file.
34445         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
34446
34447         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
34448         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
34449         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
34450         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
34451         (_dl_start, print_statistics): Likewise.
34452         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
34453         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
34454
34455         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34456         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34457         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34458         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34459         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34460         (HP_SMALL_TIMING_AVAIL): Define.
34461         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34462         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34463         (HP_SMALL_TIMING_AVAIL): Define.
34464         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34465         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34466
34467         * sysdeps/aarch64/hp-timing.h: New file.
34468
34469         * sysdeps/generic/hp-timing.h: Remove dead comment.
34470         * sysdeps/generic/hp-timing-common.h: New file.
34471         * sysdeps/alpha/hp-timing.h: Include it.
34472         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
34473         * sysdeps/i386/i686/hp-timing.h: Likewise.
34474         * sysdeps/ia64/hp-timing.h: Likewise.
34475         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
34476         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
34477         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
34478         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
34479         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
34480         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
34481         (hp_timing_t): New.
34482
34483         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
34484         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
34485         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
34486         * elf/rtld.c (_dl_start_final): Likewise.
34487         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
34488         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34489         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34490         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34491         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34492         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34493         (HP_TIMING_DIFF_INIT): Remove.
34494         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34495         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34496         (HP_TIMING_DIFF_INIT): Remove.
34497         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34498         * sysdeps/i386/i686/hp-timing.c: Remove file.
34499         * sysdeps/x86_64/hp-timing.c: Remove file.
34500         * sysdeps/ia64/hp-timing.c: Remove file.
34501         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
34502         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
34503         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
34504         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
34505
34506         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
34507         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
34508         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
34509         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34510         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34511         (HP_TIMING_ACCUM): Remove.
34512         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34513         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
34514         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34515
34516         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
34517         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
34518         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
34519         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
34520         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
34521         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34522         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
34523         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34524
34525         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
34526
34527 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
34528
34529         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
34530
34531 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34532
34533         Sync up with gettext.
34534         * intl/loadmsgcat.c: Define O_BINARY if not defined.
34535         [_MSC_VER]: Include malloc.h
34536         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
34537         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
34538         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
34539         TEMP_FAILURE_RETRY.  Cast return of alloca.
34540         [!_LIBC] Call gl_rwlock_init.
34541         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
34542
34543 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34544
34545         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
34546         before checking its value.
34547
34548 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34549
34550         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
34551
34552         * debug/memcpy_chk.c: Don't include pagecopy.h.
34553         * debug/mempcpy_chk.c: Likewise.
34554         * string/memcpy.c: Likewise.
34555         * string/memmove.c: Likewise.
34556         * sysdeps/powerpc/memmove.c: Likewise.
34557         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
34558         definition of PAGE_COPY_FWD_MAYBE here...
34559         * sysdeps/generic/pagecopy.h: ... from here.
34560         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
34561
34562 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34563             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34564
34565         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
34566         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
34567         optimizations.
34568         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34569         (__libc_ifunc_impl_list): Likewise.
34570         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
34571         multiarch strcat for PPC64.
34572         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
34573         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
34574
34575 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34576
34577         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
34578
34579 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34580
34581         * intl/loadmsgcat.c: Remove declaration of
34582         get_sysdep_segment_value.
34583         (get_sysdep_segment_value): Use ISO C style.
34584         (_nl_load_domain): Use ISO C style.  Get rid of redundant
34585         semicolon.  Fix typo and formatting in comment.
34586         (_nl_unload_domain): Use ISO C style.
34587
34588         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
34589
34590 2014-07-02  Will Newton  <will.newton@linaro.org>
34591
34592         * malloc/obstack.c: Merge from gnulib master.
34593         [HAVE_CONFIG_H]: Remove conditional code.
34594         [!_LIBC]: Include config.h.
34595         [!ELIDE_CODE]: Don't include inttypes.h, include
34596         stdint.h unconditionally.
34597         (print_and_abort): Mark as _Noreturn.
34598         (_obstack_allocated_p): Mark as __attribute_pure__.
34599         (obstack_free): Rename to __obstack_free.
34600         [!__attribute__]: Remove conditional code.
34601         * malloc/obstack.h: Merge from gnulib master.
34602         [__cplusplus]: Move conditional down.
34603         [!__attribute_pure__]: Define __attribute_pure__ here
34604         if it is not already defined.
34605         (_obstack_memory_used): Mark as __attribute_pure__.
34606         [!__obstack_free]: Define as obstack_free.
34607         [__GNUC__]: Remove check for ancient NeXT gcc.
34608
34609 2014-07-02  Will Newton  <will.newton@linaro.org>
34610             Paul Eggert  <eggert@cs.ucla.edu>
34611
34612         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
34613
34614 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34615
34616         * resolv/gethnamaddr.c: Add comment warning that the file is
34617         not maintained.
34618
34619 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
34620
34621         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
34622         entries.
34623
34624         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
34625         entry for aio_cancel and aio_cancel64.
34626         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
34627         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
34628         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
34629         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
34630         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
34631         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
34632         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
34633         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
34634         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
34635         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
34636         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
34637         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
34638         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
34639
34640 2014-07-01  Roland McGrath  <roland@hack.frob.com>
34641
34642         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
34643         * nptl/pthread_mutex_lock.c: Likewise.
34644         * nptl/pthread_mutex_timedlock.c: Likewise.
34645         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
34646
34647 2014-07-01  Richard henderson  <rth@redhat.com>
34648
34649         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
34650         (__isnan, __isnanl): Remove.
34651         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
34652
34653         * sysdeps/alpha/fpu/libm-test-ulps: Update.
34654
34655 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
34656
34657         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34658
34659 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
34660
34661         * resolv/nss_dns/dns-host.c (getanswer_r)
34662         [MULTI_PTRS_ARE_ALIASES]: Remove code.
34663
34664 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
34665
34666         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34667         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
34668         undefine.
34669         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
34670         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
34671
34672 2014-07-01  Roland McGrath <roland@hack.frob.com>
34673
34674         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
34675         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
34676
34677         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
34678         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
34679
34680         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
34681         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
34682         ... here.
34683         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
34684         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
34685
34686         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
34687         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
34688         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
34689         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
34690
34691         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
34692         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
34693         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
34694         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
34695         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
34696         Moved ...
34697         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
34698         ... here.
34699         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
34700         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
34701         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
34702         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
34703         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
34704         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
34705         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
34706         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
34707         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
34708         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
34709         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
34710         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
34711         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
34712         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
34713         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
34714         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
34715         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
34716         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
34717         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
34718         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
34719         ... here.
34720         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
34721         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
34722         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
34723         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
34724         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
34725         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
34726         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
34727         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
34728
34729 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
34730
34731         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
34732         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
34733         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
34734         Add sysdep.
34735
34736 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34737
34738         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34739
34740 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
34741
34742         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
34743         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34744
34745         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
34746
34747         * sysdeps/arm/libm-test-ulps: Regenerated.
34748
34749 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
34750             Roland McGrath <roland@hack.frob.com>
34751
34752         * test-skeleton.c (signal_handler): Kill the whole process group
34753         before killing the child individually.
34754         (main): Report any failure on `setpgid'.
34755
34756 2014-06-30  Roland McGrath  <roland@hack.frob.com>
34757
34758         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
34759         from _TLS_H to _ARM_NPTL_TLS_H.
34760         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
34761         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
34762
34763 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
34764
34765         [BZ #16539]
34766         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
34767         (__expm1l): Return argument unchanged when small but not
34768         subnormal.
34769
34770         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
34771         include macro name.
34772         (_FP_UNPACK_RAW_1_P): Likewise.
34773         (_FP_PACK_RAW_1): Likewise.
34774         (_FP_PACK_RAW_1_P): Likewise.
34775         (_FP_MUL_MEAT_1_wide): Likewise.
34776         (_FP_MUL_MEAT_DW_1_hard): Likewise.
34777         (_FP_MUL_MEAT_1_hard): Likewise.
34778         (_FP_DIV_MEAT_1_imm): Likewise.
34779         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
34780         (_FP_DIV_MEAT_1_udiv): Likewise.
34781         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
34782         (_FP_UNPACK_RAW_2): Likewise.
34783         (_FP_UNPACK_RAW_2_P): Likewise.
34784         (_FP_PACK_RAW_2): Likewise.
34785         (_FP_PACK_RAW_2_P): Likewise.
34786         (_FP_MUL_MEAT_DW_2_wide): Likewise.
34787         (_FP_MUL_MEAT_2_wide): Likewise.
34788         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
34789         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
34790         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
34791         (_FP_MUL_MEAT_2_gmp): Likewise.
34792         (_FP_DIV_MEAT_2_udiv): Likewise.
34793         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
34794         (_FP_FRAC_SRL_4): Likewise.
34795         (_FP_FRAC_SRST_4): Likewise.
34796         (_FP_FRAC_SRS_4): Likewise.
34797         (_FP_UNPACK_RAW_4): Likewise.
34798         (_FP_UNPACK_RAW_4_P): Likewise.
34799         (_FP_PACK_RAW_4): Likewise.
34800         (_FP_PACK_RAW_4_P): Likewise.
34801         (_FP_MUL_MEAT_DW_4_wide): Likewise.
34802         (_FP_MUL_MEAT_4_wide): Likewise.
34803         (_FP_MUL_MEAT_4_gmp): Likewise.
34804         (umul_ppppmnnn): Likewise.
34805         (_FP_DIV_MEAT_4_udiv): Likewise.
34806         (__FP_FRAC_ADD_4): Likewise.
34807         (__FP_FRAC_SUB_3): Likewise.
34808         (__FP_FRAC_SUB_4): Likewise.
34809         (__FP_FRAC_DEC_3): Likewise.
34810         (__FP_FRAC_DEC_4): Likewise.
34811         (__FP_FRAC_ADDI_4): Likewise.
34812         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
34813         (_FP_FRAC_SRL_8): Likewise.
34814         (_FP_FRAC_SRS_8): Likewise.
34815
34816         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
34817         include macro name.
34818         (FP_UNPACK_RAW_EP): Likewise.
34819         (FP_PACK_RAW_E): Likewise.
34820         (FP_PACK_RAW_EP): Likewise.
34821         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
34822         (_FP_ISSIGNAN): Likewise.
34823         (_FP_ADD_INTERNAL): Likewise.
34824         (_FP_FMA): Likewise.
34825         (_FP_CMP): Likewise.
34826         (_FP_SQRT): Likewise.
34827         (_FP_TO_INT): Likewise.
34828         (_FP_FROM_INT): Likewise.
34829         (FP_EXTEND): Likewise.
34830         (_FP_DIV_MEAT_N_loop): Likewise.
34831
34832 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
34833
34834         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
34835         throughout.
34836
34837 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
34838
34839         [BZ #17097]
34840         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
34841         result with correct sign in case of exponents that produce
34842         overflow except for X very close to 1.
34843
34844 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
34845
34846         mktime: merge #if/#ifdef usage from glibc
34847         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
34848         as that works with both Glibc's and Gnulib's style.
34849         See thread starting at Siddhesh Poyarekar's bug report at:
34850         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
34851
34852 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
34853
34854         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
34855         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
34856         * sysdeps/tile/tilegx/memmove.c: Remove file.
34857
34858 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
34859
34860         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
34861         abi-name definition.
34862         * scripts/soversions.awk: Do not handle or generate ABI lines.
34863         * shlib-versions: Remove ABI entries.
34864         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
34865         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
34866
34867 2014-06-27  Roland McGrath  <roland@hack.frob.com>
34868
34869         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
34870         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
34871         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
34872         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
34873         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
34874         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
34875         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
34876         Moved ...
34877         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
34878         ... here.
34879         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
34880         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
34881         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
34882         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
34883         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
34884         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
34885         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
34886         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
34887         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
34888         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
34889         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
34890         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
34891         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
34892         Moved ...
34893         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
34894         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
34895         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
34896         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
34897         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
34898         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
34899         Moved ...
34900         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
34901         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
34902         Moved ...
34903         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
34904         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
34905         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
34906         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
34907         Moved ...
34908         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
34909         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
34910         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
34911         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
34912         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
34913         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
34914         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
34915         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
34916         Moved ...
34917         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
34918         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
34919         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
34920         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
34921         Moved ...
34922         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
34923         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
34924         Moved ...
34925         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
34926         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
34927         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
34928         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
34929         Moved ...
34930         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
34931         ... here.
34932         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
34933         Identical file removed.
34934         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
34935         Moved ...
34936         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
34937         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
34938         Identical file removed.
34939         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
34940         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
34941         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
34942         Moved ...
34943         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
34944         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
34945         Identical file removed.
34946         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
34947         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
34948         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
34949         Identical file removed.
34950         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
34951         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
34952         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
34953         Identical file removed.
34954         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
34955         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
34956         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
34957         Identical file removed.
34958         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
34959         Moved ...
34960         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
34961         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
34962         Identical file removed.
34963         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
34964         Moved ...
34965         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
34966         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
34967         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
34968         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
34969         Identical file removed.
34970         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
34971         Moved ...
34972         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
34973         ... here.
34974         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
34975         Identical file removed.
34976         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
34977         Moved ...
34978         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
34979         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
34980         Identical file removed.
34981         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
34982         Moved ...
34983         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
34984         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
34985         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
34986         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
34987         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
34988         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
34989         Moved ...
34990         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
34991         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
34992         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
34993
34994         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
34995         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
34996         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
34997         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
34998         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
34999
35000 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
35001
35002         [BZ #17092]
35003         * nscd/nscd.c (monitor_child): Return exit status of child
35004         instead of return value from wait syscall.
35005
35006 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35007
35008         * configure.ac (libc_commonpagesize): Remove variable.
35009         (libc_relro_required): Likewise.
35010         (libc_cv_z_relro): Remove configure test.
35011         * configure: Regenerated.
35012         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
35013         variable.
35014         (libc_relro_required): Likewise.
35015         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
35016         (libc_relro_required): Likewise.
35017         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
35018         (libc_relro_required): Likewise.
35019         * sysdeps/arm/preconfigure: Regenerated.
35020         * sysdeps/ia64/preconfigure: Remove file.
35021         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
35022         variable.
35023         (libc_relro_required): Likewise.
35024
35025         [BZ #16561]
35026         [BZ #16562]
35027         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
35028         (__ieee754_yn): Set FE_TONEAREST mode internally and then
35029         recompute overflowing results in original rounding mode.
35030         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
35031         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
35032         recompute overflowing results in original rounding mode.
35033         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
35034         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35035         recompute overflowing results in original rounding mode.
35036         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
35037         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35038         recompute overflowing results in original rounding mode.
35039         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
35040         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35041         recompute overflowing results in original rounding mode.
35042         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
35043         (libc_feholdsetround_ctx): New macro.
35044         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
35045         * sysdeps/i386/fpu/libm-test-ulps: Update.
35046         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
35047
35048 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35049
35050         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
35051         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
35052         corresponding .cpsetup call.
35053
35054 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35055
35056         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
35057         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
35058         * sysdeps/arm/Makefile [$(subdir) = csu]
35059         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
35060         (static-only-routines): Add aeabi_read_tp here.
35061         (shared-only-routines): Add libc-aeabi_read_tp here.
35062         (CFLAGS-libc-start.c): Add -fexceptions here.
35063         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
35064         (sysdep_routines, static-only-routines, shared-only-routines):
35065         Don't add to these here.
35066         (CFLAGS-libc-start.c): Likewise.
35067
35068         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
35069         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
35070         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
35071         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
35072         * sysdeps/arm/Makefile [$(subdir) = rt]
35073         (librt-sysdep_routines, librt-shared-only-routines):
35074         Append rt-aeabi_unwind_cpp_pr1 here.
35075         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
35076         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
35077         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
35078         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35079         Append nptl-aeabi_unwind_cpp_pr1 here.
35080         (tests): Filter out tst-cleanupx4 here.
35081         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
35082         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
35083         Don't do those here.
35084
35085 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35086
35087         * scripts/list-sources.sh: Do not handle ports specially.
35088
35089 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35090
35091         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
35092         * sysdeps/arm/feupdateenv.c: Likewise.
35093
35094         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
35095
35096 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35097
35098         * manual/texinfo.tex: Update to version 2014-05-05.10 with
35099         trailing whitespace removed.
35100         * scripts/config.guess: Update to version 2014-03-23.
35101         * scripts/config.sub: Update to version 2014-05-01
35102         * scripts/install-sh: Update to version 2013-12-25.23.
35103         * scripts/move-if-change: Update from gnulib.
35104
35105 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35106
35107         * debug/memmove_chk.c: Remove pagecopy.h include.
35108
35109 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35110
35111         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
35112         identical to gnulib mktime.
35113
35114 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35115
35116         * configure.ac: Do not test for machine being rs6000.  Do not test
35117         for powerpc*-*soft.
35118         * configure: Regenerated.
35119
35120         [BZ #11505]
35121         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
35122         test.
35123         * configure: Regenerated.
35124         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
35125         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
35126         Remove configure test.
35127         * sysdeps/arm/configure: Regenerated.
35128         * sysdeps/nptl/configure.ac: Do not check
35129         libc_cv_asm_cfi_directives.
35130         * sysdeps/nptl/configure: Regenerated.
35131         * sysdeps/x86_64/nptl/configure.ac: Remove file.
35132         * sysdeps/x86_64/nptl/configure: Remove generated file.
35133         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
35134         unconditional.
35135         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
35136
35137 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35138
35139         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
35140         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
35141         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
35142         it is defined.
35143
35144         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
35145         instead of whether it is defined.
35146         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
35147         * sysdeps/hppa/dl-machine.h: Likewise.
35148         * sysdeps/ia64/dl-machine.h: Likewise.
35149         * sysdeps/m68k/dl-machine.h: Likewise.
35150         * sysdeps/microblaze/dl-machine.h: Likewise.
35151         * sysdeps/mips/dl-machine.: Likewise.
35152         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
35153         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
35154         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
35155         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
35156         * sysdeps/sh/dl-machine.h: Likewise.
35157         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
35158         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
35159         * sysdeps/tile/dl-machine.h: Likewise.
35160         * sysdeps/x86_64/dl-machine.h: Likewise.
35161
35162         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
35163         code.
35164         (verify_persistent_db): Likewise.
35165
35166 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35167
35168         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
35169         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
35170         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
35171         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
35172         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35173         Moved ...
35174         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
35175         ... here.
35176         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
35177         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
35178         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
35179         Identical file removed.
35180         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
35181         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
35182         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
35183         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
35184         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
35185         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
35186         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
35187         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
35188         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
35189         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
35190         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35191         Moved ...
35192         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
35193         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
35194         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
35195         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
35196         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
35197         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35198         Moved ...
35199         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
35200         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
35201         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
35202         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
35203         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
35204         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
35205         Identical file removed.
35206         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
35207         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
35208         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
35209         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
35210         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35211         Moved ...
35212         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
35213         ... here.
35214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
35215         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
35216         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
35217         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
35218         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
35219         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
35220         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
35221         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
35222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
35223         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
35224         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35225         Moved ...
35226         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
35227         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
35228         Moved ...
35229         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
35230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
35231         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
35232         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35233         Moved ...
35234         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
35235         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
35236         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
35237
35238         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
35239         folded into ...
35240         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
35241         * sysdeps/unix/sysv/linux/s390/Versions
35242         (libpthread: GLIBC_2.19): New version set.
35243         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
35244         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
35245         (librt: GLIBC_2.3.3): New version set.
35246         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
35247         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
35248         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
35249         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
35250         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
35251         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
35252         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
35253         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
35254         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
35255         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
35256         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
35257         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
35258         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
35259         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
35260         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
35261         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
35262         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
35263         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
35264         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
35265         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
35266         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
35267         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
35268         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
35269         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
35270         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
35271         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
35272         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
35273         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
35274         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
35275         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
35276         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
35277         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
35278         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
35279         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
35280         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
35281         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
35282         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
35283         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
35284         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
35285         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
35286         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
35287         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
35288         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
35289         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
35290         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
35291
35292         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
35293         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
35294         (__libc_vfork): Define the function under this name.
35295         [!NOT_IN_libc] (__vfork): Make this an alias.
35296         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35297         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
35298         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
35299         (__libc_vfork): Define the function under this name.
35300         [!NOT_IN_libc] (__vfork): Make this an alias.
35301         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35302         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
35303         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
35304         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
35305         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
35306         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
35307
35308         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
35309         code that was previously under [RESET_PID].
35310         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
35311         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
35312         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
35313
35314         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
35315         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
35316         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
35317         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
35318         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
35319         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
35320         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
35321         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
35322         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
35323         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
35324         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
35325         Moved ...
35326         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
35327         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
35328         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
35329         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
35330         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
35331         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
35332         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
35333         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
35334         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
35335         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
35336         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
35337         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
35338         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
35339         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
35340         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
35341         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
35342         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
35343         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
35344         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
35345         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
35346         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
35347         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
35348         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
35349         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
35350         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
35351         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
35352         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
35353         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
35354         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
35355
35356 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35357
35358         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
35359         that was previously under [RESET_PID].
35360         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
35361
35362 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35363
35364         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
35365         not undefine and redefine.
35366         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
35367         [O_CLOEXEC]: Make code unconditional.
35368         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
35369         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
35370         <kernel-features.h>.
35371         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
35372         conditional variable definition.
35373         (shm_open) [O_CLOEXEC]: Make code unconditional.
35374         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
35375         code.
35376
35377         * configure.ac (USE_REGPARMS): Don't define here.
35378         * configure: Regenerated.
35379         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
35380         * sysdeps/i386/configure: Regenerated.
35381
35382         * nptl/createthread.c: Don't include kernel-features.h.
35383         * nptl/pthread_cancel.c: Likewise.
35384         * nptl/pthread_condattr_setclock.c: Likewise.
35385         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
35386         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
35387         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
35388         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
35389         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
35390         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
35391         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
35392         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
35393         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
35394         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
35395         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
35396         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
35397         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
35398         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
35399         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
35400         * nscd/gai.c: Likewise.
35401         * nss/nss_db/db-open.c: Likewise.
35402         * sysdeps/generic/ldsodefs.h: Likewise.
35403         * sysdeps/sh/nptl/tls.h: Likewise.
35404         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
35405         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
35406         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
35407         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
35408         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
35409         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
35410         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
35411         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
35412         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
35413         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
35414         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
35415         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
35416         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
35417         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
35418         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
35419         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
35420         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
35421         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
35422         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
35423         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
35424         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
35425         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
35426         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
35427         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
35428         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
35429         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
35430         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
35431         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
35432         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
35433         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
35434         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
35435         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
35436         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
35437         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
35438         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
35439         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
35440         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
35441         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
35442         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
35443         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
35444         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
35445         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
35446         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
35447         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
35448         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
35449         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
35450         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
35451         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
35452         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
35453         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
35454         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
35455         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
35456         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
35457         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
35458         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
35459         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
35460         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
35461         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
35462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
35463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
35464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
35465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
35466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
35467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
35468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
35469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
35470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
35471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
35472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
35473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
35474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
35475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
35476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
35477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
35478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
35479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
35480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
35481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
35482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
35483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
35484         * sysdeps/unix/sysv/linux/pread.c: Likewise.
35485         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
35486         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
35487         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
35488         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
35489         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
35490         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
35491         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
35492         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
35493         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
35494         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
35495         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
35496         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
35497         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
35498         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
35499         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
35500         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
35501         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
35502         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
35503         * sysdeps/unix/sysv/linux/system.c: Likewise.
35504         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
35505         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
35506         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
35507         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
35508         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
35509         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
35510         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
35511
35512         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
35513         * configure: Regenerated.
35514         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
35515
35516         * configure.ac (base_machine): Do not set specially for particular
35517         machines here.
35518         * configure: Regenerated.
35519         * sysdeps/powerpc/preconfigure: Move machine and base_machine
35520         settings from configure.ac.
35521         * sysdeps/i386/preconfigure: New file.
35522         * sysdeps/s390/preconfigure: Likewise.
35523         * sysdeps/sh/preconfigure: Likewise.
35524         * sysdeps/sparc/preconfigure: Likewise.
35525
35526 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35527
35528         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
35529         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
35530         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
35531         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
35532         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
35533         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
35534         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
35535         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
35536         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
35537         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
35538         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
35539         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
35540         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
35541         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
35542         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
35543         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
35544         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
35545         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
35546         * sysdeps/sparc/sparc64/Makefile: ... appended here.
35547
35548         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
35549         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
35550         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
35551         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
35552         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
35553         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
35554         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
35555         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
35556         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
35557         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
35558         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
35559         * sysdeps/sparc/sparc32/sem_post.c: ... here.
35560         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
35561         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
35562         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
35563         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
35564         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
35565         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
35566         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
35567         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
35568         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
35569         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
35570         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
35571         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
35572         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
35573         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
35574         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
35575         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
35576         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
35577         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
35578         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
35579         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
35580         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
35581         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
35582         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
35583         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
35584         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
35585         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
35586
35587         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
35588         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
35589         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
35590         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
35591         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35592         Moved ...
35593         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
35594         ... here.
35595         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
35596         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
35597         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
35598         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
35599         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
35600         Moved ...
35601         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
35602         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
35603         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
35604         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
35605         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
35606         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
35607         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
35608         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35609         Moved ...
35610         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
35611         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35612         Moved ...
35613         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
35614         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
35615         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
35616         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35617         Moved ...
35618         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
35619         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
35620         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
35621         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
35622         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
35623         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
35624         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
35625         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
35626         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
35627         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35628         Moved ...
35629         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
35630         ... here.
35631         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
35632         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
35633         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
35634         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
35635         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
35636         Moved ...
35637         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
35638         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
35639         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
35640         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
35641         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
35642         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
35643         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
35644         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35645         Moved ...
35646         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
35647         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35648         Moved ...
35649         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
35650         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
35651         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
35652         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35653         Moved ...
35654         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
35655         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
35656         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
35657         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
35658         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
35659
35660 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35661
35662         * timezone/checktab.awk: Update from tzcode 2014e.
35663         * timezone/private.h: Likewise.
35664         * timezone/tzfile.h: Likewise.
35665         * timezone/zdump.c: Likewise.
35666         * timezone/zic.c: Likewise.
35667
35668         * sysdeps/unix/sysv/linux/kernel-features.h
35669         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
35670         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
35671         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
35672         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
35673         Remove conditional code.
35674
35675 2014-06-25  Will Newton  <will.newton@linaro.org>
35676
35677         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
35678         (_dl_arm_cap_flags): Add HWCAP2 values.
35679         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
35680         (_DL_HWCAP_COUNT): Increase to 37.
35681         (_DL_HWCAP_LAST): New define.
35682         (_DL_HWCAP2_LAST): New define.
35683         (_dl_procinfo): Add support for printing
35684         AT_HWCAP2 entries.
35685         (_dl_string_hwcap): Use _dl_hwcap_string.
35686
35687 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35688
35689         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35690
35691 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35692
35693         * README: Do not mention ports directory.
35694
35695         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
35696         Remove macro.
35697         * sysdeps/unix/sysv/linux/futimes.c: Do not include
35698         <kernel-features.h>.
35699         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
35700         conditional variable definition.
35701         (__futimes): Update comment.
35702         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
35703         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
35704
35705         [BZ #16560]
35706         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
35707         arguments close to 0.
35708         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
35709         Likewise.
35710         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
35711         Likewise.
35712         * math/auto-libm-test-in: Add more tests of exp10.
35713         * math/auto-libm-test-out: Regenerated.
35714         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35715
35716         * sysdeps/unix/sysv/linux/kernel-features.h
35717         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
35718         * sysdeps/unix/sysv/linux/readv.c: Do not include
35719         <kernel-features.h>.
35720         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
35721         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
35722         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
35723         unconditional.
35724         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
35725         conditional code.
35726         * sysdeps/unix/sysv/linux/writev.c: Do not include
35727         <kernel-features.h>.
35728         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
35729         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
35730         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
35731         unconditional.
35732         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
35733         conditional code.
35734
35735 2014-06-25  Will Newton  <will.newton@linaro.org>
35736
35737         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
35738         comment changes throughout the file.  Remove checks
35739         for HAVE_*_H definitions that are not required.
35740         (__gen_tempname): Call abort if an unknown kind value is
35741         passed.
35742
35743 2014-06-25  Andreas Schwab  <schwab@suse.de>
35744
35745         [BZ #17086]
35746         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
35747         scalbln, scalblnf, scalblnl in libc.
35748
35749 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35750
35751         [BZ #17086]
35752         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
35753         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
35754         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
35755
35756 2014-06-24  Roland McGrath  <roland@hack.frob.com>
35757
35758         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
35759         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
35760         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
35761         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
35762         Update #include.
35763         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
35764         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
35765         Update #include.
35766         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
35767         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
35768         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
35769         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
35770         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
35771         * sysdeps/x86/bits/pthreadtypes.h: ... here.
35772         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
35773         * sysdeps/x86/bits/semaphore.h: ... here.
35774         * sysdeps/x86/nptl/elide.h: Moved ...
35775         * sysdeps/x86/elide.h: ... here.
35776         * sysdeps/x86_64/nptl/Implies: File removed.
35777         * sysdeps/i386/nptl/Implies: File removed.
35778
35779 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
35780
35781         [BZ #16539]
35782         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
35783         return the argument for normal arguments with exponent below -64.
35784         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
35785         Likewise.
35786         * math/auto-libm-test-in: Add another test of expm1.
35787         * math/auto-libm-test-out: Regenerated.
35788
35789         [BZ #16287]
35790         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
35791         calling __erfcl for arguments at least 16.
35792         * math/auto-libm-test-in: Add more tests of erf.
35793         * math/auto-libm-test-out: Regenerated.
35794
35795         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
35796         individual architectures.
35797         * sysdeps/unix/sysv/linux/configure: Regenerated.
35798         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
35799         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
35800         * sysdeps/unix/sysv/linux/powerpc/configure.ac
35801         (ldd_rewrite_script): Define variable.
35802         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
35803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
35804         file.
35805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
35806         generated file.
35807         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
35808         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
35809         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
35810         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
35811         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
35812         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
35813         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
35814         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
35815
35816 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35817
35818         [BZ #17084]
35819         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
35820         Rename member __data.d to __data.__elision_data.
35821
35822 2014-06-24  Wilco  <wdijkstr@arm.com>
35823
35824         * NEWS: Add 16918 to fixed bug list.
35825
35826 2014-06-24  Wilco  <wdijkstr@arm.com>
35827
35828         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
35829
35830 2014-06-24  Wilco  <wdijkstr@arm.com>
35831
35832         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
35833         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
35834         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
35835         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
35836         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
35837         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
35838         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
35839         Use _FPU_MASK_RM.
35840
35841 2014-06-24  Wilco  <wdijkstr@arm.com>
35842
35843         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
35844
35845 2014-06-24  Wilco  <wdijkstr@arm.com>
35846
35847         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
35848         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
35849         * sysdeps/arm/fesetround.c (fesetround): Remove space.
35850         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
35851
35852 2014-06-24  Wilco  <wdijkstr@arm.com>
35853
35854         [BZ #16918]
35855         * sysdeps/arm/feupdateenv.c (feupdateenv):
35856         Rewrite to reduce FPSCR accesses and fix return value.
35857
35858 2014-06-24  Wilco  <wdijkstr@arm.com>
35859
35860         * sysdeps/arm/fclrexcpt.c (feclearexcept):
35861         Optimize to avoid unnecessary FPSCR writes.
35862         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
35863         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
35864         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
35865         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
35866
35867 2014-06-24  Wilco  <wdijkstr@arm.com>
35868
35869         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
35870         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
35871         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
35872         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
35873         Call libc_fetestexcept_vfp.
35874         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
35875         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
35876         __SOFTFP__ ifdef so that they can be built for softfp.
35877
35878 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35879
35880         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
35881         argument type signed char.
35882
35883         * Makerules (check-abi): Dump diff of symlist if the test
35884         fails.
35885
35886 2014-06-23  Roland McGrath  <roland@hack.frob.com>
35887
35888         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
35889         using abort.
35890
35891         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
35892         Remove unused variable ST.
35893
35894 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
35895
35896         [BZ #16354]
35897         [BZ #17061]
35898         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
35899         small arguments before calling __expm1.
35900         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
35901         small arguments before calling __expm1f.
35902         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
35903         small arguments before calling __expm1l.
35904         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
35905         Likewise.
35906         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35907         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
35908         spurious underflow for some cosh tests.
35909         * math/auto-libm-test-out: Regenerated.
35910         * sysdeps/i386/fpu/libm-test-ulps: Update.
35911
35912         [BZ #17050]
35913         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
35914         (__ieee754_y1): Set errno if return value overflows.
35915         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
35916         (__ieee754_y1f): Set errno if return value overflows.
35917         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
35918         (__ieee754_y1l): Set errno if return value overflows.
35919         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
35920         (__ieee754_y1l): Set errno if return value overflows.
35921         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
35922         * math/auto-libm-test-out: Regenerated.
35923
35924         * math/gen-auto-libm-tests.c: Document use of
35925         ignore-zero-inf-sign.
35926         (input_flag_type): Add value flag_ignore_zero_inf_sign.
35927         (input_flags): Add ignore-zero-inf-sign.
35928         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
35929         * math/gen-libm-test.pl (generate_testfile): Handle
35930         ignore-zero-inf-sign.
35931         * math/auto-libm-test-in: Mark some cpow tests with
35932         ignore-zero-inf-sign and some with xfail-rounding.
35933         * math/auto-libm-test-out: Regenerated.
35934         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
35935         * sysdeps/i386/fpu/libm-test-ulps: Update.
35936         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35937
35938         [BZ #16315]
35939         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
35940         overflowing or underflowing operations take place with sign of
35941         result.
35942         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
35943         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
35944         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
35945         (__ieee754_pow): Recompute overflowing and underflowing results in
35946         original rounding mode.
35947         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
35948         (__powl_helper): Allow negative argument X and scale negated value
35949         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
35950         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
35951         overflowing or underflowing operations take place with sign of
35952         result.
35953         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
35954         Include <math.h>.
35955         * math/auto-libm-test-in: Add more tests of pow.
35956         * math/auto-libm-test-out: Regenerated.
35957         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
35958         (pow_tonearest_test_data): Remove.
35959         (pow_test_tonearest): Likewise.
35960         (pow_towardzero_test_data): Likewise.
35961         (pow_test_towardzero): Likewise.
35962         (pow_downward_test_data): Likewise.
35963         (pow_test_downward): Likewise.
35964         (pow_upward_test_data): Likewise.
35965         (pow_test_upward): Likewise.
35966         (main): Don't call removed functions.
35967         * sysdeps/i386/fpu/libm-test-ulps: Update.
35968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35969
35970 2014-06-23  Roland McGrath  <roland@hack.frob.com>
35971
35972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
35973         Moved ...
35974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
35975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
35976         Moved ...
35977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
35978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
35979         Moved ...
35980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
35981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
35982         Moved ...
35983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
35984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
35985         File removed.
35986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
35987         File removed.
35988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
35989         File removed.
35990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
35991         File removed.
35992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
35993         File removed.
35994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
35995         File removed.
35996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
35997         File removed.
35998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
35999         File removed.
36000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
36001         File removed.
36002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
36003         File removed.
36004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
36005         File removed.
36006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
36007         File removed.
36008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
36009         Moved ...
36010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
36011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
36012         Moved ...
36013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
36014         ... here.
36015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
36016         Moved ...
36017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
36018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
36019         Moved ...
36020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
36021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
36022         Moved ...
36023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
36024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
36025         Moved ...
36026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
36027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
36028         Moved ...
36029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
36030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
36031         Moved ...
36032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
36033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
36034         Moved ...
36035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
36036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
36037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
36038         ... here.
36039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
36040         Moved ...
36041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
36042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
36043         Moved ...
36044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
36045         ... here.
36046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
36047         Moved ...
36048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
36049         ... here.
36050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
36051         Moved ...
36052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
36053         ... here.
36054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
36055         Moved ...
36056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
36057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
36058         Moved ...
36059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
36060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
36061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
36062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
36063         Moved ...
36064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
36065         ... here.
36066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
36067         Moved ...
36068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
36069         ... here.
36070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
36071         Moved ...
36072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
36073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
36074         Moved ...
36075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
36076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
36077         Moved ...
36078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
36079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
36080         Moved ...
36081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
36082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
36083         Moved ...
36084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
36085         ... here.
36086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
36087         Moved ...
36088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
36089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
36090         Moved ...
36091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
36092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
36093         Moved ...
36094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
36095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
36096         Moved ...
36097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
36098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
36099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
36100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
36101         Moved ...
36102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
36103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
36104         Moved ...
36105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
36106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
36107         Moved ...
36108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
36109         ... here.
36110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
36111         Moved ...
36112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
36113         ... here.
36114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
36115         Moved ...
36116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
36117         ... here.
36118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
36119         Moved ...
36120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
36121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
36122         Moved ...
36123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
36124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
36125         Moved ...
36126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
36127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
36128         Moved ...
36129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
36130         ... here.
36131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
36132         Moved ...
36133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
36134         ... here.
36135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
36136         Moved ...
36137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
36138         ... here.
36139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
36140         Moved ...
36141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
36142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
36143         Moved ...
36144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
36145
36146 2014-06-23  Will Newton  <will.newton@linaro.org>
36147             Wilco  <wdijkstr@arm.com>
36148
36149         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
36150         implementation.  Include get-rounding-mode.h.
36151         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
36152         [!libc_feholdsetround_noex_ctx]: Define
36153         libc_feholdsetround_noex_ctx.
36154         [!libc_feholdsetround_noexf_ctx]: Define
36155         libc_feholdsetround_noexf_ctx.
36156         [!libc_feholdsetround_noexl_ctx]: Define
36157         libc_feholdsetround_noexl_ctx.
36158         (libc_feholdsetround_ctx): New function.
36159         (libc_feresetround_ctx): New function.
36160         (libc_feholdsetround_noex_ctx): New function.
36161         (libc_feresetround_noex_ctx): New function.
36162
36163 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36164
36165         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
36166         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
36167         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
36168         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
36169         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
36170         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
36171
36172         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
36173         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
36174         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
36175         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
36176         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
36177         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
36178         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
36179         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
36180         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
36181         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
36182         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
36183         Moved ...
36184         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
36185         ... here.
36186         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
36187         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
36188         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
36189         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
36190         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
36191         Moved ...
36192         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
36193         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
36194         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
36195         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
36196         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
36197         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
36198         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
36199         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
36200         Moved ...
36201         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
36202         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
36203         Moved ...
36204         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
36205         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
36206         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
36207         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
36208         Moved ...
36209         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
36210         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
36211         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
36212         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
36213         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
36214         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
36215         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
36216         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
36217         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
36218         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
36219         Moved ...
36220         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
36221         ... here.
36222         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
36223         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
36224         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
36225         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
36226         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
36227         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
36228         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
36229         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
36230         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
36231         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
36232         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
36233         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
36234         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
36235         Moved ...
36236         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
36237         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
36238         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
36239         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
36240         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
36241         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
36242         Moved ...
36243         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
36244         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
36245         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
36246         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
36247         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
36248
36249         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
36250         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
36251         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
36252         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
36253         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
36254         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
36255         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
36256         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
36257         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
36258         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
36259         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
36260         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
36261         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
36262         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
36263         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
36264         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
36265         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
36266         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
36267         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
36268         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
36269         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
36270         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
36271         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
36272         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
36273         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
36274         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
36275         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
36276         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
36277
36278 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36279
36280         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
36281         (FALLOC_FL_COLLAPSE_RANGE): New macro.
36282         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
36283         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
36284         (IPV6_PMTUDISC_INTERFACE): Likewise.
36285         (IPV6_PMTUDISC_OMIT): Likewise.
36286
36287 2014-06-23  Andreas Schwab  <schwab@suse.de>
36288
36289         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
36290         Remove unused errout label.
36291
36292 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36293
36294         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
36295         macro: hardware supports Vector Crypto instructions.
36296
36297 2014-06-23  Will Newton  <will.newton@linaro.org>
36298
36299         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
36300         rather than __builtin_expect.
36301
36302         * elf/dl-lookup.c (undefined_msg): Remove variable.
36303         (_dl_lookup_symbol_x): Replace undefined_msg with string
36304         literal.
36305
36306         * elf/dl-lookup.c (do_lookup_unique): New function.
36307         (do_lookup_x): Move STB_GNU_UNIQUE handling code
36308         to a separate function.
36309
36310 2014-06-23  Andreas Schwab  <schwab@suse.de>
36311
36312         [BZ #17079]
36313         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
36314         before reading the next line.
36315
36316 2014-06-23  Will Newton  <will.newton@linaro.org>
36317
36318         * test-skeleton.c (signal_handler): Use printf and %m
36319         rather than perror.  Use printf rather than fprintf to
36320         stderr.  Use puts rather than fputs to stderr.
36321         (main): Likewise.
36322
36323 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
36324
36325         * nscd/nscd.c (thread_info_t): Remove typedef.
36326         (thread_info): Remove variable.
36327
36328 2014-06-21  Allan McRae  <allan@archlinux.org>
36329
36330         * NEWS: Mention CVE-2014-4043.
36331
36332 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36333
36334         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
36335         * nptl/smp.h: ... here.
36336
36337         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
36338
36339         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
36340         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
36341         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
36342         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
36343
36344         * nptl/allocatestack.c: Include <stack-aliasing.h>.
36345         * nptl/stack-aliasing.h: New file.
36346         * sysdeps/i386/i686/stack-aliasing.h: New file.
36347         * sysdeps/i386/i686/nptl/Makefile: File removed.
36348         * sysdeps/x86_64/stack-aliasing.h: New file.
36349         * sysdeps/x86_64/nptl/Makefile
36350         (CFLAGS-pthread_create.c): Variable removed.
36351
36352         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
36353         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
36354         old file.
36355         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
36356         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
36357         old file.
36358
36359 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
36360
36361         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36362         (__ASSUME_SIGFRAME_V2): Remove macro.
36363         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
36364         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
36365         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
36366         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
36367         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
36368         Declare as function.  Remove conditional macro definitions.
36369         (__default_rt_sa_restorer): Likewise.
36370         (__default_sa_restorer_v1): Remove declaration.
36371         (__default_sa_restorer_v2): Likewise.
36372         (__default_rt_sa_restorer_v1): Likewise.
36373         (__default_rt_sa_restorer_v2): Likewise.
36374         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
36375         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
36376         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
36377
36378 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36379
36380         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
36381         (libpthread-routines): Add sysdep.
36382         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
36383         * sysdeps/unix/sysv/linux/sparc/Versions
36384         (libpthread: GLIBC_2.3.3): New version set.
36385         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
36386         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
36387         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
36388         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
36389         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
36390         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
36391         Moved ...
36392         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
36393         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
36394         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
36395         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
36396         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
36397         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
36398         * sysdeps/sparc/nptl/sem_init.c: ... here.
36399         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
36400         * sysdeps/sparc/nptl/sem_post.c: ... here.
36401         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
36402         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
36403         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
36404         * sysdeps/sparc/nptl/sem_wait.c: ... here.
36405         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
36406         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
36407         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
36408         (libpthread-routines): Add cpu_relax.
36409         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
36410         File removed.
36411         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
36412         (librt: GLIBC_2.3.3): New version set.
36413         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
36414         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
36415         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
36416         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
36417         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
36418         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
36419         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
36420         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
36421         Moved ...
36422         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
36423         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
36424         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
36425         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
36426         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
36427         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
36428         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
36429         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
36430         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
36431         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
36432         Moved ...
36433         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
36434         Update #include.
36435         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
36436         Moved ...
36437         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
36438         Update #include.
36439         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
36440         Moved ...
36441         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
36442         Update #include.
36443         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
36444         Moved ...
36445         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
36446         Update #include.
36447         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
36448         Moved ...
36449         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
36450         Update #include.
36451         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
36452         Moved ...
36453         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
36454         Update #include.
36455         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
36456         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
36457         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
36458         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
36459         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
36460         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
36461         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
36462         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
36463         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
36464         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
36465         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
36466         Moved ...
36467         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
36468         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
36469         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
36470         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
36471         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
36472
36473 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36474
36475         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
36476         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
36477         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
36478         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
36479         * nscd/nscd.c: Likewise.
36480         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
36481         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
36482         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
36483         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
36484
36485         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
36486         <kernel-features.h>.
36487         (init_mq_netlink): Remove conditional have_sock_cloexec
36488         definitions.  Remove code conditional on have_sock_cloexec < 0.
36489         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
36490         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
36491         * sysdeps/unix/sysv/linux/opensock.c: Do not include
36492         <kernel-features.h>.
36493         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
36494         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
36495
36496 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
36497
36498         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
36499         Add tests for memset_chk and memset.
36500
36501         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
36502         with AVX2_Usable.
36503
36504 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36505
36506         [BZ #16046]
36507         * elf/tst-dl-iter-static.c: New file.
36508         * elf/Makefile (tests-static): Add tst-dl-iter-static.
36509
36510         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
36511         error.
36512
36513 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36514
36515         * sysdeps/unix/sysv/linux/kernel-features.h
36516         (__ASSUME_F_GETOWN_EX): Remove macro.
36517         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
36518         <kernel-features.h>.
36519         (miss_F_GETOWN_EX): Remove variable or macro.
36520         (do_fcntl): Do not check miss_F_GETOWN_EX.
36521         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
36522
36523         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
36524         Remove macro.
36525         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
36526         [!__ASSUME_AT_RANDOM]: Remove conditional code.
36527         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
36528
36529         * sysdeps/unix/sysv/linux/kernel-features.h
36530         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
36531         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
36532         [ADJ_OFFSET_SS_READ]: Make code unconditional.
36533         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
36534
36535 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36536
36537         [BZ #17075]
36538         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
36539         Fix calculation of the symbol's value.
36540         * sysdeps/arm/tst-armtlsdescloc.c: New file.
36541         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
36542         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
36543         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
36544         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
36545         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
36546         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
36547         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
36548         (modules-names): Add `tst-armtlsdescmod',
36549         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
36550         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
36551         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36552         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
36553         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
36554         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36555         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
36556         ($(objpfx)tst-armtlsdescloc): New dependency.
36557         ($(objpfx)tst-armtlsdescextnow): Likewise.
36558         ($(objpfx)tst-armtlsdescextlazy): Likewise.
36559         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
36560         TLS scheme support.
36561         * sysdeps/arm/configure: Regenerate.
36562
36563 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36564
36565         * include/fcntl.h (__atfct_seterrno): Remove prototype.
36566         (__atfct_seterrno_2): Likewise.
36567         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
36568         <kernel-features.h>.
36569         (__ASSUME_ATFCTS): Do not undefine and redefine.
36570         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
36571         (__have_atfcts): Remove conditional definition.
36572         (__fxstatat([__NR_fstatat64]: Make code unconditional.
36573         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
36574         unreachable if [__ASSUME_ATFCTS].
36575         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
36576         not undefine and redefine.
36577         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
36578         <kernel-features.h>.
36579         (faccessat) [__NR_faccessat]: Make code unconditional.
36580         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
36581         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
36582         <kernel-features.h>.
36583         (fchmodat) [__NR_fchmodat]: Make code unconditional.
36584         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
36585         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
36586         <kernel-features.h>.
36587         (fchownat) [__NR_fchownat]: Make code unconditional.
36588         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
36589         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
36590         <kernel-features.h>.
36591         (futimesat) [__NR_futimesat]: Make code unconditional.
36592         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
36593         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
36594         <kernel-features.h>.
36595         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
36596         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36597         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
36598         <kernel-features.h>.
36599         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
36600         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36601         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
36602         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
36603         <kernel-features.h>.
36604         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
36605         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36606         * sysdeps/unix/sysv/linux/linkat.c: Do not include
36607         <kernel-features.h>.
36608         (linkat) [__NR_linkat]: Make code unconditional.
36609         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36610         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
36611         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
36612         <kernel-features.h>.
36613         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
36614         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36615         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
36616         <kernel-features.h>.
36617         (mkdirat) [__NR_mkdirat]: Make code unconditional.
36618         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
36619         * sysdeps/unix/sysv/linux/openat.c: Do not include
36620         <kernel-features.h>.
36621         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
36622         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
36623         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
36624         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
36625         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
36626         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
36627         <kernel-features.h>.
36628         (readlinkat) [__NR_readlinkat]: Make code unconditional.
36629         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
36630         result of INLINE_SYSCALL directly, not via int variable.
36631         * sysdeps/unix/sysv/linux/renameat.c: Do not include
36632         <kernel-features.h>.
36633         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
36634         (renameat) [__NR_renameat]: Make code unconditional.
36635         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
36636         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
36637         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
36638         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
36639         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
36640         (__ASSUME_ATFCTS): Do not undefine and redefine.
36641         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
36642         <kernel-features.h>.
36643         (symlinkat) [__NR_symlinkat]: Make code unconditional.
36644         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36645         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
36646         <kernel-features.h>.
36647         (unlinkat) [__NR_unlinkat]: Make code unconditional.
36648         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36649         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
36650         (__ASSUME_ATFCTS): Do not undefine and redefine.
36651         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
36652         <kernel-features.h>.
36653         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
36654         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36655         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
36656         <kernel-features.h>.
36657         (__xmknodat) [__NR_mknodat]: Make code unconditional.
36658         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
36659
36660 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
36661
36662         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
36663
36664 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
36665
36666         [BZ #17069]
36667         * posix/regcomp.c (parse_reg_exp): Deallocate partially
36668         constructed tree before returning error.
36669         * posix/bug-regexp36.c: Expand test case.
36670
36671 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
36672
36673         [BZ #6803]
36674         * math/libm-test.inc (scalbln_test_date):
36675         Add errno expectations.
36676         * math/w_scalblnf.c: New File.
36677         Add wrapper which checks for setting errno to ERANGE.
36678         Add weak_alias for corresponding scalbln function.
36679         * math/w_scalbln.c: Likewise.
36680         * math/w_scalblnl.c: Likewise.
36681         * math/Makefile (libm-calls): Add w_scalbln.
36682         * sysdeps/ieee754/flt-32/s_scalblnf.c:
36683         Remove weak_alias for corresponding scalbln function.
36684         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
36685         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
36686         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
36687         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
36688         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
36689         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
36690         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
36691         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
36692         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
36693         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
36694         Remove long_double_symbol for scalblnl function in libm, libc.
36695         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
36696         Add wrapper which checks for setting errno to ERANGE.
36697         Add long_double_symbol for scalblnl function in libm, libc.
36698         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
36699         Remove long_double_symbol for scalblnl in libm.
36700         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
36701         Add wrapper which checks for setting errno to ERANGE.
36702         Add long_double_symbol for scalblnl function in libm.
36703         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
36704         Do not use wrapper because of own implementation.
36705
36706 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
36707
36708         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
36709         3 bytes for __pad1 for x32.
36710         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
36711
36712 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
36713             H.J. Lu  <hongjiu.lu@intel.com>
36714
36715         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
36716         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
36717         * sysdeps/x86_64/multiarch/memset.S: Likewise.
36718         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
36719         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
36720
36721 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
36722
36723         [BZ #17069]
36724         * posix/regcomp.c (parse_expression): Deallocate partially
36725         constructed tree before returning error.
36726         * posix/Makefile.c (tests): Add bug-regex36.
36727         (generated): Add bug-regex36.mtrace.
36728         (tests-special): Add $(objpfx)bug-regex36-mem.out
36729         (bug-regex36-ENV): New variable.
36730         ($(objpfx)bug-regex36-mem.out): New rule.
36731         * posix/bug-regex36.c: New file.
36732
36733 2014-06-19  Will Newton  <will.newton@linaro.org>
36734
36735         * malloc/malloc.c (systrim): If extra is zero then return
36736         early.
36737
36738 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
36739
36740         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
36741
36742 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
36743
36744         * sysdeps/aarch64/strchr.S: New file.
36745
36746 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
36747
36748         [BZ #17022]
36749         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
36750         from arguments -2 or below.
36751         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
36752         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
36753
36754 2014-06-18  Andreas Schwab  <schwab@suse.de>
36755
36756         [BZ #17062]
36757         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
36758         of a bracket expr not to run off the end of the string.
36759         * posix/Makefile (tests): Add tst-fnmatch3.
36760         * posix/tst-fnmatch3.c: New file.
36761
36762 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
36763
36764         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
36765         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
36766         [$(cross-compiling) = no]: Likewise.
36767         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
36768         [$(cross-compiling) = no]: Likewise.
36769
36770 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36771
36772         [BZ #17031]
36773         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
36774         double, adjusted for any remainder from the high double.
36775         * math/libm-test.inc (nearbyint): Add tests.
36776         (rint): Likewise.
36777
36778 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36779
36780         * nptl/sysdeps/powerpc/Makefile: Moved ...
36781         * sysdeps/powerpc/nptl/Makefile: ... here.
36782         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
36783         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
36784         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
36785         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
36786         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
36787         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
36788         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
36789         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
36790         * nptl/sysdeps/powerpc/tls.h: Moved ...
36791         * sysdeps/powerpc/nptl/tls.h: ... here.
36792
36793 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
36794
36795         [BZ #16681]
36796         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
36797         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
36798         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
36799         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
36800         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
36801         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
36802         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
36803         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
36804         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
36805
36806 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
36807
36808         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
36809
36810 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
36811
36812         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
36813         defined operator.
36814
36815         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
36816         $TIMEOUTFACTOR.
36817
36818 2014-06-16  Florian Weimer  <fweimer@redhat.com>
36819
36820         [BZ #17058]
36821         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
36822         non-executed part of the test.
36823
36824 2014-06-16  Andreas Schwab  <schwab@suse.de>
36825
36826         * string/bits/string2.h (strdup, strndup): Update feature guard.
36827
36828 2014-06-14  David S. Miller  <davem@davemloft.net>
36829
36830         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36831
36832 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
36833
36834         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
36835         that was previously under [RESET_PID].
36836         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
36837
36838         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
36839         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
36840         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
36841         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
36842         (__libc_vfork): New strong alias.
36843         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
36844
36845 2014-06-14 Andi Kleen  <ak@linux.intel.com>
36846
36847         * sysdeps/generic/elide.h: New file.
36848
36849 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
36850
36851         * Makefile (installed-headers): Adjust path of pthread.h header.
36852
36853 2014-06-13  Roland McGrath  <roland@hack.frob.com>
36854
36855         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
36856         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
36857         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
36858         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
36859
36860         * nptl/sysdeps/s390/Makefile: Moved ...
36861         * sysdeps/s390/nptl/Makefile: ... here.
36862         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
36863         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
36864         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
36865         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
36866         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
36867         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
36868         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
36869         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
36870         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
36871         * sysdeps/s390/nptl/pthreaddef.h: ... here.
36872         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
36873         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
36874         * nptl/sysdeps/s390/tls.h: Moved ...
36875         * sysdeps/s390/nptl/tls.h: ... here.
36876
36877         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
36878         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
36879
36880 2014-06-13  David S. Miller  <davem@davemloft.net>
36881
36882         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
36883         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
36884         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
36885         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
36886         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
36887         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
36888         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
36889         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
36890         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
36891         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
36892         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
36893         Remove RESET_PID cpp guards.
36894         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
36895         Remove RESET_PID cpp guards.
36896         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
36897
36898 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
36899
36900         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
36901         __sp to uintptr_t.
36902
36903 2014-06-13  Andi Kleen  <ak@linux.intel.com>
36904
36905         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
36906         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
36907         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
36908         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
36909         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
36910         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
36911         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
36912         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
36913         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
36914         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
36915         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
36916         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
36917         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
36918         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
36919         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
36920         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
36921         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
36922         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
36923         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
36924         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
36925
36926         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
36927         (pthread_rwlock_rdlock): Add elision.
36928         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
36929         (pthread_rwlock_wrlock): Add elision.
36930         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
36931         (pthread_rwlock_trywrlock): Add elision.
36932         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
36933         (pthread_rwlock_tryrdlock): Add elision.
36934         * nptl/pthread_rwlock_unlock.c: Include elide.h.
36935         (pthread_rwlock_tryrdlock): Add elision unlock.
36936         * nptl/sysdeps/pthread/pthread.h:
36937         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
36938         (PTHREAD_RWLOCK_INITIALIZER,
36939         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
36940         Handle new elision field.
36941         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
36942         * sysdeps/arm/nptl/bits/pthreadtypes.h
36943         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36944         * sysdeps/sh/nptl/bits/pthreadtypes.h
36945         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36946         * sysdeps/tile/nptl/bits/pthreadtypes.h
36947         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36948         * sysdeps/a/nptl/bits/pthreadtypes.h
36949         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36950         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
36951         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36952         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
36953         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36954         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
36955         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36956         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
36957         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36958         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
36959         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36960         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
36961         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36962         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
36963         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36964         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
36965         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36966         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
36967         (elision_init): Set try_xbegin to zero when no RTM.
36968         * sysdeps/x86/nptl/bits/pthreadtypes.h
36969         (pthread_rwlock_t): Change __pad1 to __rwelision.
36970         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
36971
36972 2014-06-13  Andi Kleen  <ak@linux.intel.com>
36973
36974         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
36975         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
36976         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
36977         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
36978
36979 2014-06-13  Meador Inge  <meadori@codesourcery.com>
36980
36981         [BZ #16996]
36982         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
36983         that the cached result has been set before returning it.
36984
36985 2014-06-12  Roland McGrath  <roland@hack.frob.com>
36986
36987         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
36988         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
36989         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
36990         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
36991         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
36992         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
36993
36994         * nptl/sysdeps/sparc/Makefile: Moved ...
36995         * sysdeps/sparc/nptl/Makefile: ... here.
36996         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
36997         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
36998         * nptl/sysdeps/sparc/tls.h: Moved ...
36999         * sysdeps/sparc/nptl/tls.h: ... here.
37000         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
37001         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
37002         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
37003         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
37004         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
37005         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
37006         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
37007         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
37008         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
37009         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
37010         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
37011         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
37012         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
37013         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
37014         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
37015         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
37016         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
37017         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
37018         Update #include.
37019         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
37020         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
37021         Update #include.
37022         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
37023         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
37024         Update #include.
37025         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
37026         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
37027         Update #include.
37028
37029         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37030
37031         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
37032         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
37033
37034         * sysdeps/pthread/posix-timer.h: Include <list.h>.
37035         (struct list_links): Type removed.
37036         (struct thread_node, struct timer_node): Replace struct list_links
37037         with struct list_head.
37038         (list_unlink_ip): Likewise.
37039         * sysdeps/pthread/timer_routines.c
37040         (timer_free_list, thread_free_list, thread_active_list): Likewise.
37041         (list_append, list_insbefore): Likewise.
37042         (list_init): Function removed.
37043         (thread_init, init_module): Use INIT_LIST_HEAD instead.
37044         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
37045         * sysdeps/pthread/Makefile: ... here, new file.
37046
37047         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
37048         * sysdeps/nptl/Implies: ... here.
37049         * sysdeps/unix/sysv/linux/Implies: Add nptl.
37050         * nptl/sysdeps/pthread/list.h: Moved ...
37051         * include/list.h: ... here.
37052         * nptl/sysdeps/pthread/createthread.c: Moved ...
37053         * nptl/createthread.c: ... here.
37054         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
37055         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
37056         * nptl/pt-longjmp.c: ... here.
37057         * nptl/sysdeps/pthread/Makefile: Moved ...
37058         * sysdeps/nptl/Makefile: ... here.
37059         * nptl/sysdeps/pthread/Subdirs: Moved ...
37060         * sysdeps/nptl/Subdirs: ... here.
37061         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
37062         * sysdeps/nptl/aio_misc.h: ... here.
37063         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
37064         * sysdeps/nptl/bits/libc-lock.h: ... here.
37065         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
37066         * sysdeps/nptl/bits/libc-lockP.h: ... here.
37067         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
37068         * sysdeps/nptl/bits/stdio-lock.h: ... here.
37069         * nptl/sysdeps/pthread/configure: Moved ...
37070         * sysdeps/nptl/configure: ... here.
37071         * nptl/sysdeps/pthread/configure.ac: Moved ...
37072         * sysdeps/nptl/configure.ac: ... here.
37073         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
37074         * sysdeps/nptl/gai_misc.h: ... here.
37075         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
37076         * sysdeps/nptl/librt-cancellation.c: ... here.
37077         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
37078         * sysdeps/nptl/malloc-machine.h: ... here.
37079         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
37080         * sysdeps/nptl/pthread-functions.h: ... here.
37081         * nptl/sysdeps/pthread/pthread.h: Moved ...
37082         * sysdeps/nptl/pthread.h: ... here.
37083         * nptl/sysdeps/pthread/setxid.h: Moved ...
37084         * sysdeps/nptl/setxid.h: ... here.
37085         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
37086         * sysdeps/nptl/sigfillset.c: ... here.
37087         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
37088         * sysdeps/nptl/tcb-offsets.h: ... here.
37089         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
37090         * sysdeps/nptl/tst-mqueue8x.c: ... here.
37091         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
37092         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
37093         * nptl/sysdeps/pthread/allocalim.h: Moved ...
37094         * sysdeps/pthread/allocalim.h: ... here.
37095         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
37096         * sysdeps/pthread/bits/sigthread.h: ... here.
37097         * nptl/sysdeps/pthread/flockfile.c: Moved ...
37098         * sysdeps/pthread/flockfile.c: ... here.
37099         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
37100         * sysdeps/pthread/ftrylockfile.c: ... here.
37101         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
37102         * sysdeps/pthread/funlockfile.c: ... here.
37103         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
37104         * sysdeps/pthread/posix-timer.h: ... here.
37105         * nptl/sysdeps/pthread/timer_create.c: Moved ...
37106         * sysdeps/pthread/timer_create.c: ... here.
37107         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
37108         * sysdeps/pthread/timer_delete.c: ... here.
37109         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
37110         * sysdeps/pthread/timer_getoverr.c: ... here.
37111         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
37112         * sysdeps/pthread/timer_gettime.c: ... here.
37113         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
37114         * sysdeps/pthread/timer_routines.c: ... here.
37115         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
37116         * sysdeps/pthread/timer_settime.c: ... here.
37117         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
37118         * sysdeps/pthread/tst-timer.c: ... here.
37119         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
37120         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
37121
37122         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
37123         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
37124
37125         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
37126         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
37127         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
37128         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
37129         Update #include target.
37130         * nptl/sysdeps/i386/i686/Makefile: Moved ...
37131         * sysdeps/i386/i686/nptl/Makefile: ... here.
37132         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
37133         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
37134         Update #include target.
37135         * nptl/sysdeps/i386/i686/tls.h: Moved ...
37136         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
37137         * nptl/sysdeps/i386/Makefile: Moved ...
37138         * sysdeps/i386/nptl/Makefile: ... here.
37139         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
37140         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
37141         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
37142         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
37143         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
37144         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
37145         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
37146         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
37147         * sysdeps/i386/nptl/pthreaddef.h: ... here.
37148         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
37149         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
37150         * nptl/sysdeps/i386/tls.h: Moved ...
37151         * sysdeps/i386/nptl/tls.h: ... here.
37152
37153         * sysdeps/sh/Makefile [$(subdir) = csu]
37154         (gen-as-const-headers): Add tcb-offsets.sym.
37155         * nptl/sysdeps/sh/Makefile: File removed.
37156         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
37157         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
37158         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
37159         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
37160         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
37161         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
37162         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
37163         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
37164         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
37165         * sysdeps/sh/nptl/pthreaddef.h: ... here.
37166         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
37167         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
37168         * nptl/sysdeps/sh/tls.h: Moved ...
37169         * sysdeps/sh/nptl/tls.h: ... here.
37170         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
37171         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
37172         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
37173         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
37174         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
37175         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
37176         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
37177         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
37178         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
37179         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
37180         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
37181         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
37182         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
37183         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
37184         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
37185         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
37186         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
37187         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
37188         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
37189         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
37190         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
37191         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
37192         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
37193         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
37194         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
37195         Moved ...
37196         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
37197         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
37198         Moved ...
37199         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
37200         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
37201         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
37202         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
37203         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
37204         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
37205         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
37206         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
37207         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
37208         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
37209         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
37210         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
37211         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
37212         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
37213         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
37214         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
37215         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
37216         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
37217         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
37218
37219 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37220
37221         * posix/spawn_faction_addopen.c: Include string.h.
37222
37223 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37224
37225         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
37226         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
37227         * nptl/sysdeps/x86_64/Makefile: Moved ...
37228         * sysdeps/x86_64/nptl/Makefile: ... here.
37229         * nptl/sysdeps/x86_64/configure: Moved ...
37230         * sysdeps/x86_64/nptl/configure: ... here.
37231         * nptl/sysdeps/x86_64/configure.ac: Moved ...
37232         * sysdeps/x86_64/nptl/configure.ac: ... here.
37233         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
37234         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
37235         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
37236         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
37237         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
37238         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
37239         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
37240         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
37241         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
37242         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
37243         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
37244         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
37245         * nptl/sysdeps/x86_64/tls.h: Moved ...
37246         * sysdeps/x86_64/nptl/tls.h: ... here.
37247         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
37248         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
37249         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
37250         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
37251
37252         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
37253
37254 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37255
37256         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37257
37258 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
37259
37260         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
37261         type.
37262         [POSIX] (off_t): Likewise.
37263         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
37264         [POSIX] (S_ISBLK): Require macro.
37265         [POSIX] (S_ISCHR): Likewise.
37266         [POSIX] (S_ISDIR): Likewise.
37267         [POSIX] (S_ISFIFO): Likewise.
37268         [POSIX] (S_ISREG): Likewise.
37269         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
37270         optional-macro.
37271         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
37272         type.
37273         [POSIX] (time_t): Likewise.
37274         [POSIX] (timer_t): Likewise.
37275
37276 2014-06-11  Florian Weimer  <fweimer@redhat.com>
37277
37278         [BZ #17048]
37279         * posix/spawn_int.h (struct __spawn_action): Make the path string
37280         non-const to support deallocation.
37281         * posix/spawn_faction_addopen.c
37282         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
37283         * posix/spawn_faction_destroy.c
37284         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
37285         path in all spawn_do_open actions.
37286         * posix/tst-spawn.c (do_test): Exercise the copy operation in
37287         posix_spawn_file_actions_addopen.
37288
37289 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
37290
37291         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
37292         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
37293         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
37294         conditional code always true.
37295         (__libc_vfork): New alias.
37296
37297 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37298
37299         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37300         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
37301
37302         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
37303
37304         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37305         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
37306
37307         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37308         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
37309
37310         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37311         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
37312
37313 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
37314
37315         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
37316         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
37317         multiarch strcmp for PPC64.
37318         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
37319         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
37320         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
37321         multiarch optimizations.
37322         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37323         (__libc_ifunc_impl_list): Likewise.
37324
37325 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
37326
37327         * benchtests/scripts/validate_benchout.py: New script.
37328         * benchtests/Makefile (bench-func): Call it.
37329         * benchtests/scripts/benchout.schema.json: New file.
37330
37331 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
37332
37333         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
37334         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
37335         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
37336         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
37337         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
37338         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
37339         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
37340         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
37341         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
37342         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
37343         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
37344         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
37345         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
37346         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
37347         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
37348         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
37349         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
37350         Moved ...
37351         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
37352         ... here.
37353         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
37354         Moved ...
37355         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
37356         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
37357         Moved ...
37358         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
37359         ... here.
37360         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
37361         Moved ...
37362         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
37363         ... here.
37364         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
37365         Moved ...
37366         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
37367         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
37368         Moved ...
37369         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
37370         ... here.
37371         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
37372         Moved ...
37373         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
37374         ... here.
37375         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
37376         Moved ...
37377         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
37378         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
37379         Moved ...
37380         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
37381         ... here.
37382         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
37383         Moved ...
37384         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
37385         ... here.
37386         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
37387         Moved ...
37388         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
37389         ... here.
37390         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
37391         Moved ...
37392         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
37393         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
37394         Moved ...
37395         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
37396         ... here.
37397         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
37398         Moved ...
37399         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
37400         ... here.
37401         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
37402         Moved ...
37403         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
37404         ... here.
37405         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
37406         Moved ...
37407         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
37408         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
37409         Moved ...
37410         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
37411         ... here.
37412         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
37413         Moved ...
37414         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
37415         ... here.
37416         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
37417         Moved ...
37418         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
37419         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
37420         Moved ...
37421         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
37422         ... here.
37423         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
37424         Moved ...
37425         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
37426         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
37427         Moved ...
37428         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
37429         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
37430         Moved ...
37431         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
37432         ... here.
37433         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
37434         Moved ...
37435         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
37436         ... here.
37437         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
37438         Moved ...
37439         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
37440         ... here.
37441         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
37442         Moved ...
37443         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
37444         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
37445         Moved ...
37446         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
37447         ... here.
37448         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
37449         Moved ...
37450         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
37451         ... here.
37452         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
37453         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
37454         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
37455         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
37456         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
37457         Moved ...
37458         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
37459         ... here.
37460         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
37461         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
37462         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
37463         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
37464         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
37465         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
37466         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
37467         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
37468         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
37469         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
37470         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
37471         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
37472         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
37473         Moved ...
37474         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
37475         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
37476         Moved ...
37477         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
37478         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
37479         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
37480         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
37481         Moved ...
37482         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
37483         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
37484         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
37485         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
37486         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
37487         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
37488         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
37489
37490 2014-06-10  Wilco  <wdijkstr@arm.com>
37491
37492         * math/test-fenv-return.c: New file.
37493         * math/Makefile: Add new test test-fenv-return.
37494
37495 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
37496
37497         [BZ #17042]
37498         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
37499         when x - 1 is zero.
37500         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
37501         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
37502         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
37503         0.0L for an argument of 1.0L.
37504         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
37505         Likewise.
37506         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
37507         value when x - 1 is zero.
37508         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
37509         * sysdeps/i386/fpu/libm-test-ulps: Update.
37510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37511
37512 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
37513
37514         [BZ #15119]
37515         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
37516
37517 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37518
37519         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
37520         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
37521
37522 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37523
37524         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37525         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
37526
37527         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37528         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
37529
37530         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37531         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
37532
37533         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37534         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
37535
37536         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
37537         if not already defined.
37538         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
37539         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
37540         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
37541         (TLS_INIT_TP): Use it.
37542         (TLS_DEFINE_INIT_TP): New macro.
37543         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
37544
37545 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
37546
37547         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
37548         constant.
37549         [POSIX] (IXANY): Likewise.
37550         [POSIX] (OLCUC): Likewise.
37551         [POSIX || POSIX2008] (CBAUD): Do not allow.
37552         [POSIX || POSIX2008] (DEFECHO): Likewise.
37553         [POSIX || POSIX2008] (ECHOCTL): Likewise.
37554         [POSIX || POSIX2008] (ECHOKE): Likewise.
37555         [POSIX || POSIX2008] (ECHOPRT): Likewise.
37556         [POSIX || POSIX2008] (EXTA): Likewise.
37557         [POSIX || POSIX2008] (EXTB): Likewise.
37558         [POSIX || POSIX2008] (FLUSHO): Likewise.
37559         [POSIX || POSIX2008] (LOBLK): Likewise.
37560         [POSIX || POSIX2008] (PENDIN): Likewise.
37561         [POSIX || POSIX2008] (SWTCH): Likewise.
37562         [POSIX || POSIX2008] (VDISCARD): Likewise.
37563         [POSIX || POSIX2008] (VDSUSP): Likewise.
37564         [POSIX || POSIX2008] (VLNEXT): Likewise.
37565         [POSIX || POSIX2008] (VREPRINT): Likewise.
37566         [POSIX || POSIX2008] (VSTATUS): Likewise.
37567         [POSIX || POSIX2008] (VWERASE): Likewise.
37568         (B*): Change to B[0123456789]*.
37569         * conform/data/time.h-data [POSIX || UNIX98]
37570         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
37571         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
37572         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
37573         [POSIX] (tm_*): Do not allow.
37574
37575 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
37576
37577         * Makefile (install): Don't set LANGUAGE.
37578         * Makefile.in (install): Likewise.
37579         * assert/Makefile (test-assert-ENV): Remove variable.
37580         (test-assert-perr-ENV): Likewise.
37581         * elf/Makefile (neededtest4-ENV): Likewise.
37582         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37583         [$(cross-compiling) = no]: Don't set LANGUAGE.
37584         * io/ftwtest-sh (LANG): Remove variable.
37585         * libio/Makefile (tst-widetext-ENV): Likewise.
37586         * manual/install.texi (Running make install): Don't refer to
37587         environment settings for make install.
37588         * INSTALL: Regenerated.
37589         * nptl/tst-tls6.sh: Don't set LANG.
37590         * posix/globtest.sh (LANG): Remove variable.
37591         * string/Makefile (tester-ENV): Likewise.
37592         (inl-tester-ENV): Likewise.
37593         (noinl-tester-ENV): Likewise.
37594         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37595         [$(cross-compiling) = no]: Don't set LANGUAGE.
37596         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
37597         without explicit environment settings.
37598
37599 2014-06-06  Roland McGrath  <roland@hack.frob.com>
37600
37601         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
37602         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
37603         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
37604         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
37605
37606 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
37607
37608         * crypt/crypt-private.h [DOS]: Add some includes taken from the
37609         other files in the crypt directory.
37610         * crypt/crypt.c: Remove duplicate includes.
37611         * crypt/crypt-entry.c: Likewise.
37612         * crypt/crypt_util.c: Likewise.
37613
37614 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
37615
37616         * Makeconfig (run-program-env): New variable.
37617         (run-program-prefix-before-env): Likewise.
37618         (run-program-prefix-after-env): Likewise.
37619         (run-program-prefix): Define in terms of new variables.
37620         (built-program-cmd-before-env): New variable.
37621         (built-program-cmd-after-env): Likewise.
37622         (built-program-cmd): Define in terms of new variables.
37623         (test-program-prefix-before-env): New variable.
37624         (test-program-prefix-after-env): Likewise.
37625         (test-program-prefix): Define in terms of new variables.
37626         (test-program-cmd-before-env): New variable.
37627         (test-program-cmd-after-env): Likewise.
37628         (test-program-cmd): Define in terms of new variables.
37629         * Rules (make-test-out): Use $(run-program-env).
37630         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
37631         (help): Do not mention environment variables.  Mention
37632         --timeoutfactor option.
37633         (timeoutfactor): New variable.
37634         (blacklist_exports): Remove function.
37635         (exports): Remove variable.
37636         (command): Do not include ${exports}.
37637         * manual/install.texi (Configuring and compiling): Do not mention
37638         test wrappers preserving environment variables.  Mention that last
37639         assignment to a variable must take precedence.
37640         * INSTALL: Regenerated.
37641         * benchtests/Makefile (run-bench): Use $(run-program-env).
37642         * catgets/Makefile ($(objpfx)test1.cat): Use
37643         $(built-program-cmd-before-env), $(run-program-env) and
37644         $(built-program-cmd-after-env).
37645         ($(objpfx)test2.cat): Do not specify environment variables
37646         explicitly.
37647         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
37648         $(run-program-env) and $(built-program-cmd-after-env).
37649         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
37650         $(run-program-env) and $(test-program-cmd-after-env).
37651         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
37652         explicitly.
37653         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
37654         run_program_env and test_program_cmd_after_env arguments.
37655         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
37656         * elf/tst-pathopt.sh: Use run_program_env argument.
37657         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
37658         $(test-wrapper-env) and $(run-program-env).
37659         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
37660         run_program_env arguments.
37661         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
37662         * intl/Makefile ($(objpfx)tst-gettext.out): Use
37663         $(test-program-prefix-before-env), $(run-program-env) and
37664         $(test-program-prefix-after-env).
37665         ($(objpfx)tst-gettext2.out): Likewise.
37666         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
37667         run_program_env and test_program_prefix_after_env arguments.
37668         * intl/tst-gettext2.sh: Likewise.
37669         * intl/tst-gettext4.sh: Do not set environment variables
37670         explicitly.
37671         * intl/tst-gettext6.sh: Likewise.
37672         * intl/tst-translit.sh: Likewise.
37673         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
37674         $(test-program-prefix-before-env), $(run-program-env) and
37675         $(test-program-prefix-after-env).
37676         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
37677         run_program_env and test_program_prefix_after_env arguments.
37678         * math/Makefile (run-regen-ulps): Use $(run-program-env).
37679         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
37680         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
37681         explicitly with each use of ${test_wrapper_env}.
37682         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
37683         $(test-program-prefix-before-env), $(run-program-env) and
37684         $(test-program-prefix-after-env).
37685         * posix/tst-getconf.sh: Do not set environment variables
37686         explicitly.
37687         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
37688         run_program_env and test_program_prefix_after_env arguments.
37689         * stdio-common/tst-printf.sh: Do not set environment variables
37690         explicitly.
37691         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
37692         $(test-program-prefix-before-env), $(run-program-env) and
37693         $(test-program-prefix-after-env).
37694         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
37695         run_program_env and test_program_prefix_after_env arguments.
37696         Split $test calls into $test_pre and $test.
37697         * timezone/Makefile (build-testdata): Use
37698         $(built-program-cmd-before-env), $(run-program-env) and
37699         $(built-program-cmd-after-env).
37700
37701 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37702
37703         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
37704         strlen for non SHARED builds.
37705
37706 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
37707
37708         * nptl/allocatestack.c (check_list): Inlined function...
37709         (__reclaim_stacks): ... here.
37710
37711 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
37712
37713         [BZ #15698]
37714         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
37715         memory overrun.
37716
37717 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
37718
37719         * Rules (make-test-out): Include
37720         LOCPATH=$(common-objpfx)localedata in default environment.
37721         * debug/Makefile (tst-chk1-ENV): Remove variable.
37722         (tst-chk2-ENV): Likewise.
37723         (tst-chk3-ENV): Likewise.
37724         (tst-chk4-ENV): Likewise.
37725         (tst-chk5-ENV): Likewise.
37726         (tst-chk6-ENV): Likewise.
37727         (tst-lfschk1-ENV): Likewise.
37728         (tst-lfschk2-ENV): Likewise.
37729         (tst-lfschk3-ENV): Likewise.
37730         (tst-lfschk4-ENV): Likewise.
37731         (tst-lfschk5-ENV): Likewise.
37732         (tst-lfschk6-ENV): Likewise.
37733         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
37734         (tst-iconv7-ENV): Likewise.
37735         * intl/Makefile (LOCPATH-ENV): Likewise.
37736         (tst-codeset-ENV): Likewise.
37737         (tst-gettext3-ENV): Likewise.
37738         (tst-gettext5-ENV): Likewise.
37739         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
37740         (tst-fopenloc-ENV): Likewise.
37741         (tst-fgetws-ENV): Remove variable.
37742         (tst-ungetwc1-ENV): Likewise.
37743         (tst-ungetwc2-ENV): Likewise.
37744         (bug-ungetwc2-ENV): Likewise.
37745         (tst-swscanf-ENV): Likewise.
37746         (bug-ftell-ENV): Likewise.
37747         (tst-fgetwc-ENV): Likewise.
37748         (tst-fseek-ENV): Likewise.
37749         (tst-ftell-partial-wide-ENV): Likewise.
37750         (tst-ftell-active-handler-ENV): Likewise.
37751         (tst-ftell-append-ENV): Likewise.
37752         * posix/Makefile (tst-fnmatch-ENV): Likewise.
37753         (tst-regexloc-ENV): Likewise.
37754         (bug-regex1-ENV): Likewise.
37755         (tst-regex-ENV): Likewise.
37756         (tst-regex2-ENV): Likewise.
37757         (bug-regex5-ENV): Likewise.
37758         (bug-regex6-ENV): Likewise.
37759         (bug-regex17-ENV): Likewise.
37760         (bug-regex18-ENV): Likewise.
37761         (bug-regex19-ENV): Likewise.
37762         (bug-regex20-ENV): Likewise.
37763         (bug-regex22-ENV): Likewise.
37764         (bug-regex23-ENV): Likewise.
37765         (bug-regex25-ENV): Likewise.
37766         (bug-regex26-ENV): Likewise.
37767         (bug-regex30-ENV): Likewise.
37768         (bug-regex32-ENV): Likewise.
37769         (bug-regex33-ENV): Likewise.
37770         (bug-regex34-ENV): Likewise.
37771         (bug-regex35-ENV): Likewise.
37772         (tst-rxspencer-ENV): Likewise.
37773         (tst-rxspencer-no-utf8-ENV): Likewise.
37774         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
37775         (tst-sscanf-ENV): Likewise.
37776         (tst-swprintf-ENV): Likewise.
37777         (tst-swscanf-ENV): Likewise.
37778         (test-vfprintf-ENV): Likewise.
37779         (scanf13-ENV): Likewise.
37780         (bug14-ENV): Likewise.
37781         (tst-grouping-ENV): Likewise.
37782         * stdlib/Makefile (tst-strtod-ENV): Likewise.
37783         (tst-strtod3-ENV): Likewise.
37784         (tst-strtod4-ENV): Likewise.
37785         (tst-strtod5-ENV): Likewise.
37786         (testmb2-ENV): Likewise./
37787         * string/Makefile (tst-strxfrm-ENV): Likewise.
37788         (tst-strxfrm2-ENV): Likewise.
37789         (bug-strcoll1-ENV): Likewise.
37790         (test-strcasecmp-ENV): Likewise.
37791         (test-strncasecmp-ENV): Likewise.
37792         * time/Makefile (tst-strptime-ENV): Likewise.
37793         (tst-ftime_l-ENV): Likewise.
37794         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
37795         (tst-mbrtowc-ENV): Likewise.
37796         (tst-wcrtomb-ENV): Likewise.
37797         (tst-mbrtowc2-ENV): Likewise.
37798         (tst-c16c32-1-ENV): Likewise.
37799         (tst-mbsnrtowcs-ENV): Likewise.
37800
37801 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
37802
37803         * manual/resource.texi (How to get information about the memory
37804         subsystem?): Fix typo.
37805         Reported by Peon de la Parra Ivan <peon@keba.com>
37806
37807 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
37808
37809         [BZ #16882]
37810         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
37811         (pthread_spin_lock): Branch out of spin loop to proper location.
37812         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
37813         (pthread_spin_lock): Likewise.
37814
37815         * nptl/tst-spin4.c: New test.
37816         * nptl/Makefile (tests): Add tst-spin4.
37817
37818 2014-06-03  Andreas Schwab  <schwab@suse.de>
37819
37820         [BZ #15946]
37821         * resolv/res_send.c (send_dg): Reload file descriptor after
37822         calling reopen.
37823
37824 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
37825
37826         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37827
37828 2014-06-03  Richard Henderson  <rth@redhat.com>
37829
37830         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
37831         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
37832         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
37833         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
37834         in the SAVE_PID block.
37835         (__libc_vfork): New alias.
37836         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
37837
37838         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
37839         child in registers, not on the stack.  Remove RESET_PID conditionals.
37840         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
37841
37842 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37843
37844         * sysdeps/aarch64/libm-test-ulps: Regenerate.
37845
37846 2014-06-03  Wilco  <wdijkstr@arm.com>
37847
37848         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
37849         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
37850         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
37851         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
37852         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
37853         Likewise.
37854
37855 2014-06-03  Wilco  <wdijkstr@arm.com>
37856
37857         * sysdeps/aarch64/fpu/math_private.h
37858         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
37859         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
37860         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
37861         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
37862         Fix declarations.
37863
37864 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
37865
37866         * crypt/crypt-private.h: Include ufc-crypt.h.
37867         (__b64_from_24bit): Declare extern.
37868         * crypt/crypt_util.c(__b64_from_24bit): New function.
37869         (b64t): New static const variable.
37870         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
37871         (b64t): Remove variable.
37872         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
37873         * crypt/sha256-crypt.c: Include crypt-private.h.
37874         (b64t): Remove variable.
37875         (__sha256_crypt_r): Remove b64_from_24bit and replace
37876         with __b64_from_24bit.
37877         * crypt/sha512-crypt.c: Likewise.
37878
37879 2014-06-02  Roland McGrath  <roland@hack.frob.com>
37880
37881         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
37882         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
37883         Label the code __libc_vfork rather than __vfork.
37884         [!NOT_IN_libc] (vfork): Define as weak alias.
37885         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
37886         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
37887         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
37888
37889 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
37890
37891         * malloc/malloc.c (malloc_info): Fix format specifier for
37892         n_mmaps.
37893
37894 2014-06-02  Wilco  <wdijkstr@arm.com>
37895
37896         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
37897         FPCR write.
37898
37899 2014-06-02  Wilco  <wdijkstr@arm.com>
37900
37901         [BZ #17009]
37902         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
37903         Rewrite to reduce FPCR/FPSR accesses.
37904
37905 2014-06-01  David S. Miller  <davem@davemloft.net>
37906
37907         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37908
37909 2014-05-31  David S. Miller  <davem@davemloft.net>
37910
37911         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
37912         to occur in round to nearest mode when |x| >= 2.0
37913
37914 2014-05-30  Richard Henderson  <rth@twiddle.net>
37915
37916         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
37917         (PSEUDO_RET_NOERRNO): Remove.
37918         (ret): Don't redefine.
37919         (ret_NOERRNO): Define in terms of ret.
37920         (ret_ERRVAL): Likewise.
37921
37922         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
37923         use of PSEUDO_RET; perform the error check directly.
37924
37925 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
37926
37927         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
37928         with __int128_t.
37929
37930 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
37931
37932         * malloc/malloc (malloc_info): Fix formatting.
37933
37934 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
37935             Roland McGrath  <roland@hack.frob.com>
37936
37937         * malloc/malloc (malloc_info): Also print mmapped statistics.
37938
37939 2014-05-30  Roland McGrath  <roland@hack.frob.com>
37940
37941         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
37942         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
37943
37944 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
37945
37946         * malloc/malloc.c (malloc_info): Inline mi_arena.
37947
37948 2014-05-29  Richard Henderson  <rth@twiddle.net>
37949
37950         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
37951         Remove comma before expanding ASM_ARGS_##nr.
37952         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
37953         Make _x0 a strict output; make _x8 a strict input; adjust expansion
37954         of ASM_ARGS_##nr.
37955         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
37956         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
37957         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
37958         (ASM_ARGS_1): Add leading comma.
37959
37960         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
37961         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
37962         to __errno_location.
37963         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
37964         Remove the expected plt for __errno_location.
37965
37966         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
37967         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
37968         call to __read_tp.
37969
37970         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
37971         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
37972         it and break it down.
37973         (DOCARGS_0, DOCARGS_1): Do nothing.
37974         (DOCARGS_2): Update to store into the new stack frame.
37975         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
37976         (UNDOCARGS_1): Update to restore from the new stack frame.
37977         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
37978         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
37979
37980         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
37981         (SINGLE_THREAD_P): New parameter for result regno.
37982         (PSEUDO): Update to match; use cbz instead of beq.
37983
37984         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
37985         Use ENTRY to define the _nocancel entry point.  Share the syscall
37986         and syscall error check paths with the cancel path.
37987         (PSEUDO_END): New.
37988
37989         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
37990         whitespace; tabs before and after asm mnemonics.
37991
37992 2014-05-29  Eric Wong  <normalperson@yhbt.net>
37993
37994         [BZ #15132]
37995         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37996         Call fstat64 or stat64 internally, depending on arguments passed.
37997         Replace stat buffer argument with file descriptor argument.
37998         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
37999         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
38000         Pass fd to __internal_statvfs instead of calling fstat64.
38001         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
38002         Pass fd to __internal_statvfs64 instead of calling fstat64.
38003         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
38004         Pass -1 to __internal_statvfs instead of calling stat64.
38005         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
38006         Pass -1 to __internal_statvfs64 instead of calling stat64.
38007
38008 2014-05-28  Roland McGrath  <roland@hack.frob.com>
38009
38010         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
38011         that was previously under [RESET_PID].
38012         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
38013
38014         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
38015         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
38016
38017 2014-05-27  Roland McGrath  <roland@hack.frob.com>
38018
38019         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
38020
38021         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
38022         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
38023
38024 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
38025
38026         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
38027
38028 2014-05-27  Andreas Schwab  <schwab@suse.de>
38029
38030         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
38031         TLS_INIT_TP macro.
38032         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
38033         * elf/rtld.c (init_tls, dl_main): Likewise.
38034         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
38035         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
38036         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
38037         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
38038         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
38039         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
38040         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
38041         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
38042         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
38043         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
38044         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
38045         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
38046         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
38047         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
38048         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
38049         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
38050         * sysdeps/generic/tls.h: Update description.
38051
38052 2014-05-27  Will Newton  <will.newton@linaro.org>
38053
38054         [BZ #16990]
38055         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
38056         and restore r2 rather than just restoring.
38057
38058 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38059
38060         [BZ #16724]
38061         * libio/tst-ftell-append.c: New test case.
38062         * libio/Makefile (tests): Add test case.
38063         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
38064         append mode.
38065         * libio/wfileops.c (do_ftell_wide): Likewise.
38066
38067 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38068
38069         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38070
38071         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
38072         ...
38073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
38074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
38075         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
38076         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
38077         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
38078         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
38079         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
38080         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
38081         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38082         Moved ...
38083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
38084         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38085         Moved ...
38086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
38087         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
38088         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
38089         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
38090         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
38091         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
38092         ...
38093         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
38094         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
38095         Moved ...
38096         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
38097         here.
38098         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
38099         ...
38100         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
38101         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
38102         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
38103
38104         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
38105         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
38106         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
38107         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
38108
38109         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
38110         merge into ...
38111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
38112         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
38113         ...
38114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
38115         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
38116         ...
38117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
38118         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
38119         Moved ...
38120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
38121         here.
38122         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
38123         Moved ...
38124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
38125         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
38126         Moved ...
38127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
38128
38129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
38130         conditional [RESET_PID].
38131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
38132         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
38133         removed.
38134         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
38135         removed.
38136
38137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
38138         <tcb-offsets.h>.
38139         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
38140         (__libc_vfork): New strong alias.
38141         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
38142         removed.
38143         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
38144         Removed.
38145
38146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
38147         <tcb-offsets.h>.
38148         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
38149         (__libc_vfork): New strong alias.
38150         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
38151         removed.
38152         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
38153         removed.
38154
38155 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
38156
38157         * malloc/malloc.c (mi_arena): New function.
38158         (malloc_info): Remove nested function mi_arena. Call non-nosted
38159         function mi_arena.
38160
38161 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38162
38163         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
38164         by insrwi.
38165         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
38166         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
38167         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
38168         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
38169         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
38170         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
38171         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
38172
38173 2014-05-26  Andreas Schwab  <schwab@suse.de>
38174
38175         [BZ #16984]
38176         * locale/programs/repertoire.c (repertoire_read): Add slash
38177         between I18NPATH element and file name.
38178         * locale/programs/locfile.c (locfile_read): Likewise.
38179
38180 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38181
38182         * nptl/pthread_mutexattr_settype.c
38183         (__pthread_mutexattr_settype):
38184         Disable lock elision for PTHREAD_MUTEX_NORMAL.
38185
38186 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38187
38188         * nptl/tst-mutex5 (do_test):
38189         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
38190
38191 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38192
38193         * benchtests/README: Document 'init' directive.
38194         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
38195         BENCH_INIT.
38196         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
38197         (parse_file): Recognize 'init' directive.
38198
38199 2014-05-26  Kyle McMartin  <kyle@redhat.com>
38200
38201         [BZ #16796]
38202         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
38203         alignment of struct pthread.
38204
38205 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38206
38207         [BZ #16878]
38208         * nscd/netgroupcache.c (addgetnetgrentX): Look for
38209         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38210         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
38211         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38212
38213 2014-05-25  Richard Henderson  <rth@twiddle.net>
38214
38215         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38216         (SINGLE_THREAD_P_PIC): Remove.
38217         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
38218         (SINGLE_THREAD_P_PIC): Remove.
38219
38220         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
38221         branch to syscall error ...
38222         (PSEUDO): ... here.
38223         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
38224         from __local_syscall_error to .Lsyscall_error.
38225         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
38226         (SYSCALL_ERROR): Update label name.
38227
38228         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38229         Do not use DOARGS/UNDOARGS.
38230         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
38231         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
38232         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
38233         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
38234         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
38235
38236         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
38237         block comment.
38238
38239         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
38240         define if !NOT_IN_libc.
38241         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
38242         define with non-default symbol versions.
38243
38244 2014-05-23  Richard Henderson  <rth@twiddle.net>
38245
38246         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
38247         (vfork, __vfork): Define via compat_symbol.
38248
38249         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
38250         [!HAVE_IFUNC] (vfork_compat): Remove.
38251         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
38252
38253 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38254
38255         [BZ #16978]
38256         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
38257         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
38258         variable.
38259
38260 2014-05-23  Richard Henderson  <rth@twiddle.net>
38261
38262         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
38263         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
38264         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
38265         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
38266
38267         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
38268         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
38269         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
38270         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
38271         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
38272         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
38273         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
38274         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
38275         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
38276         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
38277         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
38278         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
38279         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
38280         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
38281         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
38282         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
38283         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
38284         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
38285         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
38286         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
38287         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
38288         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
38289         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
38290         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
38291         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
38292         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
38293         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
38294         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
38295         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
38296         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
38297         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
38298         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
38299         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
38300         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
38301         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
38302         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
38303         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
38304         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
38305         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
38306         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
38307         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
38308         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
38309         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
38310         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
38311         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
38312         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
38313         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
38314         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
38315         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
38316         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
38317         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
38318         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
38319         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
38320         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
38321         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
38322         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
38323
38324         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
38325         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
38326         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
38327         before exiting on error.
38328         (__libc_vfork): New strong alias.
38329         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
38330         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
38331
38332         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
38333         that was previously under [RESET_PID].
38334         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
38335
38336         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
38337
38338 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38339
38340         [BZ #16977]
38341         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
38342         value when x - 1 is zero.
38343         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
38344         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
38345         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
38346         0.0L for an argument of 1.0L.
38347         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
38348         Likewise.
38349         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
38350         value when x - 1 is zero.
38351         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
38352         * sysdeps/i386/fpu/libm-test-ulps: Update.
38353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38354
38355 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
38356
38357         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
38358         alphasort and versionsort.
38359
38360 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38361
38362         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
38363         macro.
38364         [copysignf]: Likewise.
38365
38366 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
38367
38368         * crypt/md5-crypt.c: Fix formatting.
38369
38370 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38371
38372         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
38373         (b64_from_24bit): New function.
38374
38375 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38376
38377         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
38378         libc_hidden_builtin_def to ifunc.
38379         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
38380         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
38381
38382 2014-05-21  Roland McGrath  <roland@hack.frob.com>
38383
38384         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
38385         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
38386
38387 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
38388
38389         * nscd/Depend (linuxthreads): Remove.
38390         (nptl): Add.
38391         * resolv/Depend (linuxthreads): Remove.
38392         * rt/Depend (linuxthreads): Remove.
38393
38394         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
38395         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
38396         $(common-objpfx)elf/.
38397         (link-libc-before-gnulib): Likewise.
38398         (elfobjdir): Remove variable.
38399         * Makefile (install): Use $(elf-objpfx) instead of
38400         $(common-objpfx)elf/.
38401         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
38402         $(elfobjdir)/.
38403         (link-libc-deps): Likewise.
38404         ($(common-objpfx)libc.so): Likewise.
38405         ($(common-objpfx)linkobj/libc.so): Likewise.
38406         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
38407         instead of $(common-objpfx)elf/.
38408         (symbolic-link-list): Likewise.
38409         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
38410         [$(cross-compiling) = no]: Likewise.
38411         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
38412         $(elfobjdir)/.
38413         (static-gnulib-arch): Likewise.
38414         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
38415         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
38416         $(common-objpfx)elf/.
38417
38418 2014-05-21  Richard Henderson  <rth@redhat.com>
38419
38420         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38421         (SINGLE_THREAD_P): Use the correct width load.  Fold
38422         into the ldr offset.
38423
38424         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
38425         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
38426
38427 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
38428
38429         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
38430         (libgcc_s_resume): Use __attribute_used__.
38431         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
38432         Likewise.
38433
38434 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38435
38436         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
38437         optimization when used with float constants.
38438
38439         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38440
38441 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
38442
38443         [BZ #16915]
38444         * locale/nl_langinfo_l.c: Make direct reference to every
38445         _nl_current_CATEGORY symbol.
38446         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
38447         (tests-static): Add tst-langinfo-static.
38448         (tests-special): Add tst-langinfo-static.out.
38449         ($(objpfx)tst-langinfo.out): Redirect output.
38450         ($(objpfx)tst-langinfo-static.out): New.
38451         * localedata/tst-langinfo.sh: Send output to stdout.
38452         * localedata/tst-langinfo-static.c: New file.
38453
38454         [BZ #16965]
38455         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
38456         when the shift amount is modulo the limb size.
38457
38458 2014-05-20  Richard Henderson  <rth@redhat.com>
38459
38460         [BZ #16967]
38461         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
38462         Change type of sa_flags from unsigned int to int.
38463
38464         [BZ #16966]
38465         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
38466
38467         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
38468
38469 2014-05-20  Will Newton  <will.newton@linaro.org>
38470
38471         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38472         Test the return value of the system call in the nocancel case.
38473
38474 2014-05-20  Will Newton  <will.newton@linaro.org>
38475             Yvan Roux  <yvan.roux@linaro.org>
38476
38477         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
38478         #include of asm/ptrace.h.
38479         (PTRACE_GET_THREAD_AREA): Remove #undef.
38480         (PTRACE_GETHBPREGS): Likewise.
38481         (PTRACE_SETHBPREGS): Likewise.
38482         (struct user_regs_struct): New structure.
38483         (struct user_fpsimd_struct): New structure.
38484         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
38485         #include of asm/ptrace.h and second #include of sys/user.h.
38486         (PTRACE_GET_THREAD_AREA): Remove #undef.
38487         (PTRACE_GETHBPREGS): Likewise.
38488         (PTRACE_SETHBPREGS): Likewise.
38489         (ELF_NGREG): Use new struct user_regs_struct.
38490         (elf_fpregset_t): Use new struct user_fpsimd_struct.
38491
38492 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38493
38494         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
38495         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
38496
38497 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
38498
38499         [BZ #16958]
38500         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
38501         membar to avoid block loads/stores to overlap previous stores.
38502
38503 2014-05-17  Richard Henderson  <rth@redhat.com>
38504
38505         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
38506         Create the __##syscall_name##_nocancel entry point.
38507         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
38508         Remove; let the sysdep-cancel.h code create it.
38509
38510 2014-05-17  David S. Miller  <davem@davemloft.net>
38511
38512         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
38513         Protect with __USE_GNU.
38514         (TIOCSET_TEMPT): Likewise.
38515         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
38516         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
38517         these are already provided in bits/ioctl-types.h
38518
38519 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38520
38521         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
38522         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
38523
38524         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
38525         Use wait4 regardless of [__NR_waitpid].
38526
38527 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
38528
38529         PR libgcc/60166
38530         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
38531         (_FP_NANSIGN_Q): Set the quiet bit.
38532
38533 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
38534
38535         * benchtests/Makefile
38536         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
38537         not $(common-objpfx)math/libm.so.
38538         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
38539         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
38540         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
38541         $(common-objpfx)dlfcn/libdl.so.
38542         ($(objpfx)tst-audit8): Depend on $(libm), not
38543         $(common-objpfx)math/libm.so.
38544         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
38545         not $(common-objpfx)dlfcn/libdl.so.
38546         * math/Makefile
38547         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
38548         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
38549         [$(build-shared) = yes].
38550         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
38551         $(common-objpfx)nptl/libpthread.so.
38552         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
38553         $(common-objpfx)math/libm.so$(libm.so-version) or
38554         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
38555         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
38556         $(common-objpfx)dlfcn/libdl.so.
38557         * setjmp/Makefile (link-libm): Remove variable.
38558         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
38559         * stdio-common/Makefile (link-libm): Remove variable.
38560         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
38561         * stdlib/Makefile (link-libm): Remove variable.
38562         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
38563         ($(objpfx)tst-strtod-round): Likewise.
38564         ($(objpfx)tst-tininess): Likewise.
38565         ($(objpfx)tst-strtod-underflow): Likewise.
38566         ($(objpfx)tst-strtod6): Likewise.
38567         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
38568         $(libdl), not $(common-objpfx)nptl/libpthread.so and
38569         $(common-objpfx)dlfcn/libdl.so.
38570
38571 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38572
38573         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
38574         BSD terminal modes definitions.
38575
38576 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38577
38578         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
38579         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
38580
38581         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
38582         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
38583         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
38584         Don't do #include_next.
38585         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
38586         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
38587         Don't do #include_next.
38588         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
38589         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
38590         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
38591         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
38592
38593 2014-05-16  Allan McRae  <allan@archlinux.org>
38594
38595         * po/sv.po: Update Swedish translation from translation project.
38596
38597         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
38598         in sed expression.
38599
38600 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
38601
38602         [BZ #16917]
38603         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
38604         errno if the TIOCGPTN ioctl fails with an error different than
38605         EINVAL.
38606         * login/tst-ptsname.c: New file.
38607         * login/Makefile (tests): Add tst-ptsname.
38608
38609         [BZ #16943]
38610         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
38611         and prlimit64.
38612
38613 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
38614
38615         [BZ #16849]
38616         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
38617         herrno to return EAI_AGAIN.
38618
38619 2014-05-14  Roland McGrath  <roland@hack.frob.com>
38620
38621         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
38622         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
38623         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
38624         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
38625         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
38626         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
38627         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
38628         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
38629         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
38630         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
38631         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
38632         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
38633         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
38634         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
38635         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
38636         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
38637         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
38638         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
38639         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
38640         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
38641         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
38642         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
38643         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
38644         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
38645         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
38646         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
38647         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
38648         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
38649         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
38650         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
38651         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
38652         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
38653         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
38654         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
38655         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
38656         Moved ...
38657         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
38658         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
38659         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
38660         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
38661         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
38662         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
38663         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
38664         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
38665         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
38666         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
38667         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
38668         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
38669         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
38670         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
38671         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
38672         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
38673         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
38674         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
38675         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
38676         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
38677         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
38678         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
38679         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
38680         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
38681         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
38682         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
38683         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
38684         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
38685         Moved ...
38686         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
38687         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
38688         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
38689         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
38690         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
38691         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
38692         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
38693         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
38694         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
38695         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
38696         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
38697         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
38698         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
38699         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
38700         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
38701         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
38702         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
38703         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
38704         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
38705         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
38706         Moved ...
38707         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
38708         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
38709         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
38710
38711         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
38712         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
38713         (libpthread-sysdep_routines): Add elision-related stuff here instead.
38714         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
38715         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
38716         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
38717         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
38718         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
38719         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
38720         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
38721         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
38722         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
38723         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
38724         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
38725         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
38726         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
38727         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
38728         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
38729         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
38730         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
38731         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
38732         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
38733         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
38734         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
38735         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
38736         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
38737         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
38738         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
38739         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
38740         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
38741         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
38742
38743         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
38744         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
38745
38746         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
38747         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
38748         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
38749         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
38750         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
38751         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
38752         Moved ...
38753         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
38754         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
38755         Moved ...
38756         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
38757         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
38758         Moved ...
38759         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
38760         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
38761         Moved ...
38762         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
38763         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
38764         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
38765         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
38766         Moved ...
38767         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
38768         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
38769         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
38770         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
38771         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
38772         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
38773         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
38774         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
38775         Moved ...
38776         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
38777         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
38778         Moved ...
38779         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
38780         ... here.
38781         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
38782         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
38783         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
38784         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
38785         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
38786         Moved ...
38787         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
38788         ... here.
38789         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
38790         Moved ...
38791         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
38792         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
38793         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
38794         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
38795         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
38796         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
38797         Moved ...
38798         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
38799         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
38800         Moved ...
38801         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
38802         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
38803         Moved ...
38804         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
38805         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
38806         Moved ...
38807         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
38808         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
38809         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
38810         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
38811         Moved ...
38812         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
38813         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
38814         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
38815         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
38816         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
38817         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
38818         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
38819         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
38820         Moved ...
38821         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
38822         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
38823         Moved ...
38824         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
38825         ... here.
38826         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
38827         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
38828         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
38829         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
38830         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
38831         Moved ...
38832         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
38833         ... here.
38834         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
38835         Moved ...
38836         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
38837         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
38838         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
38839         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
38840         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
38841         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
38842         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
38843         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
38844         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
38845         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
38846         Moved ...
38847         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
38848         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
38849         Moved ...
38850         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
38851         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
38852         Moved ...
38853         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
38854         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
38855         Moved ...
38856         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
38857         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
38858         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
38859         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
38860         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
38861         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
38862         Moved ...
38863         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
38864         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
38865         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
38866         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
38867         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
38868         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
38869         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
38870         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
38871         Moved ...
38872         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
38873         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
38874         Moved ...
38875         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
38876         ... here.
38877         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
38878         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
38879         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
38880         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
38881         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
38882         Moved ...
38883         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
38884         ... here.
38885         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
38886         Moved ...
38887         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
38888         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
38889         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
38890         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
38891         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
38892         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
38893         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
38894         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
38895         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
38896         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
38897         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
38898
38899         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
38900         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
38901
38902         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
38903         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
38904
38905         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
38906         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
38907         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
38908         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
38909         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
38910         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
38911         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
38912         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
38913         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
38914         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
38915         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
38916         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
38917         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
38918         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
38919         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
38920         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
38921         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
38922         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
38923         Moved ...
38924         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
38925         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
38926         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
38927         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
38928         Moved ...
38929         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
38930         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
38931         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
38932         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
38933         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
38934         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
38935         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
38936         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
38937         Moved ...
38938         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
38939         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
38940         Moved ...
38941         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
38942         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
38943         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
38944         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
38945         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
38946         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
38947         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
38948         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
38949         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
38950         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
38951         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
38952         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
38953         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
38954         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
38955         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
38956         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
38957         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
38958
38959         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
38960         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
38961         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
38962         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
38963         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
38964
38965         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
38966         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
38967         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
38968         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
38969         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
38970         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
38971         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
38972         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
38973         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
38974         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
38975
38976         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
38977         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
38978
38979         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
38980         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
38981         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
38982         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
38983         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
38984         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
38985         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
38986         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
38987         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
38988         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
38989         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
38990         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
38991         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
38992         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
38993         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
38994         Update #include.
38995         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
38996         Likewise.
38997         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
38998         Likewise.
38999         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
39000         Likewise.
39001         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
39002         Likewise.
39003         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
39004         Likewise.
39005         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
39006         Likewise.
39007         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
39008         Likewise.
39009         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
39010         Likewise.
39011         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
39012         Likewise.
39013         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
39014         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
39015         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
39016         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
39017         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
39018         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
39019         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
39020         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
39021         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
39022         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
39023         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
39024         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
39025         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
39026         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
39027         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
39028
39029         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
39030         that was previously under [RESET_PID].
39031         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
39032         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
39033         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
39034
39035         * sysdeps/i386/nptl/Implies: New file.
39036         * sysdeps/x86_64/nptl/Implies: New file.
39037         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
39038         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
39039         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
39040         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
39041
39042         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
39043         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39044         (__libc_vfork): New strong alias.
39045         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
39046         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
39047
39048         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
39049         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39050         (__libc_vfork): New strong alias.
39051         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
39052         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
39053
39054         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
39055         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39056         (__libc_vfork): New strong alias.
39057         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
39058         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
39059         * nptl/pt-vfork.c: New file.
39060         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
39061         (libpthread: GLIBC_2.20): New version set (empty).
39062
39063 2014-05-14  Will Newton  <will.newton@linaro.org>
39064
39065         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
39066         rather than #if.
39067
39068 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39069
39070         [BZ #16564]
39071         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
39072         arguments with exponent 65 or above.
39073         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
39074         arguments 0x1p113L or above.
39075         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
39076         to arguments 0x1p107L or above.
39077         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
39078         positive arguments with exponent 65 or above.
39079         * math/auto-libm-test-in: Add more tests of log1p.
39080         * math/auto-libm-test-out: Regenerated.
39081
39082         [BZ #16928]
39083         * math/s_cacos.c (__cacos): Ensure zero real part of result from
39084         non-finite arguments is +0.
39085         * math/s_cacosf.c (__cacosf): Likewise.
39086         * math/s_cacosl.c (__cacosl): Likewise.
39087         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
39088         * sysdeps/i386/fpu/libm-test-ulps: Update.
39089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39090
39091         [BZ #16927]
39092         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
39093         value.
39094         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
39095         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
39096         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
39097         for explicit high bit of mantissa when testing for argument equal
39098         to 1.
39099         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
39100         * sysdeps/i386/fpu/libm-test-ulps: Update.
39101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39102
39103         [BZ #16516]
39104         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
39105         (__erf): Scale by 16 instead of 8 in potentially underflowing
39106         case.  Ensure exception if result actually underflows.
39107         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
39108         (__erff): Scale by 16 instead of 8 in potentially underflowing
39109         case.  Ensure exception if result actually underflows.
39110         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
39111         (efx8): Remove variable.
39112         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39113         case.  Ensure exception if result actually underflows.
39114         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
39115         (efx8): Remove variable.
39116         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39117         case.  Ensure exception if result actually underflows.
39118         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
39119         (efx8): Remove variable.
39120         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39121         case.  Ensure exception if result actually underflows.
39122         * math/auto-libm-test-in: Add more tests of erf.
39123         * math/auto-libm-test-out: Regenerated.
39124
39125 2014-05-14  Andreas Schwab  <schwab@suse.de>
39126
39127         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
39128         Remove code conditionalized on USE___THREAD.
39129
39130         * config.h.in (HAVE_PT_CHOWN): Define as 0.
39131         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
39132         not definedness.
39133
39134 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39135
39136         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
39137         Define unconditionally.
39138         (__ASSUME_O_CLOEXEC): Likewise.
39139         (__ASSUME_SOCK_CLOEXEC): Likewise.
39140         (__ASSUME_IN_NONBLOCK): Likewise.
39141         (__ASSUME_PIPE2): Likewise.
39142         (__ASSUME_EVENTFD2): Likewise.
39143         (__ASSUME_SIGNALFD4): Likewise.
39144         (__ASSUME_DUP3): Likewise.
39145         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
39146         (__ASSUME_DUP3): Do not define.
39147         (__ASSUME_EVENTFD2): Likewise.
39148         (__ASSUME_IN_NONBLOCK): Likewise.
39149         (__ASSUME_O_CLOEXEC): Likewise.
39150         (__ASSUME_PIPE2): Likewise.
39151         (__ASSUME_SIGNALFD4): Likewise.
39152         (__ASSUME_SOCK_CLOEXEC): Likewise.
39153         (__ASSUME_UTIMES): Undefine.
39154         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39155         (__ASSUME_UTIMES): Do not define.
39156         (__ASSUME_O_CLOEXEC): Likewise.
39157         (__ASSUME_SOCK_CLOEXEC): Likewise.
39158         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
39159         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
39160         0x020621].
39161         (__ASSUME_PIPE2): Likewise.
39162         (__ASSUME_EVENTFD2): Likewise.
39163         (__ASSUME_SIGNALFD4): Likewise.
39164         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
39165         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
39166         Do not define.
39167         (__ASSUME_EVENTFD2): Likewise.
39168         (__ASSUME_SIGNALFD4): Likewise.
39169         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
39170         (__ASSUME_32BITUIDS): Likewise.
39171         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
39172         (__ASSUME_IPC64): Likewise.
39173         (__ASSUME_ST_INO_64_BIT): Likewise.
39174         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
39175         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
39176         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39177         (__ASSUME_UTIMES): Do not define.
39178         (__ASSUME_PSELECT): Likewise.
39179         (__ASSUME_PPOLL): Likewise.
39180         (__ASSUME_O_CLOEXEC): Likewise.
39181         (__ASSUME_SOCK_CLOEXEC): Likewise.
39182         (__ASSUME_IN_NONBLOCK): Likewise.
39183         (__ASSUME_PIPE2): Likewise.
39184         (__ASSUME_EVENTFD2): Likewise.
39185         (__ASSUME_SIGNALFD4): Likewise.
39186         (__ASSUME_DUP3): Likewise.
39187         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39188         (__ASSUME_UTIMES): Likewise.
39189         (__ASSUME_O_CLOEXEC): Likewise.
39190         (__ASSUME_SOCK_CLOEXEC): Likewise.
39191         (__ASSUME_IN_NONBLOCK): Likewise.
39192         (__ASSUME_PIPE2): Likewise.
39193         (__ASSUME_EVENTFD2): Likewise.
39194         (__ASSUME_SIGNALFD4): Likewise.
39195         (__ASSUME_DUP3): Likewise.
39196         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
39197         (__ASSUME_UTIMES): Likewise.
39198         (__ASSUME_O_CLOEXEC): Likewise.
39199         (__ASSUME_SOCK_CLOEXEC): Likewise.
39200         (__ASSUME_IN_NONBLOCK): Likewise.
39201         (__ASSUME_PIPE2): Likewise.
39202         (__ASSUME_EVENTFD2): Likewise.
39203         (__ASSUME_SIGNALFD4): Likewise.
39204         (__ASSUME_DUP3): Likewise.
39205         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
39206         Likewise.
39207         (__ASSUME_UTIMES): Likewise.
39208         (__ASSUME_EVENTFD2): Likewise.
39209         (__ASSUME_SIGNALFD4): Likewise.
39210         * sysdeps/unix/sysv/linux/tile/kernel-features.h
39211         (__ASSUME_O_CLOEXEC): Likewise.
39212         (__ASSUME_SOCK_CLOEXEC): Likewise.
39213         (__ASSUME_IN_NONBLOCK): Likewise.
39214         (__ASSUME_PIPE2): Likewise.
39215         (__ASSUME_EVENTFD2): Likewise.
39216         (__ASSUME_SIGNALFD4): Likewise.
39217         (__ASSUME_DUP3): Likewise.
39218         (__ASSUME_UTIMES): Undefine.
39219
39220         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
39221         feclearexcept.  Remove symbol versioning code.
39222         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
39223         symbol versioning code.
39224         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
39225         symbol versioning code.
39226         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
39227         feupdateenv.  Remove symbol versioning code.
39228         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
39229         fegetexceptflag.  Remove symbol versioning code.
39230         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
39231         fesetexceptflag.  Remove symbol versioning code.
39232         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
39233         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
39234         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
39235         (__posix_fadvise64_l32): Remove prototype.
39236         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
39237         code.
39238
39239 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39240
39241         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
39242         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
39243         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
39244         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
39245
39246 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
39247
39248         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
39249         current working directory
39250
39251 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39252
39253         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
39254         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
39255         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
39256         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
39257         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
39258         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
39259         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
39260         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
39261         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
39262         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
39263         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
39264         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
39265         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
39266         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
39267         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
39268         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
39269         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
39270         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
39271         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
39272         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
39273         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
39274         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
39275         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
39276         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
39277         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
39278         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
39279         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
39280         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
39281         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
39282         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
39283         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
39284         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
39285         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
39286         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
39287         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
39288         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
39289         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
39290         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
39291         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
39292         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
39293         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
39294         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
39295
39296         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
39297         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
39298
39299         * sysdeps/unix/sysv/linux/arm/Makefile
39300         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
39301         Add rt-aeabi_unwind_cpp_pr1.
39302         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
39303         Add nptl-aeabi_unwind_cpp_pr1.
39304         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
39305         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
39306         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
39307         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
39308         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
39309         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
39310
39311         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
39312         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
39313         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
39314         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
39315
39316         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
39317         Deconditionalize the code that was previously under [RESET_PID].
39318         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
39319
39320         * sysdeps/generic/exit-thread.h: New file.
39321         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
39322         * include/unistd.h (__exit_thread): Remove declaration.
39323         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
39324         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
39325         * csu/libc-start.c: Include <exit-thread.h>.
39326         (LIBC_START_MAIN): Pass no argument to __exit_thread.
39327         * nptl/pthread_create.c: Include <exit-thread.h>.
39328         (start_thread): Call __exit_thread in place of __exit_thread_inline.
39329         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
39330         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
39331         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
39332         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
39333         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
39334         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
39335         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
39336         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
39337         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
39338         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
39339         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
39340         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
39341         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
39342         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
39343         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
39344         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
39345
39346 2014-05-13  Andreas Schwab  <schwab@suse.de>
39347
39348         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
39349
39350 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
39351
39352         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
39353         (__ASSUME_UTIMES): Do not condition on kernel version.
39354         (__ASSUME_PSELECT): Define unconditionally.
39355         (__ASSUME_PPOLL): Likewise.
39356         (__ASSUME_ATFCTS): Likewise.
39357         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
39358         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
39359         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
39360         (__ASSUME_UTIMENSAT): Define unconditionally.
39361         (__ASSUME_PRIVATE_FUTEX): Likewise.
39362         (__ASSUME_FALLOCATE): Likewise.
39363         (__ASSUME_O_CLOEXEC): Likewise.
39364         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
39365         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
39366         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
39367         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
39368         (__ASSUME_IN_NONBLOCK): Likewise.
39369         (__ASSUME_PIPE2): Likewise.
39370         (__ASSUME_EVENTFD2): Likewise.
39371         (__ASSUME_SIGNALFD4): Likewise.
39372         (__ASSUME_DUP3): Likewise.
39373         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39374         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
39375         (__ASSUME_AT_RANDOM): Likewise.
39376         (__ASSUME_PREADV): Likewise.
39377         (__ASSUME_PWRITEV): Likewise.
39378         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
39379         (__ASSUME_F_GETOWN_EX): Define unconditionally.
39380         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
39381         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
39382         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
39383         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39384         (__ASSUME_O_CLOEXEC): Define unconditionally.
39385         (__ASSUME_PSELECT): Do not undefine conditionally.
39386         (__ASSUME_PPOLL): Likewise.
39387         (__ASSUME_ATFCTS): Likewise.
39388         (__ASSUME_SET_ROBUST_LIST): Likewise.
39389         (__ASSUME_UTIMENSAT): Likewise.
39390         (__ASSUME_FDATASYNC): Define unconditionally.
39391         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39392         (__ASSUME_SIGFRAME_V2): Likewise.
39393         )__ASSUME_EVENTFD2): Likewise.
39394         (__ASSUME_SIGNALFD4): Likewise.
39395         (__ASSUME_PSELECT): Do not undefine conditionally.
39396         (__ASSUME_PPOLL): Likewise.
39397         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39398         (__ASSUME_PSELECT): Define unconditionally.
39399         (__ASSUME_PPOLL): Likewise.
39400         (__ASSUME_O_CLOEXEC): Likewise.
39401         (__ASSUME_SOCK_CLOEXEC): Likewise.
39402         (__ASSUME_IN_NONBLOCK): Likewise.
39403         (__ASSUME_PIPE2): Likewise.
39404         (__ASSUME_EVENTFD2): Likewise.
39405         (__ASSUME_SIGNALFD4): Likewise.
39406         (__ASSUME_DUP3): Likewise.
39407         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39408         (__ASSUME_O_CLOEXEC): Likewise.
39409         (__ASSUME_SOCK_CLOEXEC): Likewise.
39410         (__ASSUME_IN_NONBLOCK): Likewise.
39411         (__ASSUME_PIPE2): Likewise.
39412         (__ASSUME_EVENTFD2): Likewise.
39413         (__ASSUME_SIGNALFD4): Likewise.
39414         (__ASSUME_DUP3): Likewise.
39415         * sysdeps/unix/sysv/linux/mips/kernel-features.h
39416         (__ASSUME_EVENTFD2): Likewise.
39417         (__ASSUME_SIGNALFD4): Likewise.
39418         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39419
39420 2014-05-12  Andreas Schwab  <schwab@suse.de>
39421
39422         [BZ #16932]
39423         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
39424         (_nss_nis_gethostbyname4_r): Return error if item length is larger
39425         than maximum RPC packet size.
39426         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
39427         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
39428         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
39429         (_nss_nis_getservbyport_r): Likewise.
39430
39431 2014-05-12  Will Newton  <will.newton@linaro.org>
39432
39433         * malloc/Makefile (tests): Add tst-mallopt.
39434         * malloc/tst-mallopt.c: New file.
39435
39436 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39437
39438         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
39439         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
39440
39441 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39442
39443         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
39444         (tst-tlsmod6.so): Likewise.
39445
39446 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39447
39448         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
39449
39450 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
39451
39452         [BZ #16064]
39453         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
39454         and <dl-procinfo.h>.
39455         (__fegetenv): Save SSE state in envp->__eip if supported.
39456         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
39457         envp->__eip if supported.
39458         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
39459         and <dl-procinfo.h>.
39460         (__fesetenv): Always set __eip, __cs_selector, __opcode,
39461         __data_offset and __data_selector in environment to 0.  Set SSE
39462         state if supported.
39463         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
39464         test-fenv-sse.
39465         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
39466         -mfpmath=sse.
39467         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
39468
39469 2014-05-09  Will Newton  <will.newton@linaro.org>
39470
39471         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
39472         and libc_relro_required for ARM.
39473         * sysdeps/arm/preconfigure: Regenerate.
39474
39475 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
39476             Stefan Liebler  <stli@linux.vnet.ibm.com>
39477
39478         * config.make.in (enable-lock-elision): New Makefile variable.
39479         * configure.ac: Likewise.
39480         * configure: Regenerate.
39481         * sysdeps/s390/configure.ac:
39482         Add check for gcc transactions support.
39483         * sysdeps/s390/configure: Regenerate.
39484         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
39485         Build elision files if enabled.
39486         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
39487         Add lock elision support for s390.
39488         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
39489         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
39490         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
39491         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
39492         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
39493         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
39494         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
39495         Likewise.
39496         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
39497         Likewise.
39498         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
39499         Likewise.
39500         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
39501         Likewise.
39502         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
39503         (__lll_timedlock_elision, __lll_lock_elision)
39504         (__lll_unlock_elision, __lll_trylock_elision)
39505         (lll_timedlock_elision, lll_lock_elision)
39506         (lll_unlock_elision, lll_trylock_elision): Add.
39507         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
39508         (pthread_mutex_t): Add lock elision support for s390.
39509
39510 2014-05-14  Wilco  <wdijkstr@arm.com>
39511
39512         * sysdeps/arm/fclrexcpt.c: Cleanup.
39513         * sysdeps/arm/fedisblxcpt.c: Cleanup.
39514         * sysdeps/arm/feenablxcpt.c: Cleanup.
39515         * sysdeps/arm/fegetenv.c: Cleanup.
39516         * sysdeps/arm/fegetexcept.c: Cleanup.
39517         * sysdeps/arm/fegetround.c: Cleanup.
39518         * sysdeps/arm/feholdexcpt.c: Cleanup.
39519         * sysdeps/arm/fesetenv.c: Cleanup.
39520         * sysdeps/arm/fesetround.c: Cleanup.
39521         * sysdeps/arm/feupdateenv.c: Cleanup.
39522         * sysdeps/arm/fgetexcptflg.c: Cleanup.
39523         * sysdeps/arm/fraiseexcpt.c: Cleanup.
39524         * sysdeps/arm/fsetexcptflg.c: Cleanup.
39525         * sysdeps/arm/ftestexcept.c: Cleanup.
39526         * sysdeps/arm/get-rounding-mode.h: Cleanup.
39527         * sysdeps/arm/setfpucw.c: Cleanup.
39528
39529 2014-05-09  Will Newton  <will.newton@linaro.org>
39530
39531         * sysdeps/arm/armv7/strcmp.S: New file.
39532         * NEWS: Mention addition of ARMv7 optimized strcmp.
39533
39534 2014-05-08  Roland McGrath  <roland@hack.frob.com>
39535
39536         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
39537         look for %.ac rather than %.in.
39538
39539         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
39540         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
39541         * sysdeps/mach/hurd/configure: Regenerated.
39542         * sysdeps/unix/sysv/linux/configure: Regenerated.
39543
39544         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
39545
39546 2014-05-07  Steve Ellcey  <sellcey@mips.com>
39547
39548         [BZ# 16922]
39549         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
39550         (LONG_SUB): Ditto.
39551         (PTR_SUB): Ditto.
39552
39553 2014-05-07  Andreas Schwab  <schwab@suse.de>
39554
39555         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
39556         when skipping over non-matching result from nscd.
39557
39558 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
39559
39560         [BZ #16876]
39561         * nptl/sockperf.c (client): Check socket return value.
39562
39563         [BZ #16877]
39564         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
39565         nscd security class.
39566
39567 2014-05-06  Roland McGrath  <roland@hack.frob.com>
39568
39569         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
39570         * sysdeps/arm/unwind.h: ... here.
39571
39572 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
39573
39574         [BZ# 16916]
39575         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
39576         Define.
39577
39578 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
39579
39580         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
39581         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
39582         multiarch strncpy for PPC64.
39583         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
39584         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
39585         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
39586         multiarch optimizations.
39587         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39588         (__libc_ifunc_impl_list): Likewise.
39589         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
39590         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
39591         multiarch stpncpy for PPC64.
39592         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
39593         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
39594
39595 2014-05-06  Andreas Schwab  <schwab@suse.de>
39596
39597         [BZ #16912]
39598         * gmon/mcount.c (_MCOUNT_DECL): Use
39599         atomic_compare_and_exchange_bool_acq instead of
39600         catomic_compare_and_exchange_bool_acq.
39601
39602 2014-05-05  Roland McGrath  <roland@hack.frob.com>
39603
39604         * elf/Makefile (others, install-bin): Remove pldd.
39605         (pldd-modules): Variable removed.
39606         ($(objpfx)pldd): Target removed.
39607         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
39608         (others, install-bin): Append pldd here.
39609         ($(objpfx)pldd): New target.
39610
39611         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
39612         to 0, so the first #if test emitted later doesn't see it undefined.
39613         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
39614         * sysdeps/gnu/errlist.c: Regenerated.
39615
39616 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39617
39618         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
39619         [libc_hidden_builtin_def]: Define to empty value.
39620         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
39621         [libc_hidden_builtin_def]: Likewise.
39622         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
39623         [libc_hidden_builtin_def]: Likewise.
39624         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
39625         [libc_hidden_builtin_def]: Likewise.
39626         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
39627         __redirect_memcpy and define ifunc as default hidden symbol.
39628         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
39629         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
39630
39631 2014-05-04  Adam Conrad  <adconrad@0c3.net>
39632
39633         * locale/iso-4217.def: Reintroduce XDR currency.
39634
39635 2014-05-04  Allan McRae  <allan@archlinux.org>
39636
39637         * po/eo.po: Update Esperanto translation from translation project.
39638
39639 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
39640
39641         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
39642         and FEATURE_INDEX_MAX to 1.
39643         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
39644
39645 2014-05-01  Steve Ellcey  <sellcey@mips.com>
39646
39647         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
39648         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
39649         * iconvdata/big5.c (ONE_DIRECTION): Define.
39650         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
39651         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
39652         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
39653         * iconvdata/cp932.c (ONE_DIRECTION): Define.
39654         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
39655         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
39656         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
39657         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
39658         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
39659         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
39660         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
39661         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
39662         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
39663         * iconvdata/gbk.c (ONE_DIRECTION): Define.
39664         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
39665         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
39666         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
39667         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
39668         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
39669         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
39670         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
39671         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
39672         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
39673         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
39674         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
39675         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
39676         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
39677         * iconvdata/iso646.c (ONE_DIRECTION): Define.
39678         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
39679         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
39680         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
39681         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
39682         * iconvdata/johab.c (ONE_DIRECTION): Define.
39683         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
39684         * iconvdata/sjis.c (ONE_DIRECTION): Define.
39685         * iconvdata/t.61.c (ONE_DIRECTION): Define.
39686         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
39687         * iconvdata/tscii.c (ONE_DIRECTION): Define.
39688         * iconvdata/uhc.c (ONE_DIRECTION): Define.
39689         * iconvdata/unicode.c (ONE_DIRECTION): Define.
39690         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
39691         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
39692         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
39693
39694 2014-05-01  Roland McGrath  <roland@hack.frob.com>
39695
39696         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
39697         (_IO_JUMPS_OFFSET): Define to 0.
39698
39699         * nptl/sysdeps/pthread/bits/libc-lock.h
39700         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
39701         (__libc_lock_define_initialized_recursive): Always define using
39702         initializer.  Modern compilers treat uninitialized (implicit zero) and
39703         explicit zero initializers the same (i.e. put the datum in bss).
39704
39705 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
39706
39707         * nscd/nscd-client.h: Include <string.h>.
39708
39709 2014-05-01  David S. Miller  <davem@davemloft.net>
39710
39711         [BZ #16885]
39712         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
39713         multiple zero bytes exist at the end of a string.
39714         Reported by Aurelien Jarno <aurelien@aurel32.net>
39715
39716         * string/test-strcmp.c (check): Add explicit test for situations where
39717         there are multiple zero bytes after the first.
39718
39719 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
39720
39721         [BZ #16890]
39722         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
39723         when compiling wprintf.
39724         * stdio-common/tstdiomisc.c (t3): New function.
39725         (main): Call it.
39726
39727 2014-05-01  Steve Ellcey  <sellcey@mips.com>
39728
39729         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
39730         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
39731         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
39732         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
39733
39734 2014-05-01  Steve Ellcey  <sellcey@mips.com>
39735
39736         * stdlib/longlong.h: Updated from GCC.
39737
39738 2014-05-01  Will Newton  <will.newton@linaro.org>
39739             Bernard Ogden  <bernie.ogden@linaro.org>
39740
39741         * NEWS: Update fixed bug list.
39742
39743         [BZ #15119]
39744         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
39745
39746 2014-04-30  David S. Miller  <davem@davemloft.net>
39747
39748         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
39749         (libc_feholdexcept_setround_sparc_ctx): New function.
39750         (libc_fesetenv_sparc_ctx): Likewise.
39751         (libc_feupdateenv_sparc_ctx): Likewise.
39752         (libc_feholdsetround_sparc_ctx): Likewise.
39753         (libc_feholdexcept_setround_ctx): Define.
39754         (libc_feholdexcept_setroundf_ctx): Likewise.
39755         (libc_feholdexcept_setroundl_ctx): Likewise.
39756         (libc_fesetenv_ctx): Likewise.
39757         (libc_fesetenvf_ctx): Likewise.
39758         (libc_fesetenvl_ctx): Likewise.
39759         (libc_feupdateenv_ctx): Likewise.
39760         (libc_feupdateenvf_ctx): Likewise.
39761         (libc_feupdateenvl_ctx): Likewise.
39762         (libc_feresetround_ctx): Likewise.
39763         (libc_feresetroundf_ctx): Likewise.
39764         (libc_feresetroundl_ctx): Likewise.
39765         (libc_feholdsetround_ctx): Likewise.
39766         (libc_feholdsetroundf_ctx): Likewise.
39767         (libc_feholdsetroundl_ctx): Likewise.
39768
39769         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
39770         with __USE_GNU instead of XOPEN cpp guards.
39771
39772         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
39773         0.
39774
39775         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
39776         with XOPEN cpp guards.
39777
39778 2014-04-30  Julian Brown  <julian@codesourcery.com>
39779
39780         [BZ #16888]
39781         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
39782         handling.
39783
39784 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
39785
39786         [BZ #9894]
39787         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
39788         Change to 2.6.32.
39789         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
39790         * sysdeps/unix/sysv/linux/configure: Regenerated.
39791         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
39792         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
39793         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
39794         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
39795         * README: Update reference to required Linux kernel version.
39796         * manual/install.texi (Linux): Update reference to required Linux
39797         kernel headers version.
39798         * INSTALL: Regenerated.
39799
39800         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
39801         header inclusion.
39802         [POSIX] (limits.h): Likewise.
39803         [POSIX] (math.h): Likewise.
39804         [POSIX] (sys/wait.h): Likewise.
39805         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
39806         function.
39807         [POSIX] (stddef.h): Do not allow header inclusion.
39808
39809 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39810
39811         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
39812
39813 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
39814
39815         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
39816         Return immediately after lll_futex_wake.
39817
39818 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
39819
39820         [BZ #16791]
39821         * nscd/nscd-client.h (datahead_init_common): Initialize entire
39822         structure.
39823         (datahead_init_pos): Call datahead_init_common early.
39824         (datahead_init_neg): Likewise.
39825
39826         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
39827         datahead_init_neg): New functions.
39828         * nscd/aicache.c (addhstaiX): Use them.
39829         * nscd/grpcache.c (cache_addgr): Likewise.
39830         * nscd/hstcache.c (cache_addhst): Likewise.
39831         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39832         * nscd/netgroupcache.c (do_notfound): Likewise.
39833         (addgetnetgrentX): Likewise.
39834         (addinnetgrX): Likewise.
39835         * nscd/pwdcache.c (cache_addpw): Likewise.
39836         * nscd/servicescache.c (cache_addserv): Likewise.
39837
39838 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
39839             Atsushi Onoe  <atsushi@onoe.org>
39840
39841         [BZ #14308]
39842         [BZ #12994]
39843         [BZ #13651]
39844         * resolv/res_query.c (__libc_res_nsearch): Return if at least
39845         one response is valid.
39846         * resolv/res_send.c (send_dg): Check for validity of other
39847         response if the current response is a referral.
39848
39849 2014-04-29  Steve Ellcey  <sellcey@mips.com>
39850
39851         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
39852
39853 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
39854
39855         [BZ #16823]
39856         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
39857         Always divide by positive zero when computing -Inf result.
39858         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
39859         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
39860
39861 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39862
39863         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
39864         FPSCR if value do not change.
39865         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
39866         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
39867         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
39868         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
39869         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
39870         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
39871         function.
39872
39873 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
39874
39875         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
39876         * sysdeps/unix/sysv/linux/hppa: Move directory from
39877         ports/systeps/unix/sysv/linux/hppa.
39878         * README: Update listing for hppa-*-linux-gnu.
39879
39880 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
39881
39882         [BZ #16754]
39883         * manual/stdio.texi (Hook functions): Fix types of stream hook
39884         functions.
39885         [BZ #16854]
39886         * socket/sys/socket.h: Fix typo in comment.
39887
39888 2014-04-28  Wilco  <wdijkstr@arm.com>
39889
39890         * sysdeps/arm/fenv_private.h: New file.
39891         * sysdeps/arm/math_private.h: New file.
39892         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
39893
39894 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
39895
39896         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
39897         with __int128_t.
39898         (La_x86_64_retval): Likewise.
39899
39900 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
39901
39902         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
39903         fpsr if value didn't change.
39904         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
39905         to fpcr if value didn't change.
39906         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
39907         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
39908         fpsr or fpcr if value didn't change.
39909         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
39910         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
39911         fpcr if value didn't change.
39912         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
39913         to fpsr if value didn't change.
39914
39915 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
39916
39917         * nptl/tst-sem3.c: Use test-skeleton.c
39918         (main): Rename to do_test.  Use return instead of
39919         exit.
39920         * nptl/tst-sem4.c: Use test-skeleton.c
39921         (main): Rename to do_test.
39922
39923 2014-04-22  David S. Miller  <davem@davemloft.net>
39924
39925         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
39926         (struct sigaction): New struct member __glibc_reserved0, change
39927         type of sa_flags to int.
39928
39929 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
39930
39931         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
39932         (COUNT_LEADING_ZEROS_0): Define for AArch64.
39933
39934 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
39935
39936         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
39937         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
39938
39939 2014-04-22  Will Newton  <will.newton@linaro.org>
39940             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
39941
39942         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
39943         (__longjmp): Add longjmp and longjmp_target SystemTap
39944         probes.
39945         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
39946         (__sigsetjmp): Add setjmp SystemTap probe.
39947
39948 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
39949
39950         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
39951         match manual order.
39952
39953 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39954
39955         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
39956
39957         * sysdeps/powerpc/fpu/fenv_private.h
39958         (libc_feholdexcept_setroundl_ctx): Define to
39959         libc_feholdexcept_setround_ppc_ctx.
39960         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
39961         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
39962         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
39963         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
39964
39965 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
39966
39967         * sysdeps/aarch64/math-tests.h: New file.
39968
39969 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
39970
39971         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
39972         New.
39973         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
39974         Check and set bit_AVX2_Usable.
39975         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
39976         macro.
39977         (bit_AVX2): Likewise.
39978         (index_AVX2_Usable): Likewise.
39979         (CPUID_AVX2): Likewise.
39980         (HAS_AVX2): Likewise.
39981
39982 2014-04-17  Will Newton  <will.newton@linaro.org>
39983
39984         * manual/setjmp.texi (System V contexts): Add note that
39985         calling setcontext on a context created by a call to a
39986         signal handler is undefined.  Update text to note that
39987         setcontext from a signal handler is possible but not
39988         recommended.
39989
39990         [BZ #16629]
39991         * stdlib/tst-setcontext.c: Include signal.h.
39992         (main): Check that the signal stack before and
39993         after swapcontext is the same.
39994
39995         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
39996         Re-implement to restore registers in user code and avoid
39997         rt_sigreturn system call.
39998
39999 2014-04-17  Wilco  <wdijkstr@arm.com>
40000
40001         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
40002         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
40003         * math/test-fenv.c: Skip exception trap tests on targets which only
40004         support non-stop mode.
40005
40006 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40007             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40008
40009         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
40010         (libc_feholdsetround_aarch64_ctx)
40011         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
40012         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
40013         (libc_feresetround_ctx, libc_feresetroundf_ctx)
40014         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
40015         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
40016         (libc_feresetround_noexl_ctx): Define.
40017
40018 2014-04-16  Richard Henderson  <rth@redhat.com>
40019
40020         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
40021
40022         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
40023         unwind tables.
40024
40025         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
40026         const from the non-libc, non-ldso copy.
40027
40028         * sysdeps/alpha/libm-test-ulps: Regenerate.
40029
40030 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
40031             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40032
40033         * sysdeps/aarch64/fpu/math_private.h: New file.
40034
40035 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
40036
40037         * sysdeps/aarch64/libm-test-ulps: Regenerate.
40038
40039 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
40040
40041         [BZ #16275]
40042         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
40043         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
40044         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
40045         Intel MPX bound registers before _dl_profile_fixup.
40046         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
40047         registers after _dl_profile_fixup.  Save and restore bound
40048         registers bnd0/bnd1 when calling _dl_call_pltexit.
40049         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
40050         (LR_BND_OFFSET): Likewise.
40051         (LRV_BND0_OFFSET): Likewise.
40052         (LRV_BND1_OFFSET): Likewise.
40053
40054 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40055
40056         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
40057         to...
40058         * sysdeps/mach/hurd/i386/tls.h: ... here.
40059         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
40060         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
40061         fields.
40062
40063 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40064
40065         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
40066
40067 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40068
40069         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
40070
40071 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40072
40073         [BZ #14770]
40074         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
40075         * sysdeps/s390/configure: Regenerate.
40076
40077         [BZ #16824]
40078         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
40079         Set round-to-nearest internally to reduce error accumulation.
40080
40081 2014-04-16  Alan Modra  <amodra@gmail.com>
40082
40083         [BZ #16740]
40084         [BZ #16619]
40085         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
40086         * math/libm-test.inc (frexp_test_data): Add tests.
40087         * NEWS: Update fixed bug list.
40088
40089 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40090
40091         * benchtests/Makefile: Depend on libraries in build directory.
40092         (bench-math): Separate out math tests.
40093         (bench-pthread): Separate out pthread tests.
40094         (bench): Include math and pthread tests.
40095
40096 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
40097
40098         [BZ #16831]
40099         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
40100         _dl_debug_initialize.
40101
40102         * configure.ac: Remove SELinux header check.
40103         * configure: Regenerate.
40104         * nscd/selinux.c (perms): Array of const char* to permission names.
40105         (nscd_request_avc_has_perm): Call security_deny_unknown to find
40106         default policy. Call string_to_security_class and string_to_av_perm to
40107         translate strings. Enforce default policy and call avs_has_perm with
40108         results of translated strings.
40109
40110 2014-04-13  David S. Miller  <davem@davemloft.net>
40111
40112         * sysdeps/sparc/fpu/libm-test-ulps: Update.
40113
40114 2014-04-12  Allan McRae  <allan@archlinux.org>
40115
40116         [BZ #16838]
40117         * manual/string.texi (Collation Functions): Fix qsort argument
40118         order in example.
40119         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
40120
40121 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
40122
40123         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
40124         Make the test a no-op if there are no exceptions defined.
40125
40126 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
40127
40128         * elf/Makefile (tests): make tst-dlopen-aout conditional on
40129         enable-hardcoded-path-in-tests
40130
40131 2014-04-11  Will Newton  <will.newton@linaro.org>
40132
40133         * benchtests/Makefile (extra-objs): Add json-lib.o.
40134         (bench-func): Tidy up JSON output.
40135         * benchtests/bench-skeleton.c: Include json-lib.h.
40136         (main): Use JSON library functions to do output of
40137         benchmark results.
40138         * benchtests/bench-timing-type.c (main): Output the
40139         timing type simply, leaving formatting to the user.
40140         * benchtests/json-lib.c: New file.
40141         * benchtests/json-lib.h: Likewise.
40142
40143 2014-04-11  Torvald Riegel  <triegel@redhat.com>
40144
40145         [BZ #15215]
40146         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
40147         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
40148         memory barriers.  Add comments.
40149         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
40150         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
40151         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
40152         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
40153         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
40154         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
40155
40156 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
40157
40158         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
40159         * sysdeps/s390/s390-64/configure.ac: ... this ...
40160         * sysdeps/s390/configure.ac: ... to here.
40161         * sysdeps/s390/s390-32/configure: Delete file.
40162         * sysdeps/s390/s390-64/configure: Delete file.
40163         * sysdeps/s390/configure: Regenerate.
40164
40165 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
40166
40167         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
40168
40169 2014-04-11  Will Newton  <will.newton@linaro.org>
40170
40171         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
40172         to zero if it is not defined elsewhere.  (mtrim): Test
40173         the value of MALLOC_DEBUG with #if rather than #ifdef.
40174
40175 2014-04-10 Torvald Riegel  <triegel@redhat.com>
40176
40177         * benchtests/pthread_once-inputs: New file.
40178         * benchtests/pthread_once-source.c: New file.
40179         * benchtests/README: Update documentation.
40180
40181 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
40182             H.J. Lu  <hongjiu.lu@intel.com>
40183
40184         [BZ #16275]
40185         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
40186         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
40187         * sysdeps/x86_64/configure: Regenerated.
40188         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
40189         macro.
40190         (REGISTER_SAVE_RAX): Likewise.
40191         (REGISTER_SAVE_RCX): Likewise.
40192         (REGISTER_SAVE_RDX): Likewise.
40193         (REGISTER_SAVE_RSI): Likewise.
40194         (REGISTER_SAVE_RDI): Likewise.
40195         (REGISTER_SAVE_R8): Likewise.
40196         (REGISTER_SAVE_R9): Likewise.
40197         (REGISTER_SAVE_BND0): Likewise.
40198         (REGISTER_SAVE_BND1): Likewise.
40199         (REGISTER_SAVE_BND2): Likewise.
40200         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
40201         bound registers when calling _dl_fixup.
40202
40203 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40204
40205         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
40206         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
40207         of its definition.
40208         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
40209         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
40210         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
40211         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
40212         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
40213         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
40214         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
40215
40216 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
40217
40218         [BZ #15514]
40219         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
40220         pathconf(_PC_NAME_MAX).
40221
40222 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40223
40224         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
40225         Remove macro usage.
40226         (__PTHREAD_SPINS): Move definition to ...
40227         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40228         (__PTHREAD_SPINS): ... here.
40229         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40230         (__PTHREAD_SPIN): Likewise.
40231         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
40232         (__PTHREAD_SPIN): Likewise.
40233         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
40234         (__PTHREAD_SPIN): Likewise.
40235         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
40236         (__PTHREAD_SPIN): Likewise.
40237         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
40238         (__PTHREAD_SPIN): Likewise.
40239         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
40240         (__PTHREAD_SPIN): Likewise.
40241         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
40242         (__PTHREAD_SPIN): Likewise.
40243         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
40244         (__PTHREAD_SPIN): Likewise.
40245         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
40246         (__PTHREAD_SPIN): Likewise.
40247         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
40248         (__PTHREAD_SPIN): Likewise.
40249         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
40250         (__PTHREAD_SPIN): Likewise.
40251         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
40252         (__PTHREAD_SPIN): Likewise.
40253
40254         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
40255         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
40256         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
40257         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
40258         imply folder.
40259         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
40260         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
40261         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
40262         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
40263         correct imply path.
40264         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
40265         strlen symbol for non multi-arch builds.
40266         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
40267         missing hidden_def and weak_alias.
40268
40269 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
40270
40271         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
40272
40273 2014-04-07  Will Newton  <will.newton@linaro.org>
40274
40275         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
40276         and contents.  [!_LIBC] Remove #ifndef and contents.
40277         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
40278         * string/memccpy.c (__memccpy): Use ANSI prototype.
40279         * string/memfrob.c (memfrob): Likewise.
40280         * string/strcoll.c (STRCOLL): Likewise.
40281         * string/strlen.c (strlen): Likewise.
40282         * string/strtok.c (STRTOK): Likewise.
40283         * string/strcat.c: Remove unused #include of memcopy.h.
40284         (strcat): Use ANSI prototype.
40285         * string/strchr.c: Remove unused #include of memcopy.h.
40286         (strchr): Use ANSI prototype.
40287         * string/strcmp.c: Remove unused #include of memcopy.h.
40288         (strcmp): Use ANSI prototype.
40289         * string/strcpy.c: Remove unused #include of memcopy.h.
40290         (strcpy): Use ANSI prototype.
40291
40292 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40293
40294         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
40295         * config.make.in (config-extra-cppflags): Set it from
40296         libc_extra_cppflags.
40297         * configure.ac (libc_extra_cflags): Make it accumulate over
40298         configure fragments.
40299         (libc_extra_cppflags): New flag.
40300         * configure. Regenerate.
40301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40302         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
40303         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
40304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
40305
40306         [BZ #16815]
40307         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
40308         result for FE_DOWNWARD rounding mode.
40309         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
40310         Likewise.
40311         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40312
40313 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
40314
40315         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
40316         in function argument name.
40317
40318 2014-04-03  David Svoboda  <svoboda@cert.org>
40319
40320         [BZ #5666]
40321         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
40322         explicitly.
40323
40324 2014-04-03  Roland McGrath  <roland@hack.frob.com>
40325
40326         * elf/dl-unmap-segments.h: New file.
40327         * sysdeps/generic/ldsodefs.h
40328         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
40329         * elf/dl-close.c: Include <dl-unmap-segments.h>.
40330         * elf/dl-fptr.c: Likewise.
40331         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
40332         * sysdeps/aarch64/tlsdesc.c: Likewise.
40333         * sysdeps/arm/tlsdesc.c: Likewise.
40334         * sysdeps/i386/tlsdesc.c: Likewise.
40335         * sysdeps/tile/dl-runtime.c: Likewise.
40336         * sysdeps/x86_64/tlsdesc.c: Likewise.
40337         * elf/dl-load.h: New file.
40338         * elf/dl-load.c: Include it.
40339         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
40340         Macros moved to dl-load.h.
40341         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
40342         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
40343         Use _dl_unmap_segments in place of __munmap.
40344         Break out segment-mapping loop into ...
40345         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
40346
40347 2014-04-03  Will Newton  <will.newton@linaro.org>
40348
40349         * elf/dl-lookup.c (do_lookup_x): Remove comment
40350         referring to nested function and move variable
40351         declarations down to before first use.
40352
40353 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
40354
40355         [BZ #16799]
40356         [BZ #16800]
40357         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
40358         with 0 numerator.
40359         * math/s_catanf.c (__catanf): Likewise.
40360         * math/s_catanh.c (__catanh): Likewise.
40361         * math/s_catanhf.c (__catanhf): Likewise.
40362         * math/s_catanhl.c (__catanhl): Likewise.
40363         * math/s_catanl.c (__catanl): Likewise.
40364         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
40365         by positive zero when computing -Inf result.
40366         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
40367         (catanh_test): Likewise.
40368         * sysdeps/i386/fpu/libm-test-ulps: Update.
40369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40370
40371         [BZ #16789]
40372         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
40373         instead of using underflowing value in computing result.
40374         * math/s_clog10.c (__clog10): Likewise.
40375         * math/s_clog10f.c (__clog10f): Likewise.
40376         * math/s_clog10l.c (__clog10l): Likewise.
40377         * math/s_clogf.c (__clogf): Likewise.
40378         * math/s_clogl.c (__clogl): Likewise.
40379         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
40380         (clog10_test): Likewise.
40381         * sysdeps/i386/fpu/libm-test-ulps: Update.
40382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40383
40384 2014-04-02  Alan Modra  <amodra@gmail.com>
40385
40386         [BZ #16739]
40387         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
40388         output when value is near a power of two.  Use int64_t for lx and
40389         remove casts.  Use decimal rather than hex exponent constants.
40390         Don't use long double multiplication when double will suffice.
40391         * math/libm-test.inc (nextafter_test_data): Add tests.
40392         * NEWS: Add 16739 and 16786 to bug list.
40393
40394         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
40395
40396         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
40397
40398 2014-04-01  Will Newton  <will.newton@linaro.org>
40399
40400         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
40401         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
40402
40403 2014-04-01  Florian Weimer  <fweimer@redhat.com>
40404
40405         [BZ #13347]
40406         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
40407         * nptl/tst-setuid2.c: New file.
40408         * nptl/Makefile (xtests): Add tst-setuid2.
40409
40410 2014-04-01  Alan Modra  <amodra@gmail.com>
40411
40412         [BZ #16786]
40413         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
40414
40415 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40416
40417         [BZ #6803]
40418         [BZ #6804]
40419         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
40420         set errno as appropriate.
40421         * math/w_scalbf.c (__scalbf): Likewise.
40422         * math/w_scalbl.c (__scalbl): Likewise.
40423         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
40424         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
40425         * math/libm-test.inc (scalb_test_data): Add errno expectations.
40426         Add more NaN tests.
40427
40428         [BZ #16349]
40429         * math/w_atan2.c: Include <errno.h>.
40430         (__atan2): Set errno for result underflowing to zero.
40431         * math/w_atan2f.c: Include <errno.h>.
40432         (__atan2f): Set errno for result underflowing to zero.
40433         * math/w_atan2l.c: Include <errno.h>.
40434         (__atan2l): Set errno for result underflowing to zero.
40435         * math/auto-libm-test-in: Don't allow missing errno for some atan2
40436         tests.
40437         * math/auto-libm-test-out: Regenerated.
40438
40439 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40440
40441         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
40442         Encode instruction correctly in little endian.
40443         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
40444         Likewise.
40445         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
40446         Likewise.
40447         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
40448         Likewise.
40449         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
40450         Likewise.
40451
40452 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40453
40454         [BZ #9894]
40455         * sysdeps/unix/sysv/linux/kernel-features.h
40456         [__sparc__ && !__arch64__ && !__sparc_v9__]
40457         (__ASSUME_SET_ROBUST_LIST): Do not define.
40458         [__sparc__ && !__arch64__ && !__sparc_v9__]
40459         (__ASSUME_FUTEX_LOCK_PI): Likewise.
40460         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
40461         Likewise.
40462         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40463         (__ASSUME_FUTEX_LOCK_PI): Undefine.
40464         (__ASSUME_REQUEUE_PI): Likewise.
40465         (__ASSUME_SET_ROBUST_LIST): Likewise.
40466         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
40467         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
40468         Undefine.
40469         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40470         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
40471         Likewise.
40472         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
40473         Likewise.
40474         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
40475         Likewise.
40476         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40477         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
40478         Undefine.
40479         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
40480         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
40481         Likewise.
40482
40483         [BZ #16648]
40484         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40485         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
40486         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
40487
40488 2014-03-31  Will Newton  <will.newton@linaro.org>
40489
40490         * benchtests/Makefile (bench): Add ffs and ffsll to list
40491         of tests.
40492         * benchtests/ffs-inputs: New file.
40493         * benchtests/ffsll-inputs: Likewise.
40494
40495 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
40496
40497         [BZ #16770]
40498         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
40499         too large before casting to int.
40500         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
40501         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
40502         * math/libm-test.inc (scalb_test_data): Add more tests.
40503
40504 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
40505
40506         * benchtests/Makefile (DETAILED_OPT): New make option.
40507         (bench-func): Run benchmark program with -d if DETAILED_OPT is
40508         set.
40509         * benchtests/bench-skeleton.c: Include stdbool.h.
40510         (main): Store and print timings per input.
40511         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
40512         member to each argument value.
40513         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
40514         (_print_arg_data): Initialize per-input timing to 0.
40515
40516         * benchtests/Makefile (timing-type): New binary.
40517         (bench-clean): Also remove bench-timing-type.
40518         (bench): New target for timing-type.
40519         (bench-func): Print output in JSON format.
40520         * benchtests/bench-skeleton.c (main): Print output in JSON
40521         format.
40522         * benchtests/bench-timing-type.c: New file.
40523         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
40524         (TIMING_PRINT_STATS): Remove.
40525         * benchtests/scripts/bench.py (_print_arg_data): Store variant
40526         name separately.
40527
40528         * benchtests/bench-modf.c: Remove.
40529         * benchtests/modf-inputs: New inputs file.
40530
40531 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
40532
40533         [BZ #16362]
40534         * math/s_clog10.c (M_PI_LOG10E): New macro.
40535         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
40536         imaginary parts are 0.
40537         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
40538         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
40539         imaginary parts are 0.
40540         * math/s_clog10l.c (M_PI_LOG10El): New macro.
40541         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
40542         imaginary parts are 0.
40543         * math/libm-test.inc (clog10_test_data): Update expected results
40544         for when real and imaginary parts are 0.
40545
40546 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
40547
40548         * elf/dl-load.c: Finish conversion of __builtin_expect into
40549         __glibc_{un}likely.
40550
40551 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
40552
40553         [BZ #16348]
40554         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
40555         1+x for argument with exponent below -67.
40556         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
40557         Likewise.
40558         * math/auto-libm-test-in: Add more tests of exp.
40559         * math/auto-libm-test-out: Regenerated.
40560
40561 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40562
40563         [BZ #16759]
40564         * inet/getnetgrent_r.c (get_nonempty_val): New function.
40565         (nscd_getnetgrent): Use it.
40566
40567         [BZ #16760]
40568         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
40569         of stpcpy.
40570
40571 2014-03-27  Andi Kleen  <ak@linux.intel.com>
40572
40573         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
40574         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40575         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40576         (lll_robust_unlock): Remove out of line section. Use cfi
40577         intrinsics.
40578         (LLL_STUB_UNWIND_INFO*): Remove.
40579         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
40580         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40581         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40582         (lll_robust_unlock): Remove out of line section. Use cfi
40583         intrinsics.
40584         (LLL_STUB_UNWIND_INFO*): Remove.
40585
40586 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40587
40588         [BZ #16758]
40589         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
40590         blank values.
40591
40592 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
40593
40594         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
40595
40596 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
40597
40598         [BZ #16198]
40599         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
40600         fnstenv.
40601         * math/test-fenv-preserve.c: New file.
40602         * math/Makefile (tests): Add test-fenv-preserve.
40603
40604 2014-03-26  Will Newton <will.newton@linaro.org>
40605
40606         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
40607
40608 2014-03-25  Roland McGrath  <roland@hack.frob.com>
40609
40610         * scripts/versionlist.awk: Partition the version sets and emit all
40611         GLIBC_* (sorted) before all others (sorted).
40612
40613 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40614
40615         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
40616         GLIBC_2.2.5 version.
40617
40618 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40619
40620         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
40621         calls.
40622
40623         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
40624         previous change.
40625
40626         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40627
40628 2014-03-25  Andreas Schwab  <schwab@suse.de>
40629
40630         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
40631         label to be used after in6ailist is initialized.
40632
40633 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40634
40635         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40636         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
40637
40638 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40639
40640         [BZ #16357]
40641         [BZ #16599]
40642         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
40643         min_plus_half.
40644         (fp_formats): Update initializers.
40645         (init_fp_formats): Initialize new field.
40646         (output_for_one_input_case): Allow underflow for results up to
40647         min_plus_half.
40648         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
40649         * math/auto-libm-test-in: Don't mark some underflows from asin and
40650         atanh as spurious.
40651         * math/auto-libm-test-out: Regenerated.
40652         * sysdeps/i386/fpu/libm-test-ulps: Update.
40653         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40654
40655 2014-03-25  Andreas Schwab  <schwab@suse.de>
40656
40657         * libio/Makefile (tst-ftell-partial-wide-ENV)
40658         (tst-ftell-active-handler-ENV): Define.
40659
40660 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
40661
40662         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
40663
40664 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
40665
40666         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
40667
40668 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
40669
40670         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
40671         * sysdeps/x86_64/fpu/multiarch/e_exp.c
40672         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
40673
40674 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
40675
40676         [BZ #16634]
40677         * elf/dl-load.c (open_verify): Add mode parameter.
40678         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
40679         (open_path): Change from boolean 'secure' to complete flag 'mode'
40680         (_dl_map_object): Adjust.
40681         * elf/Makefile (tests): Add tst-dlopen-aout.
40682         * elf/tst-dlopen-aout.c: New test.
40683
40684 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
40685
40686         [BZ #16714]
40687         * sysdeps/unix/sysv/linux/s390/bits/stat.h
40688         (struct stat): Rename member pad0 to __glibc_reserved0.
40689
40690         [BZ #16712]
40691         * sysdeps/s390/s390-32/bits/wordsize.h
40692         (__WORDSIZE32_SIZE_ULONG): New define.
40693         * sysdeps/s390/s390-64/bits/wordsize.h
40694         (__WORDSIZE32_SIZE_ULONG): Likewise.
40695         * sysdeps/generic/stdint.h (SIZE_MAX):
40696         Define as UL if __WORDSIZE32_SIZE_ULONG.
40697
40698         [BZ #16713]
40699         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
40700         (__glibc_reserved0): New variable.
40701         (sa_flags): Change type to int.
40702
40703         * posix/Makefile (before-compile): Use += before-compile instead
40704         of a :=.
40705
40706         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40707         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
40708
40709 2014-03-20  Andreas Schwab  <schwab@suse.de>
40710
40711         [BZ #16743]
40712         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
40713         non-matching result from nscd.
40714
40715 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
40716
40717         * scripts/bench.py: Moved to ...
40718         * benchtests/scripts/bench.py: ... here.
40719         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
40720
40721 2014-03-24  Andreas Schwab  <schwab@suse.de>
40722
40723         [BZ #16002]
40724         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
40725         alloca_account and account alloca use for struct in6ailist.
40726
40727 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
40728
40729         [BZ #16284]
40730         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
40731         rounding mode to recompute results that overflow to infinity or
40732         underflow to zero.
40733         * math/auto-libm-test-in: Don't mark tests as expected to fail for
40734         bug 16284.
40735         * math/auto-libm-test-out: Regenerated.
40736         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
40737         (ccosh_test): Likewise.
40738         (csin_test_data): Use plus_oflow.
40739         (csin_test): Use ALL_RM_TEST.
40740         (csinh_test_data): Use plus_oflow.
40741         (csinh_test): Use ALL_RM_TEST.
40742         * sysdeps/i386/fpu/libm-test-ulps: Update.
40743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40744
40745 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
40746
40747         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
40748         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
40749         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
40750
40751         [BZ #16731]
40752         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
40753         when x - 1 is zero.
40754         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
40755         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
40756         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
40757         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
40758         argument is 1.
40759         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
40760         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
40761         zero.
40762         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
40763         * sysdeps/i386/fpu/libm-test-ulps: Update.
40764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40765
40766 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
40767
40768         * scripts/bench.pl: Remove file.
40769         * scripts/bench.py: New benchmark script.
40770         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
40771         * benchtests/README: Mention python dependency.
40772         * scripts/pylintrc: New file.
40773         * scripts/pylint: New file.
40774
40775         * bits/mathdef.h: Use #ifdef instead of #if.
40776         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
40777         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
40778         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
40779         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
40780         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
40781         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
40782
40783 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40784             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
40785
40786         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
40787         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
40788         and strpbrk-ppc64 objects.
40789         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40790         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
40791         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
40792         multiarch strpbrk for POWER7.
40793         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
40794         multiarch strpbrk for PPC64.
40795         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
40796         ifunc selector.
40797         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
40798         strpbrk for POWER7.
40799
40800 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
40801
40802         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
40803         (atan_test): Likewise.
40804         (atanh_test_data): Use NO_TEST_INLINE for two tests.
40805         (atanh_test): Use ALL_RM_TEST.
40806         (atan2_test_data): Likewise.
40807         (cabs_test): Likewise.
40808         (cacosh_test): Likewise.
40809         (carg_test): Likewise.
40810         (casin_test): Likewise.
40811         (casinh_test): Likewise.
40812         (cbrt_test): Likewise.
40813         (csqrt_test): Likewise.
40814         (erf_test): Likewise.
40815         (erfc_test): Likewise.
40816         (pow10_test): Likewise.
40817         (exp2_test): Likewise.
40818         (hypot_test): Likewise.
40819         (j0_test): Likewise.
40820         (j1_test): Likewise.
40821         (lgamma_test): Likewise.
40822         (gamma_test): Likewise.
40823         (sincos_test): Likewise.
40824         (tanh_test): Likewise.
40825         (y0_test): Likewise.
40826         (y1_test): Likewise.
40827         * sysdeps/i386/fpu/libm-test-ulps: Update.
40828         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40829
40830 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40831
40832         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
40833         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
40834         and strcspn-ppc64 objects.
40835         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40836         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
40837         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
40838         multiarch strcspn for POWER7.
40839         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
40840         multiarch strcspn for PPC64.
40841         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
40842         ifunc selector.
40843         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
40844         strcspn for POWER7.
40845
40846 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
40847
40848         * math/gen-libm-test.pl (generate_testfile): Expect only function
40849         name as argument to AUTO_TESTS_* and pass results for all rounding
40850         modes to parse_args.
40851         (parse_auto_input): Separate inputs of automatic tests from
40852         outputs before storing in %auto_tests.
40853         * math/libm-test.inc (acos_test_data): Update call to
40854         AUTO_TESTS_f_f.
40855         (acos_test): Use ALL_RM_TEST.
40856         (acos_tonearest_test_data): Remove.
40857         (acos_test_tonearest): Likewise.
40858         (acos_towardzero_test_data): Likewise.
40859         (acos_test_towardzero): Likewise.
40860         (acos_downward_test_data): Likewise.
40861         (acos_test_downward): Likewise.
40862         (acos_upward_test_data): Likewise.
40863         (acos_test_upward): Likewise.
40864         (acosh_test_data): Update call to AUTO_TESTS_f_f.
40865         (asin_test_data): Likewise.
40866         (asin_test): Use ALL_RM_TEST.
40867         (asin_tonearest_test_data): Remove.
40868         (asin_test_tonearest): Likewise.
40869         (asin_towardzero_test_data): Likewise.
40870         (asin_test_towardzero): Likewise.
40871         (asin_downward_test_data): Likewise.
40872         (asin_test_downward): Likewise.
40873         (asin_upward_test_data): Likewise.
40874         (asin_test_upward): Likewise.
40875         (asinh_test_data): Update call to AUTO_TESTS_f_f.
40876         (atan_test_data): Likewise.
40877         (atanh_test_data): Likewise.
40878         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
40879         (cabs_test_data): Update call to AUTO_TESTS_c_f.
40880         (carg_test_data): Likewise.
40881         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
40882         (ccos_test_data): Update call to AUTO_TESTS_c_c.
40883         (ccosh_test_data): Likewise.
40884         (cexp_test_data): Likewise.
40885         (clog_test_data): Likewise.
40886         (clog10_test_data): Likewise.
40887         (cos_test_data): Update call to AUTO_TESTS_f_f.
40888         (cos_test): Use ALL_RM_TEST.
40889         (cos_tonearest_test_data): Remove.
40890         (cos_test_tonearest): Likewise.
40891         (cos_towardzero_test_data): Likewise.
40892         (cos_test_towardzero): Likewise.
40893         (cos_downward_test_data): Likewise.
40894         (cos_test_downward): Likewise.
40895         (cos_upward_test_data): Likewise.
40896         (cos_test_upward): Likewise.
40897         (cosh_test_data): Update call to AUTO_TESTS_f_f.
40898         (cosh_test): Use ALL_RM_TEST.
40899         (cosh_tonearest_test_data): Remove.
40900         (cosh_test_tonearest): Likewise.
40901         (cosh_towardzero_test_data): Likewise.
40902         (cosh_test_towardzero): Likewise.
40903         (cosh_downward_test_data): Likewise.
40904         (cosh_test_downward): Likewise.
40905         (cosh_upward_test_data): Likewise.
40906         (cosh_test_upward): Likewise.
40907         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
40908         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
40909         (ctan_test_data): Likewise.
40910         (ctan_test): Use ALL_RM_TEST.
40911         (ctan_tonearest_test_data): Remove.
40912         (ctan_test_tonearest): Likewise.
40913         (ctan_towardzero_test_data): Likewise.
40914         (ctan_test_towardzero): Likewise.
40915         (ctan_downward_test_data): Likewise.
40916         (ctan_test_downward): Likewise.
40917         (ctan_upward_test_data): Likewise.
40918         (ctan_test_upward): Likewise.
40919         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
40920         (ctanh_test): Use ALL_RM_TEST.
40921         (ctanh_tonearest_test_data): Remove.
40922         (ctanh_test_tonearest): Likewise.
40923         (ctanh_towardzero_test_data): Likewise.
40924         (ctanh_test_towardzero): Likewise.
40925         (ctanh_downward_test_data): Likewise.
40926         (ctanh_test_downward): Likewise.
40927         (ctanh_upward_test_data): Likewise.
40928         (ctanh_test_upward): Likewise.
40929         (erf_test_data): Update call to AUTO_TESTS_f_f.
40930         (erfc_test_data): Likewise.
40931         (exp_test_data): Likewise.
40932         (exp_test): Use ALL_RM_TEST.
40933         (exp_tonearest_test_data): Remove.
40934         (exp_test_tonearest): Likewise.
40935         (exp_towardzero_test_data): Likewise.
40936         (exp_test_towardzero): Likewise.
40937         (exp_downward_test_data): Likewise.
40938         (exp_test_downward): Likewise.
40939         (exp_upward_test_data): Likewise.
40940         (exp_test_upward): Likewise.
40941         (exp10_test_data): Update call to AUTO_TESTS_f_f.
40942         (exp10_test): Use ALL_RM_TEST.
40943         (exp10_tonearest_test_data): Remove.
40944         (exp10_test_tonearest): Likewise.
40945         (exp10_towardzero_test_data): Likewise.
40946         (exp10_test_towardzero): Likewise.
40947         (exp10_downward_test_data): Likewise.
40948         (exp10_test_downward): Likewise.
40949         (exp10_upward_test_data): Likewise.
40950         (exp10_test_upward): Likewise.
40951         (exp2_test_data): Update call to AUTO_TESTS_f_f.
40952         (expm1_test_data): Likewise.
40953         (expm1_test): Use ALL_RM_TEST.
40954         (expm1_tonearest_test_data): Remove.
40955         (expm1_test_tonearest): Likewise.
40956         (expm1_towardzero_test_data): Likewise.
40957         (expm1_test_towardzero): Likewise.
40958         (expm1_downward_test_data): Likewise.
40959         (expm1_test_downward): Likewise.
40960         (expm1_upward_test_data): Likewise.
40961         (expm1_test_upward): Likewise.
40962         (fma_test_data): Update call to AUTO_TESTS_fff_f.
40963         (fma_test): Use ALL_RM_TEST.
40964         (fma_towardzero_test_data): Remove.
40965         (fma_test_towardzero): Likewise.
40966         (fma_downward_test_data): Likewise.
40967         (fma_test_downward): Likewise.
40968         (fma_upward_test_data): Likewise.
40969         (fma_test_upward): Likewise.
40970         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
40971         (j0_test_data): Update call to AUTO_TESTS_f_f.
40972         (j1_test_data): Likewise.
40973         (jn_test_data): Update call to AUTO_TESTS_if_f.
40974         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
40975         (log_test_data): Update call to AUTO_TESTS_f_f.
40976         (log10_test_data): Likewise.
40977         (log1p_test_data): Likewise.
40978         (log2_test_data): Likewise.
40979         (pow_test_data): Update call to AUTO_TESTS_ff_f.
40980         (pow_tonearest_test_data): Likewise.
40981         (sin_test_data): Update call to AUTO_TESTS_f_f.
40982         (sin_test): Use ALL_RM_TEST.
40983         (sin_tonearest_test_data): Remove.
40984         (sin_test_tonearest): Likewise.
40985         (sin_towardzero_test_data): Likewise.
40986         (sin_test_towardzero): Likewise.
40987         (sin_downward_test_data): Likewise.
40988         (sin_test_downward): Likewise.
40989         (sin_upward_test_data): Likewise.
40990         (sin_test_upward): Likewise.
40991         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
40992         (sinh_test_data): Update call to AUTO_TESTS_f_f.
40993         (sinh_test): Use ALL_RM_TEST.
40994         (sinh_tonearest_test_data): Remove.
40995         (sinh_test_tonearest): Likewise.
40996         (sinh_towardzero_test_data): Likewise.
40997         (sinh_test_towardzero): Likewise.
40998         (sinh_downward_test_data): Likewise.
40999         (sinh_test_downward): Likewise.
41000         (sinh_upward_test_data): Likewise.
41001         (sinh_test_upward): Likewise.
41002         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
41003         (sqrt_test): Use ALL_RM_TEST.
41004         (sqrt_tonearest_test_data): Remove.
41005         (sqrt_test_tonearest): Likewise.
41006         (sqrt_towardzero_test_data): Likewise.
41007         (sqrt_test_towardzero): Likewise.
41008         (sqrt_downward_test_data): Likewise.
41009         (sqrt_test_downward): Likewise.
41010         (sqrt_upward_test_data): Likewise.
41011         (sqrt_test_upward): Likewise.
41012         (tan_test_data): Update call to AUTO_TESTS_f_f.
41013         (tan_test): Use ALL_RM_TEST.
41014         (tan_tonearest_test_data): Remove.
41015         (tan_test_tonearest): Likewise.
41016         (tan_towardzero_test_data): Likewise.
41017         (tan_test_towardzero): Likewise.
41018         (tan_downward_test_data): Likewise.
41019         (tan_test_downward): Likewise.
41020         (tan_upward_test_data): Likewise.
41021         (tan_test_upward): Likewise.
41022         (tanh_test_data): Update call to AUTO_TESTS_f_f.
41023         (tgamma_test_data): Likewise.
41024         (y0_test_data): Likewise.
41025         (y1_test_data): Likewise.
41026         (yn_test_data): Update call to AUTO_TESTS_if_f.
41027         (main): Do not call removed functions.
41028
41029 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41030
41031         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
41032         (ldexp_test_data): Remove.
41033         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
41034         scalbn_test_data.
41035         (scalb_test): Use ALL_RM_TEST.
41036
41037 2014-03-19  Andreas Schwab  <schwab@suse.de>
41038
41039         * nscd/nscd.service: Also invalidate netgroup cache on reload.
41040
41041 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41042
41043         [BZ #16649]
41044         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
41045         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
41046         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
41047         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41048         (__ASSUME_PREADV): Undefine.
41049         (__ASSUME_PWRITEV): Likewise.
41050
41051 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41052
41053         * bits/mman-linux.h: Add comment about non-Linux use.
41054         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
41055         bits/mman-linux.h resting place.
41056
41057         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
41058         * bits/mman-linux.h: ... here.
41059
41060 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41061
41062         * conform/conformtest.pl: Add standard definition when calling C
41063         preprocessor on data files.
41064         (checknamespace): Remove unused variable.
41065
41066 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41067
41068         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
41069         minus_oflow, plus_uflow and minus_uflow in expected results.
41070         * math/libm-test.inc (scalbn_test_data): Add more tests of
41071         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
41072         minus_uflow.
41073         (scalbn_test): Use ALL_RM_TEST.
41074         (scalbln_test_data): Add more tests of negative arguments.  Use
41075         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
41076         (scalbln_test): Use ALL_RM_TEST.
41077
41078 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41079
41080         * scripts/abilist.awk: Ignore symbols marked with .hidden.
41081
41082 2014-03-18  Will Newton  <will.newton@linaro.org>
41083
41084         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
41085         inaccurate comment.
41086
41087 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41088
41089         * Makerules [!subdir] (check-abi): Exit with error status if a
41090         test failed.
41091
41092 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41093
41094         * math/libm-test.inc (nearbyint_test_data): Include all tests used
41095         for rint.  Include results for all rounding modes.
41096         (nearbyint_test): Use ALL_RM_TEST.
41097         (rint_test_data): Include all tests used for nearbyint.
41098
41099 2014-03-17  Will Newton  <will.newton@linaro.org>
41100
41101         * nptl/sysdeps/pthread/pthread.h: Revert previous
41102         change.
41103
41104         * sysdeps/generic/ldsodefs.h: Revert previous
41105         change.
41106
41107         * libio/genops.c: Revert previous change.
41108         * libio/libioP.h: Likewise.
41109         * stdio-common/vfprintf.c: Likewise.
41110
41111         * sysdeps/generic/math_private.h: Revert previous
41112         change.
41113
41114         * sysdeps/generic/math_private.h: Check whether
41115         HAVE_RM_CTX is defined with #ifdef rather
41116         than #if.
41117
41118         * argp/argp-fmtstream.h: Check whether
41119         __STRICT_ANSI__ is defined with #ifdef rather
41120         than #if.
41121         * argp/argp.h: Likewise.
41122
41123         * libio/genops.c: Check whether
41124         _IO_JUMPS_OFFSET is defined with #ifdef rather
41125         than #if.
41126         * libio/libioP.h: Likewise.
41127         * stdio-common/vfprintf.c: Likewise.
41128
41129         * sysdeps/generic/ldsodefs.h: Check whether
41130         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
41131         than #if.
41132
41133         * nptl/sysdeps/pthread/pthread.h: Check
41134         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
41135         its value.
41136
41137 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
41138
41139         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
41140         setting O_APPEND.
41141         * libio/tst-ftell-active-handler.c (do_append_test): Add a
41142         test case.
41143
41144         [BZ #16680]
41145         * libio/fileops.c (_IO_file_open): Seek to end of file but
41146         don't cache the offset.
41147         (get_file_offset): Remove function.
41148         (do_ftell): Use cached offset when available.
41149         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
41150         don't cache the offset.
41151         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
41152         case.
41153         (do_one_test): Call it.
41154         (do_ftell_test): Fix up expected old offset for a+ mode.
41155         * libio/wfileops.c (do_ftell_wide): Used cached offset when
41156         available.
41157
41158         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
41159         up test status with function return status.
41160         (do_write_test): Likewise.
41161         (do_append_test): Likewise.
41162
41163         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
41164         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
41165         Remove.
41166
41167 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41168
41169         * math/gen-libm-test.pl (parse_args): Handle results specified for
41170         each rounding mode separately.
41171         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
41172         tests and results from lrint_tonearest_test_data,
41173         lrint_towardzero_test_data, lrint_downward_test_data and
41174         lrint_upward_test_data.
41175         (lrint_test): Use ALL_RM_TEST.
41176         (lrint_tonearest_test_data): Remove.
41177         (lrint_test_tonearest): Likewise.
41178         (lrint_towardzero_test_data): Likewise.
41179         (lrint_test_towardzero): Likewise.
41180         (lrint_downward_test_data): Likewise.
41181         (lrint_test_downward): Likewise.
41182         (lrint_upward_test_data): Likewise.
41183         (lrint_test_upward): Likewise.
41184         (llrint_test_data): Merge in per-rounding-mode tests and results
41185         from llrint_tonearest_test_data, llrint_towardzero_test_data,
41186         llrint_downward_test_data and llrint_upward_test_data.
41187         (llrint_test): Use ALL_RM_TEST.
41188         (llrint_tonearest_test_data): Remove.
41189         (llrint_test_tonearest): Likewise.
41190         (llrint_towardzero_test_data): Likewise.
41191         (llrint_test_towardzero): Likewise.
41192         (llrint_downward_test_data): Likewise.
41193         (llrint_test_downward): Likewise.
41194         (llrint_upward_test_data): Likewise.
41195         (llrint_test_upward): Likewise.
41196         (rint_test_data): Merge in per-rounding-mode tests and results
41197         from rint_tonearest_test_data, rint_towardzero_test_data,
41198         rint_downward_test_data and rint_upward_test_data.  Add
41199         per-rounding-mode results for tests not in those arrays.
41200         (rint_test): Use ALL_RM_TEST.
41201         (rint_tonearest_test_data): Remove.
41202         (rint_test_tonearest): Likewise.
41203         (rint_towardzero_test_data): Likewise.
41204         (rint_test_towardzero): Likewise.
41205         (rint_downward_test_data): Likewise.
41206         (rint_test_downward): Likewise.
41207         (rint_upward_test_data): Likewise.
41208         (rint_test_upward): Likewise.
41209         (main): Don't call removed functions.
41210
41211 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41212
41213         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
41214         "Compiled on ..." crapola.  It is anti-useful.
41215
41216 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
41217
41218         * scripts/evaluate-test.sh: Handle fourth argument to determine
41219         whether test run should stop on failure.
41220         * Makeconfig (stop-on-test-failure): New variable.
41221         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
41222         $(stop-on-test-failure).
41223         * Makefile (tests): Give a summary of results from testing and
41224         exit with failure status if they include an ERROR or FAIL.
41225         (xtests): Likewise.
41226         * manual/install.texi (Configuring and compiling): Mention
41227         stop-on-test-failure=y.
41228         * INSTALL: Regenerated.
41229
41230 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41231
41232         * scripts/versionlist.awk: New file.
41233         * Makerules [$(build-shared) = yes]
41234         (postclean-generated): Add Versions.def, not Versions.def.v and
41235         Versions.def.v.i.
41236         ($(common-objpfx)Versions.def.v.i): Target removed.
41237         ($(common-objpfx)Versions.def): New target.
41238         ($(common-objpfx)Versions.all): Depend on that rather that
41239         $(common-objpfx)Versions.def.v.
41240         * Versions.def: File removed.
41241
41242         * Makeconfig (+gccwarn): Add -Wundef.
41243         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
41244         a dl-sysdep.h breaking its contract.
41245         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
41246         * include/stackinfo.h: New file.
41247         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
41248         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
41249         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
41250         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
41251         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
41252         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
41253         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41254         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41255         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41256         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41257         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41258         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
41259         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41260         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41261         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41262
41263 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41264
41265         [BZ #16707]
41266         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
41267         implementation.
41268         * math/libm-test.inc (round_test_data): Add more tests.
41269
41270         [BZ #16706]
41271         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
41272         implementation.
41273         * math/libm-test.inc (nearbyint_test_data): Add more tests.
41274
41275         [BZ #16701]
41276         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
41277         implementation.
41278         * math/libm-test.inc (ceil_test_data): Add more tests.
41279
41280         * math/libm-test.inc (trunc_test_data): Add more tests related to
41281         BZ#16414.
41282
41283 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41284
41285         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
41286         with #if rather than #ifdef.
41287         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
41288
41289 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
41290
41291         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
41292         first.  Disable AVX-512 GCC support if assembler doesn't support
41293         it.
41294         * sysdeps/x86_64/configure: Regenerated.
41295
41296 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
41297
41298         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
41299         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
41300         (__old_pthread_attr_setstack): Likewise.
41301         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
41302         [!_STACK_GROWS_DOWN]: Likewise.
41303
41304 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
41305
41306         * config.make.in (have-bash2): Delete.
41307         * configure.ac (libc_cv_have_bash2): Delete.
41308         * configure: Regenerate.
41309         * elf/Makefile (common-ldd-rewrite): Rename to ...
41310         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
41311         (sh-ldd-rewrite): Delete.
41312         (bash-ldd-rewrite): Delete.
41313         (have-bash2): Delete checks.
41314         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
41315         ldd-rewrite.
41316
41317         * config.make.in (have-ksh): Delete.
41318         (KSH): Delete.
41319         * configure.ac (libc_cv_have_ksh): Delete.
41320         * configure: Regenerate.
41321
41322         * elf/Makefile: Delete $(have-ksh) check.
41323         ($(objpfx)sotruss): Change KSH to BASH.
41324         * elf/sotruss.ksh: Rename to ...
41325         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
41326         function style to match POSIX.  Drop ksh vim mode setting.
41327
41328         * manual/time.texi (Specifying the Time Zone with TZ): Change
41329         Tuesday to Thursday.
41330
41331         * debug/tst-longjmp_chk2.c: Update header comment.
41332         (stackoverflow_handler): Add comment.  Call assert on pass value.
41333
41334 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
41335
41336         [BZ #16194]
41337         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
41338         (HAVE_AVX512_ASM_SUPPORT): Likewise.
41339         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
41340         (La_x86_64_vector): Add zmm.
41341         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
41342         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
41343         ($(objpfx)tst-audit10): New target.
41344         ($(objpfx)tst-audit10.out): Likewise.
41345         (tst-audit10-ENV): New.
41346         (AVX512-CFLAGS): Likewise.
41347         (CFLAGS-tst-audit10.c): Likewise.
41348         (CFLAGS-tst-auditmod10a.c): Likewise.
41349         (CFLAGS-tst-auditmod10b.c): Likewise.
41350         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
41351         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
41352         * sysdeps/x86_64/configure: Regenerated.
41353         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
41354         AVX-512 zmm register support.
41355         (_dl_x86_64_save_sse): Likewise.
41356         (_dl_x86_64_restore_sse): Likewise.
41357         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
41358         size vector registers.
41359         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
41360         (ZMM_SIZE): Likewise.
41361         * sysdeps/x86_64/tst-audit10.c: New file.
41362         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
41363         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
41364
41365 2014-03-13  Roland McGrath  <roland@hack.frob.com>
41366
41367         * configure.ac (HAVE_EHDR_START): New check.
41368         * configure: Regenerated.
41369         * config.h.in (HAVE_EHDR_START): New #undef.
41370         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
41371         assuming the lowest-addressed segment maps the start of the file.
41372
41373 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
41374
41375         * INSTALL: Regenerated.
41376
41377 2014-03-13  Will Newton  <will.newton@linaro.org>
41378
41379         * manual/setjmp.texi (System V contexts): Improve
41380         clarity and grammar of documentation.
41381
41382 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
41383
41384         [BZ #16381]
41385         * elf/Makefile (tests): Add tst-pie2.
41386         (tests-pie): Add tst-pie2.
41387         * elf/tst-pie2.c: New file.
41388         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
41389         for ET_EXEC.
41390         * elf/rtld.c (map_doit): Load executable as lt_executable.
41391         (dl_main): Likewise.
41392
41393 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
41394
41395         [BZ #16642]
41396         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41397         (__ASSUME_PSELECT): Undefine.
41398
41399 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41400
41401         [BZ #16689]
41402         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
41403         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
41404         static build.
41405         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
41406         selector for static builds.
41407
41408 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
41409
41410         [BZ #16695]
41411         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
41412         key in the buffer.
41413
41414 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41415
41416         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
41417         IFUNC selector for static builds.
41418
41419 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
41420
41421         * sysdeps/mips/math_private.h [__mips_hard_float]
41422         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
41423         libc_feresetround_mips_ctx.
41424         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
41425         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
41426         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
41427
41428         [BZ #16677]
41429         * math/s_nextafter.c (__nextafter): Do not return value from
41430         overflowing computation.
41431         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
41432         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
41433         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
41434         Likewise.
41435         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
41436         Likewise.
41437         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
41438         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
41439
41440 2014-03-11  Roland McGrath  <roland@hack.frob.com>
41441
41442         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
41443         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
41444         Move sfi_sp use from the load-multiple (that no longer sets sp) to
41445         the new mov targetting sp.
41446
41447 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41448
41449         [BZ #16683]
41450         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
41451         Define it for static builds as well.
41452         (NO_BZERO_IMPL): Likewise.
41453
41454 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41455
41456         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
41457         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
41458         multiarch strspn for PPC64.
41459         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
41460         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
41461         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41462         (__libc_ifunc_impl_list): Likewise.
41463         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
41464         multiarch optimizations
41465         * string/strspn.c (strspn): Using macro to redefine symbol name.
41466
41467 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41468             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41469
41470         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
41471         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
41472         multiarch strncat for PPC64.
41473         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
41474         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
41475         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41476         (__libc_ifunc_impl_list): Likewise.
41477         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
41478         multiarch optimizations
41479
41480 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41481
41482         [BZ #16639]
41483         * nscd/nscd.service: Make service type forking.
41484
41485 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41486
41487         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
41488         sign in non default rounding modes.
41489         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
41490
41491 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
41492
41493         * math/libm-test.inc (ALL_RM_TEST): New macro.
41494         (ceil_test): Use ALL_RM_TEST.
41495         (cimag_test): Likewise.
41496         (conj_test): Likewise.
41497         (copysign_test): Likewise.
41498         (cproj_test): Likewise.
41499         (creal_test): Likewise.
41500         (fabs_test): Likewise.
41501         (floor_test): Likewise.
41502         (fmax_test): Likewise.
41503         (fmin_test): Likewise.
41504         (fmod_test): Likewise.
41505         (fpclassify_test): Likewise.
41506         (frexp_test): Likewise.
41507         (ilogb_test): Likewise.
41508         (isfinite_test): Likewise.
41509         (finite_test): Likewise.
41510         (isgreater_test): Likewise.
41511         (isgreaterequal_test): Likewise.
41512         (isinf_test): Likewise.
41513         (isless_test): Likewise.
41514         (islessequal_test): Likewise.
41515         (islessgreater_test): Likewise.
41516         (isnan_test): Likewise.
41517         (isnormal_test): Likewise.
41518         (issignaling_test): Likewise.
41519         (isunordered_test): Likewise.
41520         (logb_test): Likewise.
41521         (logb_downward_test_data): Remove.
41522         (logb_test_downward): Likewise.
41523         (lround_test): Use ALL_RM_TEST.
41524         (llround_test): Likewise.
41525         (modf_test): Likewise.
41526         (nexttoward_test): Likewise.
41527         (remainder_test): Likewise.
41528         (drem_test): Likewise.
41529         (remainder_tonearest_test_data): Likewise.
41530         (remainder_test_tonearest): Likewise.
41531         (drem_test_tonearest): Likewise.
41532         (remainder_towardzero_test_data): Likewise.
41533         (remainder_test_towardzero): Likewise.
41534         (drem_test_towardzero): Likewise.
41535         (remainder_downward_test_data): Likewise.
41536         (remainder_test_downward): Likewise.
41537         (drem_test_downward): Likewise.
41538         (remainder_upward_test_data): Likewise.
41539         (remainder_test_upward): Likewise.
41540         (drem_test_upward): Likewise.
41541         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
41542         (round_test): Use ALL_RM_TEST.
41543         (signbit_test): Likewise.
41544         (trunc_test): Likewise.
41545         (significand_test): Likewise.
41546         (main): Don't call removed functions.
41547
41548 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
41549
41550         [BZ #16674]
41551         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
41552         || __USE_XOPEN2K8].
41553         (ILL_ILLOPN): Likewise.
41554         (ILL_ILLADR): Likewise.
41555         (ILL_ILLTRP): Likewise.
41556         (ILL_PRVOPC): Likewise.
41557         (ILL_PRVREG): Likewise.
41558         (ILL_COPROC): Likewise.
41559         (ILL_BADSTK): Likewise.
41560         (FPE_INTDIV): Likewise.
41561         (FPE_INTOVF): Likewise.
41562         (FPE_FLTDIV): Likewise.
41563         (FPE_FLTOVF): Likewise.
41564         (FPE_FLTUND): Likewise.
41565         (FPE_FLTRES): Likewise.
41566         (FPE_FLTINV): Likewise.
41567         (FPE_FLTSUB): Likewise.
41568         (SEGV_MAPERR): Likewise.
41569         (SEGV_ACCERR): Likewise.
41570         (BUS_ADRALN): Likewise.
41571         (BUS_ADRERR): Likewise.
41572         (BUS_OBJERR): Likewise.
41573         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41574         (TRAP_TRACE): Likewise.
41575         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41576         __USE_XOPEN2K8].
41577         (CLD_KILLED): Likewise.
41578         (CLD_DUMPED): Likewise.
41579         (CLD_TRAPPED): Likewise.
41580         (CLD_STOPPED): Likewise.
41581         (CLD_CONTINUED): Likewise.
41582         (POLL_IN): Likewise.
41583         (POLL_OUT): Likewise.
41584         (POLL_MSG): Likewise.
41585         (POLL_ERR): Likewise.
41586         (POLL_PRI): Likewise.
41587         (POLL_HUP): Likewise.
41588         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
41589         Likewise.
41590         (ILL_ILLOPN): Likewise.
41591         (ILL_ILLADR): Likewise.
41592         (ILL_ILLTRP): Likewise.
41593         (ILL_PRVOPC): Likewise.
41594         (ILL_PRVREG): Likewise.
41595         (ILL_COPROC): Likewise.
41596         (ILL_BADSTK): Likewise.
41597         (FPE_INTDIV): Likewise.
41598         (FPE_INTOVF): Likewise.
41599         (FPE_FLTDIV): Likewise.
41600         (FPE_FLTOVF): Likewise.
41601         (FPE_FLTUND): Likewise.
41602         (FPE_FLTRES): Likewise.
41603         (FPE_FLTINV): Likewise.
41604         (FPE_FLTSUB): Likewise.
41605         (SEGV_MAPERR): Likewise.
41606         (SEGV_ACCERR): Likewise.
41607         (BUS_ADRALN): Likewise.
41608         (BUS_ADRERR): Likewise.
41609         (BUS_OBJERR): Likewise.
41610         (BUS_MCEERR_AR): Likewise.
41611         (BUS_MCEERR_AO): Likewise.
41612         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41613         (TRAP_TRACE): Likewise.
41614         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41615         __USE_XOPEN2K8].
41616         (CLD_KILLED): Likewise.
41617         (CLD_DUMPED): Likewise.
41618         (CLD_TRAPPED): Likewise.
41619         (CLD_STOPPED): Likewise.
41620         (CLD_CONTINUED): Likewise.
41621         (POLL_IN): Likewise.
41622         (POLL_OUT): Likewise.
41623         (POLL_MSG): Likewise.
41624         (POLL_ERR): Likewise.
41625         (POLL_PRI): Likewise.
41626         (POLL_HUP): Likewise.
41627         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
41628         (ILL_ILLOPN): Likewise.
41629         (ILL_ILLADR): Likewise.
41630         (ILL_ILLTRP): Likewise.
41631         (ILL_PRVOPC): Likewise.
41632         (ILL_PRVREG): Likewise.
41633         (ILL_COPROC): Likewise.
41634         (ILL_BADSTK): Likewise.
41635         (FPE_INTDIV): Likewise.
41636         (FPE_INTOVF): Likewise.
41637         (FPE_FLTDIV): Likewise.
41638         (FPE_FLTOVF): Likewise.
41639         (FPE_FLTUND): Likewise.
41640         (FPE_FLTRES): Likewise.
41641         (FPE_FLTINV): Likewise.
41642         (FPE_FLTSUB): Likewise.
41643         (SEGV_MAPERR): Likewise.
41644         (SEGV_ACCERR): Likewise.
41645         (BUS_ADRALN): Likewise.
41646         (BUS_ADRERR): Likewise.
41647         (BUS_OBJERR): Likewise.
41648         (BUS_MCEERR_AR): Likewise.
41649         (BUS_MCEERR_AO): Likewise.
41650         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41651         (TRAP_TRACE): Likewise.
41652         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41653         __USE_XOPEN2K8].
41654         (CLD_KILLED): Likewise.
41655         (CLD_DUMPED): Likewise.
41656         (CLD_TRAPPED): Likewise.
41657         (CLD_STOPPED): Likewise.
41658         (CLD_CONTINUED): Likewise.
41659         (POLL_IN): Likewise.
41660         (POLL_OUT): Likewise.
41661         (POLL_MSG): Likewise.
41662         (POLL_ERR): Likewise.
41663         (POLL_PRI): Likewise.
41664         (POLL_HUP): Likewise.
41665         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
41666         Likewise.
41667         (ILL_ILLOPN): Likewise.
41668         (ILL_ILLADR): Likewise.
41669         (ILL_ILLTRP): Likewise.
41670         (ILL_PRVOPC): Likewise.
41671         (ILL_PRVREG): Likewise.
41672         (ILL_COPROC): Likewise.
41673         (ILL_BADSTK): Likewise.
41674         (ILL_BADIADDR): Likewise.
41675         (ILL_BREAK): Likewise.
41676         (FPE_INTDIV): Likewise.
41677         (FPE_INTOVF): Likewise.
41678         (FPE_FLTDIV): Likewise.
41679         (FPE_FLTOVF): Likewise.
41680         (FPE_FLTUND): Likewise.
41681         (FPE_FLTRES): Likewise.
41682         (FPE_FLTINV): Likewise.
41683         (FPE_FLTSUB): Likewise.
41684         (FPE_DECOVF): Likewise.
41685         (FPE_DECDIV): Likewise.
41686         (FPE_DECERR): Likewise.
41687         (FPE_INVASC): Likewise.
41688         (FPE_INVDEC): Likewise.
41689         (SEGV_MAPERR): Likewise.
41690         (SEGV_ACCERR): Likewise.
41691         (SEGV_PSTKOVF): Likewise.
41692         (BUS_ADRALN): Likewise.
41693         (BUS_ADRERR): Likewise.
41694         (BUS_OBJERR): Likewise.
41695         (BUS_MCEERR_AR): Likewise.
41696         (BUS_MCEERR_AO): Likewise.
41697         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41698         (TRAP_TRACE): Likewise.
41699         (TRAP_BRANCH): Likewise.
41700         (TRAP_HWBKPT): Likewise.
41701         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41702         __USE_XOPEN2K8].
41703         (CLD_KILLED): Likewise.
41704         (CLD_DUMPED): Likewise.
41705         (CLD_TRAPPED): Likewise.
41706         (CLD_STOPPED): Likewise.
41707         (CLD_CONTINUED): Likewise.
41708         (POLL_IN): Likewise.
41709         (POLL_OUT): Likewise.
41710         (POLL_MSG): Likewise.
41711         (POLL_ERR): Likewise.
41712         (POLL_PRI): Likewise.
41713         (POLL_HUP): Likewise.
41714         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
41715         (ILL_ILLOPN): Likewise.
41716         (ILL_ILLADR): Likewise.
41717         (ILL_ILLTRP): Likewise.
41718         (ILL_PRVOPC): Likewise.
41719         (ILL_PRVREG): Likewise.
41720         (ILL_COPROC): Likewise.
41721         (ILL_BADSTK): Likewise.
41722         (FPE_INTDIV): Likewise.
41723         (FPE_INTOVF): Likewise.
41724         (FPE_FLTDIV): Likewise.
41725         (FPE_FLTOVF): Likewise.
41726         (FPE_FLTUND): Likewise.
41727         (FPE_FLTRES): Likewise.
41728         (FPE_FLTINV): Likewise.
41729         (FPE_FLTSUB): Likewise.
41730         (SEGV_MAPERR): Likewise.
41731         (SEGV_ACCERR): Likewise.
41732         (BUS_ADRALN): Likewise.
41733         (BUS_ADRERR): Likewise.
41734         (BUS_OBJERR): Likewise.
41735         (BUS_MCEERR_AR): Likewise.
41736         (BUS_MCEERR_AO): Likewise.
41737         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41738         (TRAP_TRACE): Likewise.
41739         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41740         __USE_XOPEN2K8].
41741         (CLD_KILLED): Likewise.
41742         (CLD_DUMPED): Likewise.
41743         (CLD_TRAPPED): Likewise.
41744         (CLD_STOPPED): Likewise.
41745         (CLD_CONTINUED): Likewise.
41746         (POLL_IN): Likewise.
41747         (POLL_OUT): Likewise.
41748         (POLL_MSG): Likewise.
41749         (POLL_ERR): Likewise.
41750         (POLL_PRI): Likewise.
41751         (POLL_HUP): Likewise.
41752         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
41753         (ILL_ILLOPN): Likewise.
41754         (ILL_ILLADR): Likewise.
41755         (ILL_ILLTRP): Likewise.
41756         (ILL_PRVOPC): Likewise.
41757         (ILL_PRVREG): Likewise.
41758         (ILL_COPROC): Likewise.
41759         (ILL_BADSTK): Likewise.
41760         (FPE_INTDIV): Likewise.
41761         (FPE_INTOVF): Likewise.
41762         (FPE_FLTDIV): Likewise.
41763         (FPE_FLTOVF): Likewise.
41764         (FPE_FLTUND): Likewise.
41765         (FPE_FLTRES): Likewise.
41766         (FPE_FLTINV): Likewise.
41767         (FPE_FLTSUB): Likewise.
41768         (SEGV_MAPERR): Likewise.
41769         (SEGV_ACCERR): Likewise.
41770         (BUS_ADRALN): Likewise.
41771         (BUS_ADRERR): Likewise.
41772         (BUS_OBJERR): Likewise.
41773         (BUS_MCEERR_AR): Likewise.
41774         (BUS_MCEERR_AO): Likewise.
41775         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41776         (TRAP_TRACE): Likewise.
41777         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41778         __USE_XOPEN2K8].
41779         (CLD_KILLED): Likewise.
41780         (CLD_DUMPED): Likewise.
41781         (CLD_TRAPPED): Likewise.
41782         (CLD_STOPPED): Likewise.
41783         (CLD_CONTINUED): Likewise.
41784         (POLL_IN): Likewise.
41785         (POLL_OUT): Likewise.
41786         (POLL_MSG): Likewise.
41787         (POLL_ERR): Likewise.
41788         (POLL_PRI): Likewise.
41789         (POLL_HUP): Likewise.
41790         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
41791         (ILL_ILLOPN): Likewise.
41792         (ILL_ILLADR): Likewise.
41793         (ILL_ILLTRP): Likewise.
41794         (ILL_PRVOPC): Likewise.
41795         (ILL_PRVREG): Likewise.
41796         (ILL_COPROC): Likewise.
41797         (ILL_BADSTK): Likewise.
41798         (FPE_INTDIV): Likewise.
41799         (FPE_INTOVF): Likewise.
41800         (FPE_FLTDIV): Likewise.
41801         (FPE_FLTOVF): Likewise.
41802         (FPE_FLTUND): Likewise.
41803         (FPE_FLTRES): Likewise.
41804         (FPE_FLTINV): Likewise.
41805         (FPE_FLTSUB): Likewise.
41806         (SEGV_MAPERR): Likewise.
41807         (SEGV_ACCERR): Likewise.
41808         (BUS_ADRALN): Likewise.
41809         (BUS_ADRERR): Likewise.
41810         (BUS_OBJERR): Likewise.
41811         (BUS_MCEERR_AR): Likewise.
41812         (BUS_MCEERR_AO): Likewise.
41813         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41814         (TRAP_TRACE): Likewise.
41815         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41816         __USE_XOPEN2K8].
41817         (CLD_KILLED): Likewise.
41818         (CLD_DUMPED): Likewise.
41819         (CLD_TRAPPED): Likewise.
41820         (CLD_STOPPED): Likewise.
41821         (CLD_CONTINUED): Likewise.
41822         (POLL_IN): Likewise.
41823         (POLL_OUT): Likewise.
41824         (POLL_MSG): Likewise.
41825         (POLL_ERR): Likewise.
41826         (POLL_PRI): Likewise.
41827         (POLL_HUP): Likewise.
41828         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
41829         (ILL_ILLOPN): Likewise.
41830         (ILL_ILLADR): Likewise.
41831         (ILL_ILLTRP): Likewise.
41832         (ILL_PRVOPC): Likewise.
41833         (ILL_PRVREG): Likewise.
41834         (ILL_COPROC): Likewise.
41835         (ILL_BADSTK): Likewise.
41836         (ILL_DBLFLT): Likewise.
41837         (ILL_HARDWALL): Likewise.
41838         (FPE_INTDIV): Likewise.
41839         (FPE_INTOVF): Likewise.
41840         (FPE_FLTDIV): Likewise.
41841         (FPE_FLTOVF): Likewise.
41842         (FPE_FLTUND): Likewise.
41843         (FPE_FLTRES): Likewise.
41844         (FPE_FLTINV): Likewise.
41845         (FPE_FLTSUB): Likewise.
41846         (SEGV_MAPERR): Likewise.
41847         (SEGV_ACCERR): Likewise.
41848         (BUS_ADRALN): Likewise.
41849         (BUS_ADRERR): Likewise.
41850         (BUS_OBJERR): Likewise.
41851         (BUS_MCEERR_AR): Likewise.
41852         (BUS_MCEERR_AO): Likewise.
41853         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41854         (TRAP_TRACE): Likewise.
41855         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41856         __USE_XOPEN2K8].
41857         (CLD_KILLED): Likewise.
41858         (CLD_DUMPED): Likewise.
41859         (CLD_TRAPPED): Likewise.
41860         (CLD_STOPPED): Likewise.
41861         (CLD_CONTINUED): Likewise.
41862         (POLL_IN): Likewise.
41863         (POLL_OUT): Likewise.
41864         (POLL_MSG): Likewise.
41865         (POLL_ERR): Likewise.
41866         (POLL_PRI): Likewise.
41867         (POLL_HUP): Likewise.
41868         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
41869         (ILL_ILLOPN): Likewise.
41870         (ILL_ILLADR): Likewise.
41871         (ILL_ILLTRP): Likewise.
41872         (ILL_PRVOPC): Likewise.
41873         (ILL_PRVREG): Likewise.
41874         (ILL_COPROC): Likewise.
41875         (ILL_BADSTK): Likewise.
41876         (FPE_INTDIV): Likewise.
41877         (FPE_INTOVF): Likewise.
41878         (FPE_FLTDIV): Likewise.
41879         (FPE_FLTOVF): Likewise.
41880         (FPE_FLTUND): Likewise.
41881         (FPE_FLTRES): Likewise.
41882         (FPE_FLTINV): Likewise.
41883         (FPE_FLTSUB): Likewise.
41884         (SEGV_MAPERR): Likewise.
41885         (SEGV_ACCERR): Likewise.
41886         (BUS_ADRALN): Likewise.
41887         (BUS_ADRERR): Likewise.
41888         (BUS_OBJERR): Likewise.
41889         (BUS_MCEERR_AR): Likewise.
41890         (BUS_MCEERR_AO): Likewise.
41891         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41892         (TRAP_TRACE): Likewise.
41893         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41894         __USE_XOPEN2K8].
41895         (CLD_KILLED): Likewise.
41896         (CLD_DUMPED): Likewise.
41897         (CLD_TRAPPED): Likewise.
41898         (CLD_STOPPED): Likewise.
41899         (CLD_CONTINUED): Likewise.
41900         (POLL_IN): Likewise.
41901         (POLL_OUT): Likewise.
41902         (POLL_MSG): Likewise.
41903         (POLL_ERR): Likewise.
41904         (POLL_PRI): Likewise.
41905         (POLL_HUP): Likewise.
41906         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
41907         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
41908
41909         [BZ #16670]
41910         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
41911         before #include of <time.h>.
41912         [!__USE_XOPEN2K] (__need_timespec): Likewise.
41913         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
41914         (test-xfail-UNIX98/sched.h/conform): Likewise.
41915
41916 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
41917
41918         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
41919         error absence of trapping exception support.
41920         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
41921
41922 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
41923
41924         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
41925         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
41926         * timezone/Makefile (testdata): Move definition above include of
41927         Rules.
41928         (test-zones): New variable.
41929         (tests-special): Add zone files.
41930         (build-testdata): Use $(evaluate-test).
41931
41932         * elf/Makefile (tests-special): Rename tests to end with .out.
41933         ($(objpfx)noload-mem): Likewise.
41934         ($(objpfx)tst-leaks1-mem): Likewise.
41935         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
41936         * iconv/Makefile (xtests-special): Change test-iconvconfig to
41937         $(objpfx)test-iconvconfig.out.
41938         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
41939         set -e inside subshell and redirect output to file.
41940         * iconvdata/Makefile (generated): Rename tests to end with .out.
41941         Correct type.
41942         (tests-special): Rename tests to end with .out.
41943         ($(objpfx)mtrace-tst-loading): Likewise.
41944         * intl/Makefile (generated): Likewise.
41945         (tests-special): Likewise.
41946         ($(objpfx)mtrace-tst-gettext): Likewise.
41947         * misc/Makefile (generated): Likewise.
41948         (tests-special): Likewise.
41949         ($(objpfx)tst-error1-mem): Likewise.
41950         * nptl/Makefile (tests-special): Likewise.
41951         ($(objpfx)tst-stack3-mem): Likewise.
41952         (generated): Likewise.
41953         * posix/Makefile (generated): Likewise.
41954         (tests-special): Likewise.
41955         (xtests-special): Likewise.
41956         ($(objpfx)tst-fnmatch-mem): Likewise.
41957         ($(objpfx)bug-regex2-mem): Likewise.
41958         ($(objpfx)bug-regex14-mem): Likewise.
41959         ($(objpfx)bug-regex21-mem): Likewise.
41960         ($(objpfx)bug-regex31-mem): Likewise.
41961         ($(objpfx)tst-vfork3-mem): Likewise.
41962         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
41963         ($(objpfx)tst-pcre-mem): Likewise.
41964         ($(objpfx)tst-boost-mem): Likewise.
41965         ($(objpfx)bug-ga2-mem): Likewise.
41966         ($(objpfx)bug-glob2-mem): Likewise.
41967         * resolv/Makefile (generate): Likewise.
41968         (tests-special): Likewise.
41969         (xtests-special): Likewise.
41970         (generated): Likewise.
41971         ($(objpfx)mtrace-tst-leaks): Likewise.
41972         ($(objpfx)mtrace-tst-leaks2): Likewise.
41973
41974         * scripts/merge-test-results.sh: New file.
41975         * Makefile (tests-special-notdir): New variable.
41976         (tests): Run merge-test-results.sh.
41977         (xtests): Likewise.
41978         * Rules (tests-special-notdir): New variable.
41979         (xtests-special-notdir): Likewise.
41980         (tests): Run merge-test-results.sh
41981         (xtests): Likewise.
41982
41983         * Makeconfig (test-xfail-name): New variable.
41984         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
41985         compute variable name for expected failures.
41986         * conform/Makefile (conformtest-headers-data): New variable.
41987         (conformtest-standards): Likewise.
41988         (conformtest-headers-ISO): Likewise.
41989         (conformtest-headers-ISO99): Likewise.
41990         (conformtest-headers-ISO11): Likewise.
41991         (conformtest-headers-POSIX): Likewise.
41992         (conformtest-headers-XPG3): Likewise.
41993         (conformtest-headers-XPG4): Likewise.
41994         (conformtest-headers-UNIX98): Likewise.
41995         (conformtest-headers-XOPEN2K): Likewise.
41996         (conformtest-headers-POSIX2008): Likewise.
41997         (conformtest-headers-XOPEN2K8): Likewise.
41998         (conformtest-header-list-base): Likewise.
41999         (conformtest-header-list-tests): Likewise.
42000         (conformtest-header-base): Likewise.
42001         (conformtest-header-tests): Likewise.
42002         (tests-special): Add $(conformtest-header-list-tests).  If
42003         [$(fast-check) && !$(cross-compiling)], add
42004         $(conformtest-header-tests) instead of
42005         $(objpfx)run-conformtest.out.
42006         (generated): Add $(conformtest-header-list-base).  If
42007         [$(fast-check) && !$(cross-compiling)], add
42008         $(conformtest-header-base).  Remove previous setting.
42009         ($(conformtest-header-list-tests)): New target.
42010         (test-xfail-run-conformtest): Remove variable.
42011         ($(objpfx)run-conformtest.out): Remove target.
42012         (test-xfail-ISO11/complex.h/conform): New variable.
42013         (test-xfail-ISO11/stdalign.h/conform): Likewise.
42014         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
42015         (test-xfail-XPG3/varargs.h/conform): Likewise.
42016         (test-xfail-XPG4/varargs.h/conform): Likewise.
42017         (test-xfail-UNIX98/varargs.h/conform): Likewise.
42018         (test-xfail-XPG4/ndbm.h/conform): Likewise.
42019         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
42020         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
42021         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
42022         (test-xfail-XPG3/fcntl.h/conform): Likewise.
42023         (test-xfail-XPG3/ftw.h/conform): Likewise.
42024         (test-xfail-XPG3/grp.h/conform): Likewise.
42025         (test-xfail-XPG3/langinfo.h/conform): Likewise.
42026         (test-xfail-XPG3/limits.h/conform): Likewise.
42027         (test-xfail-XPG3/pwd.h/conform): Likewise.
42028         (test-xfail-XPG3/search.h/conform): Likewise.
42029         (test-xfail-XPG3/signal.h/conform): Likewise.
42030         (test-xfail-XPG3/stdio.h/conform): Likewise.
42031         (test-xfail-XPG3/stdlib.h/conform): Likewise.
42032         (test-xfail-XPG3/string.h/conform): Likewise.
42033         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
42034         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
42035         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
42036         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
42037         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
42038         (test-xfail-XPG3/sys/types.h/conform): Likewise.
42039         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
42040         (test-xfail-XPG3/termios.h/conform): Likewise.
42041         (test-xfail-XPG3/time.h/conform): Likewise.
42042         (test-xfail-XPG3/unistd.h/conform): Likewise.
42043         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
42044         (test-xfail-XPG4/fcntl.h/conform): Likewise.
42045         (test-xfail-XPG4/langinfo.h/conform): Likewise.
42046         (test-xfail-XPG4/netdb.h/conform): Likewise.
42047         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
42048         (test-xfail-XPG4/signal.h/conform): Likewise.
42049         (test-xfail-XPG4/stdio.h/conform): Likewise.
42050         (test-xfail-XPG4/stdlib.h/conform): Likewise.
42051         (test-xfail-XPG4/stropts.h/conform): Likewise.
42052         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
42053         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
42054         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
42055         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
42056         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
42057         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
42058         (test-xfail-XPG4/sys/time.h/conform): Likewise.
42059         (test-xfail-XPG4/sys/types.h/conform): Likewise.
42060         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
42061         (test-xfail-XPG4/termios.h/conform): Likewise.
42062         (test-xfail-XPG4/ucontext.h/conform): Likewise.
42063         (test-xfail-XPG4/unistd.h/conform): Likewise.
42064         (test-xfail-XPG4/utmpx.h/conform): Likewise.
42065         (test-xfail-POSIX/sched.h/conform): Likewise.
42066         (test-xfail-POSIX/signal.h/conform): Likewise.
42067         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42068         (test-xfail-POSIX/tar.h/conform): Likewise.
42069         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
42070         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
42071         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
42072         (test-xfail-UNIX98/netdb.h/conform): Likewise.
42073         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
42074         (test-xfail-UNIX98/sched.h/conform): Likewise.
42075         (test-xfail-UNIX98/signal.h/conform): Likewise.
42076         (test-xfail-UNIX98/stdio.h/conform): Likewise.
42077         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
42078         (test-xfail-UNIX98/stropts.h/conform): Likewise.
42079         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
42080         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
42081         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
42082         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
42083         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
42084         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
42085         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
42086         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
42087         (test-xfail-UNIX98/unistd.h/conform): Likewise.
42088         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
42089         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
42090         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
42091         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
42092         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
42093         (test-xfail-XOPEN2K/math.h/conform): Likewise.
42094         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
42095         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
42096         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
42097         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
42098         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
42099         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
42100         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
42101         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
42102         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
42103         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
42104         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
42105         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
42106         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
42107         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
42108         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
42109         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
42110         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
42111         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
42112         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
42113         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
42114         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
42115         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
42116         (test-xfail-POSIX2008/signal.h/conform): Likewise.
42117         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
42118         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
42119         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
42120         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
42121         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
42122         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
42123         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
42124         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
42125         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
42126         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
42127         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
42128         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
42129         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
42130         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
42131         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
42132         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
42133         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
42134         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
42135         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
42136         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
42137         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
42138         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
42139         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
42140         (conformtest-cc-flags): Likewise.
42141         ($(conformtest-header-tests): New target.
42142         * conform/check-header-lists.sh: New file.
42143         * conform/run-conformtest.sh: Remove.
42144
42145         * conform/conformtest.pl: Allow ' and \ in values given for
42146         constants.
42147         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
42148         inclusion.
42149         [POSIX] (sys/types.h): Likewise.
42150         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
42151         inclusion.
42152         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
42153         inclusion.
42154         * conform/data/signal.h-data (SIGIO): Remove expectation.
42155         [XPG3] (SIGBUS): Do not expect.
42156         [POSIX || XPG3] (SIGPOLL): Likewise.
42157         [POSIX || XPG3] (SIGPROF): Likewise.
42158         [POSIX || XPG3] (SIGSYS): Likewise.
42159         [XPG3] (SIGTRAP): Likewise.
42160         [POSIX || XPG3] (SIGURG): Likewise.
42161         [POSIX || XPG3] (SIGVTALRM): Likewise.
42162         [POSIX || XPG3] (SIGXCPU): Likewise.
42163         [POSIX || XPG3] (SIGXFSZ): Likewise.
42164         [POSIX] (SA_SIGINFO): Expect.
42165         [XPG3] (siginfo_t): Do not expect type or contents.
42166         [POSIX] (si_pid): Do not expect element.
42167         [POSIX] (si_uid): Likewise.
42168         [POSIX] (si_addr): Likewise.
42169         [POSIX] (si_status): Likewise.
42170         [POSIX] (si_band): Likewise.
42171         [XPG4] (si_value): Likewise.
42172         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
42173         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
42174         [POSIX || XPG3] (ILL_ILLADR): Likewise.
42175         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
42176         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
42177         [POSIX || XPG3] (ILL_PRVREG): Likewise.
42178         [POSIX || XPG3] (ILL_COPROC): Likewise.
42179         [POSIX || XPG3] (ILL_BADSTK): Likewise.
42180         [POSIX || XPG3] (FPE_INTDIV): Likewise.
42181         [POSIX || XPG3] (FPE_INTOVF): Likewise.
42182         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
42183         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
42184         [POSIX || XPG3] (FPE_FLTUND): Likewise.
42185         [POSIX || XPG3] (FPE_FLTRES): Likewise.
42186         [POSIX || XPG3] (FPE_FLTINV): Likewise.
42187         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
42188         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
42189         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
42190         [POSIX || XPG3] (BUS_ADRALN): Likewise.
42191         [POSIX || XPG3] (BUS_ADRERR): Likewise.
42192         [POSIX || XPG3] (BUS_OBJERR): Likewise.
42193         [POSIX || XPG3] (CLD_EXITED): Likewise.
42194         [POSIX || XPG3] (CLD_KILLED): Likewise.
42195         [POSIX || XPG3] (CLD_DUMPED): Likewise.
42196         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
42197         [POSIX || XPG3] (CLD_STOPPED): Likewise.
42198         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
42199         [POSIX || XPG3] (POLL_IN): Likewise.
42200         [POSIX || XPG3] (POLL_OUT): Likewise.
42201         [POSIX || XPG3] (POLL_MSG): Likewise.
42202         [POSIX || XPG3] (POLL_ERR): Likewise.
42203         [POSIX || XPG3] (POLL_PRI): Likewise.
42204         [POSIX || XPG3] (POLL_HUP): Likewise.
42205         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
42206         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
42207         (SIG*): Do not allow.
42208         [XPG3] (si_*): Likewise.
42209         [XPG3] (SI_*): Likewise.
42210         [XPG3 || XPG4] (sigev_*): Likewise.
42211         [XPG3 || XPG4] (SIGEV_*): Likewise.
42212         [XPG3 || XPG4] (sival_*): Likewise.
42213         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
42214         [POSIX || XPG3] (BUS_*): Likewise.
42215         [POSIX || XPG3] (CLD_*): Likewise.
42216         [POSIX || XPG3] (FPE_*): Likewise.
42217         [POSIX || XPG3] (ILL_*): Likewise.
42218         [POSIX || XPG3] (POLL_*): Likewise.
42219         [POSIX || XPG3] (SEGV_*): Likewise.
42220         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
42221         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
42222         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
42223         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
42224         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
42225         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
42226         Specify type and value.
42227         (TVERSLEN): Likewise.
42228         (REGTYPE): Likewise.
42229         (AREGTYPE): Likewise.
42230         (LNKTYPE): Likewise.
42231         (SYMTYPE): Likewise.
42232         (CHRTYPE): Likewise.
42233         (BLKTYPE): Likewise.
42234         (DIRTYPE): Likewise.
42235         (FIFOTYPE): Likewise.
42236         (CONTTYPE): Likewise.
42237         (TSUID): Likewise.
42238         (TSGID): Likewise.
42239         (TSVTX): Likewise.
42240         (TUREAD): Likewise.
42241         (TUWRITE): Likewise.
42242         (TUEXEC): Likewise.
42243         (TGREAD): Likewise.
42244         (TGWRITE): Likewise.
42245         (TGEXEC): Likewise.
42246         (TOREAD): Likewise.
42247         (TOWRITE): Likewise.
42248         (TOEXEC): Likewise.
42249         [POSIX] (TSVTX): Expect constant.
42250
42251 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
42252
42253         * Makefile (tests): Change dependencies to ....
42254         (tests-special): ... additions to this variable.
42255         (tests): Depend on $(tests-special).
42256         * Makerules (check-abi-list): New variable.
42257         (check-abi): Depend on $(check-abi-list).
42258         [$(subdir) = elf] (tests-special): Add
42259         $(objpfx)check-abi-libc.out.
42260         [$(build-shared) = yes && subdir] (tests-special): Add
42261         $(check-abi-list).
42262         [$(build-shared) = yes && subdir] (tests): Do not depend on
42263         check-abi.
42264         * Rules (tests): Depend on $(tests-special).
42265         (xtests): Depend on $(xtests-special).
42266         * catgets/Makefile (tests): Change dependencies to ....
42267         (tests-special): ... additions to this variable.
42268         * conform/Makefile (tests): Change dependencies to ....
42269         (tests-special): ... additions to this variable.
42270         * elf/Makefile (tests): Change dependencies to ....
42271         (tests-special): ... additions to this variable.
42272         * grp/Makefile (tests): Change dependencies to ....
42273         (tests-special): ... additions to this variable.
42274         * iconv/Makefile (xtests): Change dependencies to ....
42275         (xtests-special): ... additions to this variable.
42276         * iconvdata/Makefile (tests): Change dependencies to ....
42277         (tests-special): ... additions to this variable.
42278         * intl/Makefile (tests): Change dependencies to ....
42279         (tests-special): ... additions to this variable.  Also add
42280         $(objpfx)tst-gettext.out.
42281         * io/Makefile (tests): Change dependencies to ....
42282         (tests-special): ... additions to this variable.
42283         * libio/Makefile (tests): Change dependencies to ....
42284         (tests-special): ... additions to this variable.
42285         * malloc/Makefile (tests): Change dependencies to ....
42286         (tests-special): ... additions to this variable.
42287         * misc/Makefile (tests): Change dependencies to ....
42288         (tests-special): ... additions to this variable.
42289         * nptl/Makefile (tests): Change dependencies to ....
42290         (tests-special): ... additions to this variable.
42291         * nptl_db/Makefile (tests): Change dependencies to ....
42292         (tests-special): ... additions to this variable.
42293         * posix/Makefile (tests): Change dependencies to ....
42294         (tests-special): ... additions to this variable.
42295         (xtests): Change dependencies to ....
42296         (xtests-special): ... additions to this variable.
42297         * resolv/Makefile (tests): Change dependencies to ....
42298         (tests-special): ... additions to this variable.
42299         (xtests): Change dependencies to ....
42300         (xtests-special): ... additions to this variable.
42301         * stdio-common/Makefile (tests): Change dependencies to ....
42302         (tests-special): ... additions to this variable.
42303         (do-tst-unbputc): Remove target.
42304         (do-tst-printf): Likewise.
42305         * stdlib/Makefile (tests): Change dependencies to ....
42306         (tests-special): ... additions to this variable.
42307         * string/Makefile (tests): Change dependencies to ....
42308         (tests-special): ... additions to this variable.
42309         * sysdeps/x86/Makefile (tests): Change dependencies to ....
42310         (tests-special): ... additions to this variable.
42311
42312         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
42313         whole file.
42314         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
42315         whole file.
42316         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
42317         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
42318
42319         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
42320         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
42321         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
42322         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
42323         * conform/data/libgen.h-data [XPG3]: Likewise.
42324         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
42325         * conform/data/ndbm.h-data [XPG3]: Likewise.
42326         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42327         * conform/data/netdb.h-data [XPG3]: Likewise.
42328         * conform/data/netinet/in.h-data [XPG3]: Likewise.
42329         * conform/data/poll.h-data [XPG3]: Likewise.
42330         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42331         * conform/data/strings.h-data [XPG3]: Likewise.
42332         * conform/data/stropts.h-data [XPG3]: Likewise.
42333         * conform/data/sys/mman.h-data [XPG3]: Likewise.
42334         * conform/data/sys/resource.h-data [XPG3]: Likewise.
42335         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
42336         Likewise.
42337         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
42338         * conform/data/sys/time.h-data [XPG3]: Likewise.
42339         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
42340         * conform/data/sys/uio.h-data [XPG3]: Likewise.
42341         * conform/data/sys/un.h-data [XPG3]: Likewise.
42342         * conform/data/syslog.h-data [XPG3]: Likewise.
42343         * conform/data/ucontext.h-data [XPG3]: Likewise.
42344         * conform/data/utmpx.h-data [XPG3]: Likewise.
42345         * conform/data/varargs.h-data [UNIX98]: Enable file.
42346
42347         * manual/Makefile (INSTALL_INFO): Remove variable setting.
42348
42349         * math/libm-test.inc (struct test_f_f_data): Move expected results
42350         into structure for each rounding mode.
42351         (struct test_ff_f_data): Likewise.
42352         (struct test_ff_f_data_nexttoward): Likewise.
42353         (struct test_fi_f_data): Likewise.
42354         (struct test_fl_f_data): Likewise.
42355         (struct test_if_f_data): Likewise.
42356         (struct test_fff_f_data): Likewise.
42357         (struct test_c_f_data): Likewise.
42358         (struct test_f_f1_data): Likewise.
42359         (struct test_fF_f1_data): Likewise.
42360         (struct test_ffI_f1_data): Likewise.
42361         (struct test_c_c_data): Likewise.
42362         (struct test_cc_c_data): Likewise.
42363         (struct test_f_i_data): Likewise.
42364         (struct test_ff_i_data): Likewise.
42365         (struct test_f_l_data): Likewise.
42366         (struct test_f_L_data): Likewise.
42367         (struct test_fFF_11_data): Likewise.
42368         (RM_): New macro.
42369         (RM_FE_DOWNWARD): Likewise.
42370         (RM_FE_TONEAREST): Likewise.
42371         (RM_FE_TOWARDZERO): Likewise.
42372         (RM_FE_UPWARD): Likewise.
42373         (RUN_TEST_LOOP_f_f): Update references to expected results.
42374         (RUN_TEST_LOOP_2_f): Likewise.
42375         (RUN_TEST_LOOP_fff_f): Likewise.
42376         (RUN_TEST_LOOP_c_f): Likewise.
42377         (RUN_TEST_LOOP_f_f1): Likewise.
42378         (RUN_TEST_LOOP_fF_f1): Likewise.
42379         (RUN_TEST_LOOP_fI_f1): Likewise.
42380         (RUN_TEST_LOOP_ffI_f1): Likewise.
42381         (RUN_TEST_LOOP_c_c): Likewise.
42382         (RUN_TEST_LOOP_cc_c): Likewise.
42383         (RUN_TEST_LOOP_f_i): Likewise.
42384         (RUN_TEST_LOOP_f_i_tg): Likewise.
42385         (RUN_TEST_LOOP_ff_i_tg): Likewise.
42386         (RUN_TEST_LOOP_f_b): Likewise.
42387         (RUN_TEST_LOOP_f_b_tg): Likewise.
42388         (RUN_TEST_LOOP_f_l): Likewise.
42389         (RUN_TEST_LOOP_f_L): Likewise.
42390         (RUN_TEST_LOOP_fFF_11): Likewise.
42391         * math/gen-libm-test.pl (parse_args): Output four copies of
42392         expected results for each test.
42393
42394         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
42395         (__ASSUME_UTIMES): Remove.
42396         * sysdeps/unix/sysv/linux/tile/kernel-features.h
42397         (__ASSUME_UTIMES): Likewise.
42398
42399         * math/gen-auto-libm-tests.c: Update comment on output format.
42400         (output_for_one_input_case): Generate before-rounding and
42401         after-rounding information as conditions on output flags not
42402         floating-point format.
42403         * math/auto-libm-test-out: Regenerated.
42404         * math/gen-libm-test.pl (cond_value): New function.
42405         (or_cond_value): Use cond_value.
42406         (generate_testfile): Handle conditional exceptions.
42407
42408 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
42409
42410         * math/libm-test.inc (max_valid_error): New variable.
42411         (init_max_error): Take new argument specifying whether function
42412         results are exactly determined.  Set max_valid_error and bound
42413         other variables for errors based on this argument.
42414         (set_max_error): Do not record results above max_valid_error.
42415         (check_float_internal): Only accept errors of up to 0.5ulps if
42416         also at most max_valid_error.
42417         (START): Take new argument EXACT and pass it to init_max_error.
42418         (acos_test): Update call to START.
42419         (acos_test_tonearest): Likewise.
42420         (acos_test_towardzero): Likewise.
42421         (acos_test_downward): Likewise.
42422         (acos_test_upward): Likewise.
42423         (acosh_test): Likewise.
42424         (asin_test): Likewise.
42425         (asin_test_tonearest): Likewise.
42426         (asin_test_towardzero): Likewise.
42427         (asin_test_downward): Likewise.
42428         (asin_test_upward): Likewise.
42429         (asinh_test): Likewise.
42430         (atan_test): Likewise.
42431         (atanh_test): Likewise.
42432         (atan2_test): Likewise.
42433         (cabs_test): Likewise.
42434         (cacos_test): Likewise.
42435         (cacosh_test): Likewise.
42436         (carg_test): Likewise.
42437         (casin_test): Likewise.
42438         (casinh_test): Likewise.
42439         (catan_test): Likewise.
42440         (catanh_test): Likewise.
42441         (cbrt_test): Likewise.
42442         (ccos_test): Likewise.
42443         (ccosh_test): Likewise.
42444         (ceil_test): Likewise.
42445         (cexp_test): Likewise.
42446         (cimag_test): Likewise.
42447         (clog_test): Likewise.
42448         (clog10_test): Likewise.
42449         (conj_test): Likewise.
42450         (copysign_test): Likewise.
42451         (cos_test): Likewise.
42452         (cos_test_tonearest): Likewise.
42453         (cos_test_towardzero): Likewise.
42454         (cos_test_downward): Likewise.
42455         (cos_test_upward): Likewise.
42456         (cosh_test): Likewise.
42457         (cosh_test_tonearest): Likewise.
42458         (cosh_test_towardzero): Likewise.
42459         (cosh_test_downward): Likewise.
42460         (cosh_test_upward): Likewise.
42461         (cpow_test): Likewise.
42462         (cproj_test): Likewise.
42463         (creal_test): Likewise.
42464         (csin_test): Likewise.
42465         (csinh_test): Likewise.
42466         (csqrt_test): Likewise.
42467         (ctan_test): Likewise.
42468         (ctan_test_tonearest): Likewise.
42469         (ctan_test_towardzero): Likewise.
42470         (ctan_test_downward): Likewise.
42471         (ctan_test_upward): Likewise.
42472         (ctanh_test): Likewise.
42473         (ctanh_test_tonearest): Likewise.
42474         (ctanh_test_towardzero): Likewise.
42475         (ctanh_test_downward): Likewise.
42476         (ctanh_test_upward): Likewise.
42477         (erf_test): Likewise.
42478         (erfc_test): Likewise.
42479         (exp_test): Likewise.
42480         (exp_test_tonearest): Likewise.
42481         (exp_test_towardzero): Likewise.
42482         (exp_test_downward): Likewise.
42483         (exp_test_upward): Likewise.
42484         (exp10_test): Likewise.
42485         (exp10_test_tonearest): Likewise.
42486         (exp10_test_towardzero): Likewise.
42487         (exp10_test_downward): Likewise.
42488         (exp10_test_upward): Likewise.
42489         (pow10_test): Likewise.
42490         (exp2_test): Likewise.
42491         (expm1_test): Likewise.
42492         (expm1_test_tonearest): Likewise.
42493         (expm1_test_towardzero): Likewise.
42494         (expm1_test_downward): Likewise.
42495         (expm1_test_upward): Likewise.
42496         (fabs_test): Likewise.
42497         (fdim_test): Likewise.
42498         (floor_test): Likewise.
42499         (fma_test): Likewise.
42500         (fma_test_towardzero): Likewise.
42501         (fma_test_downward): Likewise.
42502         (fma_test_upward): Likewise.
42503         (fmax_test): Likewise.
42504         (fmin_test): Likewise.
42505         (fmod_test): Likewise.
42506         (fpclassify_test): Likewise.
42507         (frexp_test): Likewise.
42508         (hypot_test): Likewise.
42509         (ilogb_test): Likewise.
42510         (isfinite_test): Likewise.
42511         (finite_test): Likewise.
42512         (isgreater_test): Likewise.
42513         (isgreaterequal_test): Likewise.
42514         (isinf_test): Likewise.
42515         (isless_test): Likewise.
42516         (islessequal_test): Likewise.
42517         (islessgreater_test): Likewise.
42518         (isnan_test): Likewise.
42519         (isnormal_test): Likewise.
42520         (issignaling_test): Likewise.
42521         (isunordered_test): Likewise.
42522         (j0_test): Likewise.
42523         (j1_test): Likewise.
42524         (jn_test): Likewise.
42525         (ldexp_test): Likewise.
42526         (lgamma_test): Likewise.
42527         (gamma_test): Likewise.
42528         (lrint_test): Likewise.
42529         (lrint_test_tonearest): Likewise.
42530         (lrint_test_towardzero): Likewise.
42531         (lrint_test_downward): Likewise.
42532         (lrint_test_upward): Likewise.
42533         (llrint_test): Likewise.
42534         (llrint_test_tonearest): Likewise.
42535         (llrint_test_towardzero): Likewise.
42536         (llrint_test_downward): Likewise.
42537         (llrint_test_upward): Likewise.
42538         (log_test): Likewise.
42539         (log10_test): Likewise.
42540         (log1p_test): Likewise.
42541         (log2_test): Likewise.
42542         (logb_test): Likewise.
42543         (logb_test_downward): Likewise.
42544         (lround_test): Likewise.
42545         (llround_test): Likewise.
42546         (modf_test): Likewise.
42547         (nearbyint_test): Likewise.
42548         (nextafter_test): Likewise.
42549         (nexttoward_test): Likewise.
42550         (pow_test): Likewise.
42551         (pow_test_tonearest): Likewise.
42552         (pow_test_towardzero): Likewise.
42553         (pow_test_downward): Likewise.
42554         (pow_test_upward): Likewise.
42555         (remainder_test): Likewise.
42556         (drem_test): Likewise.
42557         (remainder_test_tonearest): Likewise.
42558         (drem_test_tonearest): Likewise.
42559         (remainder_test_towardzero): Likewise.
42560         (drem_test_towardzero): Likewise.
42561         (remainder_test_downward): Likewise.
42562         (drem_test_downward): Likewise.
42563         (remainder_test_upward): Likewise.
42564         (drem_test_upward): Likewise.
42565         (remquo_test): Likewise.
42566         (rint_test): Likewise.
42567         (rint_test_tonearest): Likewise.
42568         (rint_test_towardzero): Likewise.
42569         (rint_test_downward): Likewise.
42570         (rint_test_upward): Likewise.
42571         (round_test): Likewise.
42572         (scalb_test): Likewise.
42573         (scalbn_test): Likewise.
42574         (scalbln_test): Likewise.
42575         (signbit_test): Likewise.
42576         (sin_test): Likewise.
42577         (sin_test_tonearest): Likewise.
42578         (sin_test_towardzero): Likewise.
42579         (sin_test_downward): Likewise.
42580         (sin_test_upward): Likewise.
42581         (sincos_test): Likewise.
42582         (sinh_test): Likewise.
42583         (sinh_test_tonearest): Likewise.
42584         (sinh_test_towardzero): Likewise.
42585         (sinh_test_downward): Likewise.
42586         (sinh_test_upward): Likewise.
42587         (sqrt_test): Likewise.
42588         (sqrt_test_tonearest): Likewise.
42589         (sqrt_test_towardzero): Likewise.
42590         (sqrt_test_downward): Likewise.
42591         (sqrt_test_upward): Likewise.
42592         (tan_test): Likewise.
42593         (tan_test_tonearest): Likewise.
42594         (tan_test_towardzero): Likewise.
42595         (tan_test_downward): Likewise.
42596         (tan_test_upward): Likewise.
42597         (tanh_test): Likewise.
42598         (tgamma_test): Likewise.
42599         (trunc_test): Likewise.
42600         (y0_test): Likewise.
42601         (y1_test): Likewise.
42602         (yn_test): Likewise.
42603         (significand_test): Likewise.
42604
42605         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
42606         individual tests in comment.
42607         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
42608         (prev_max_error): New variable.
42609         (prev_real_max_error): Likewise.
42610         (prev_imag_max_error): Likewise.
42611         (compare_ulp_data): Don't refer to test names in comment.
42612         (find_test_ulps): Remove function.
42613         (find_function_ulps): Likewise.
42614         (find_complex_function_ulps): Likewise.
42615         (init_max_error): Take function name as argument.  Look up ulps
42616         for that function.
42617         (print_ulps): Remove function.
42618         (print_max_error): Use prev_max_error instead of calling
42619         find_function_ulps.
42620         (print_complex_max_error): Use prev_real_max_error and
42621         prev_imag_max_error instead of calling find_complex_function_ulps.
42622         (check_float_internal): Take max_ulp parameter instead of calling
42623         find_test_ulps.  Don't call print_ulps.
42624         (check_float): Update call to check_float_internal.
42625         (check_complex): Update calls to check_float_internal.
42626         (START): Pass argument to init_max_error.
42627         * math/gen-libm-test.pl (%results): Don't include "kind"
42628         information.
42629         (parse_ulps): Don't handle ulps of individual tests.
42630         (print_ulps_file): Likewise.
42631         (output_ulps): Likewise.
42632         * math/README.libm-test: Update.
42633         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
42634         individual tests.
42635         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
42636         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
42637         * sysdeps/arm/libm-test-ulps: Likewise.
42638         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
42639         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
42640         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
42641         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
42642         * sysdeps/microblaze/libm-test-ulps: Likewise.
42643         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
42644         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42645         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
42646         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
42647         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
42648         * sysdeps/sh/libm-test-ulps: Likewise.
42649         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
42650         * sysdeps/tile/libm-test-ulps: Likewise.
42651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42652
42653 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
42654
42655         * math/libm-test.inc (print_complex_max_error): Check separately
42656         whether real and imaginary errors are within allowed range and
42657         pass 0 to print_complex_function_ulps instead of value within
42658         allowed range.
42659
42660 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42661
42662         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
42663         formatting.
42664         (get_handles_fopen): Likewise.
42665         (do_write_test): Likewise.
42666
42667         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
42668
42669         * libio/fileops.c (do_ftell): Use cached offset when
42670         available.
42671         * libio/iofwide.c (do_ftell_wide): Likewise.
42672         * libio/iofdopen.c (_IO_new_fdopen): Don't use
42673         _IO_file_attach.
42674         * libio/wfileops.c (_IO_fwide): Don't cache offset.
42675
42676         [BZ #16532]
42677         * libio/libioP.h (get_file_offset): New function.
42678         * libio/fileops.c (get_file_offset): Likewise.
42679         (do_ftell): Likewise.
42680         (_IO_new_file_seekoff): Split out ftell logic.
42681         * libio/wfileops.c (do_ftell_wide): Likewise.
42682         (_IO_wfile_seekoff): Split out ftell logic.
42683         * libio/tst-ftell-active-handler.c: New test case.
42684         * libio/Makefile (tests): Add it.
42685
42686 2014-03-03  Roland McGrath  <roland@hack.frob.com>
42687
42688         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
42689         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
42690
42691 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
42692
42693         [BZ #16639]
42694         * nscd/connections.c (nscd_init): Call do_exit.
42695         (start_threads): Call do_exit and notify_parent.
42696         (begin_drop_privileges): Call do_exit.
42697         (finish_drop_privileges): Likewise.
42698         * nscd/selinux.c (preserve_capabilities): Likewise.
42699         (install_real_capabilities): Likewise.
42700         (nscd_selinux_enabled): Likewise.
42701         (avc_create_thread): Likewise.
42702         (avc_alloc_lock): Likewise.
42703         (nscd_avc_init): Likewise.
42704         * nscd/nscd.c (parent_fd): New static variable.
42705         (main): Create a pipe between parent and child processes.
42706         Skip closing parent_fd.
42707         (monitor_child): New function.
42708         (do_exit): Likewise.
42709         (notify_parent): Likewise.
42710         * nscd/nscd.h (notify_parent): Likewise.
42711         (do_exit): Likewise.
42712
42713 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
42714
42715         * malloc/malloc.c (__libc_calloc): Revert last change.
42716
42717 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42718
42719         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42720
42721 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
42722
42723         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
42724         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
42725         implementation.
42726         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42727         (__libc_ifunc_impl_list): Likewise.
42728         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
42729         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
42730         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
42731         * string/strrchr.c: Define STRRCHR.
42732
42733 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
42734
42735         * benchtest/bench-strtok.c (simple_strtok): Delete.
42736         (strtok_string): Use as benchmark.
42737         * string/strtok (STRTOK): New macro.
42738
42739 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
42740
42741         * manual/threads.texi: Add header and standard comments to all
42742         functions.
42743
42744         * elf/dl-lookup.c (check_match): New function.
42745         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
42746         (do_lookup_x): Remove nested function check_match. Use non-nested
42747         function check_match.
42748
42749 2014-02-28  Roland McGrath  <roland@hack.frob.com>
42750
42751         * csu/Makefile (generated, before-compile): Use += rather than =.
42752         * catgets/Makefile (generated, generated-dirs): Likewise.
42753         * debug/Makefile (generated): Likewise.
42754         * dlfcn/Makefile (generated): Likewise.
42755         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
42756         * iconvdata/Makefile (before-compile, generated): Likewise.
42757         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
42758         * libio/Makefile (generated): Likewise.
42759         * malloc/Makefile (generated): Likewise.
42760         * manual/Makefile (generated, generated-dirs): Likewise.
42761         * misc/Makefile (generated): Likewise.
42762         * posix/Makefile (generated): Likewise.
42763         * resolv/Makefile (generated): Likewise.
42764         * sunrpc/Makefile (generated, generated-dirs): Likewise.
42765         * timezone/Makefile (generated, generated-dirs): Likewise.
42766
42767         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
42768
42769 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42770
42771         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
42772         power8 implementation.
42773         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
42774         file: POWER8 llround ifunc implementation.
42775         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
42776         (__lllround): Add POWER8 implementation.
42777         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
42778         POWER8 llround implementation.
42779
42780         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
42781         power8 implementation.
42782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
42783         file: POWER8 llrint ifunc implementation.
42784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
42785         Add POWER8 implementation.
42786         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
42787         POWER8 llrint implementation.
42788
42789         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
42790         power8 implementation.
42791         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
42792         file: POWER8 finite ifunc implementation.
42793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
42794         Add POWER8 implementation.
42795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
42796         Likewise.
42797         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
42798         POWER8 finite implementation.
42799         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
42800
42801         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
42802         power8 implementation.
42803         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
42804         file: POWER8 isinf ifunc implementation.
42805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
42806         POWER8 implementation.
42807         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
42808         Likewise.
42809         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
42810         isinf implementation.
42811         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
42812
42813         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
42814         (INIT_ARCH): Add hwcap2 initialization.
42815         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
42816         power8 implementation.
42817         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
42818         file: POWER8 isnan ifunc implementation.
42819         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
42820         POWER8 implementation.
42821         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
42822         Likewise.
42823         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
42824         isnan implementation.
42825         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
42826
42827 2014-02-27  Joey Ye  <joey.ye@arm.com>
42828
42829         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
42830         (_FP_NANFRAC_Q): Set to zero.
42831
42832 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
42833
42834         [BZ #16623]
42835         * math/auto-libm-test-in: New test inputs.
42836         * math/auto-libm-test-out: Regenerate.
42837         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
42838         and DA.
42839         (__cos): Likewise.
42840         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
42841
42842 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
42843
42844         * scripts/evaluate-test.sh: Take new argument indicating whether
42845         failure is expected.
42846         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
42847         indicating whether failure is expected.
42848         * conform/Makefile (test-xfail-run-conformtest): New variable.
42849         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
42850         level.
42851         * posix/Makefile (test-xfail-annexc): New variable.
42852         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
42853
42854 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
42855
42856         * argp/Makefile: Include Makeconfig immediately after defining
42857         subdir.
42858         * assert/Makefile: Likewise.
42859         * benchtests/Makefile: Likewise.
42860         * catgets/Makefile: Likewise.
42861         * conform/Makefile: Likewise.
42862         * crypt/Makefile: Likewise.
42863         * csu/Makefile: Likewise.
42864         (all): Remove target.
42865         * ctype/Makefile: Include Makeconfig immediately after defining
42866         subdir.
42867         * debug/Makefile: Likewise.
42868         * dirent/Makefile: Likewise.
42869         * dlfcn/Makefile: Likewise.
42870         * gmon/Makefile: Likewise.
42871         * gnulib/Makefile: Likewise.
42872         * grp/Makefile: Likewise.
42873         * gshadow/Makefile: Likewise.
42874         * hesiod/Makefile: Likewise.
42875         * hurd/Makefile: Likewise.
42876         (all): Remove target.
42877         * iconvdata/Makefile: Include Makeconfig immediately after
42878         defining subdir.
42879         * inet/Makefile: Likewise.
42880         * intl/Makefile: Likewise.
42881         * io/Makefile: Likewise.
42882         * libio/Makefile: Likewise.
42883         (all): Remove target.
42884         * locale/Makefile: Include Makeconfig immediately after defining
42885         subdir.
42886         * login/Makefile: Likewise.
42887         * mach/Makefile: Likewise.
42888         (all): Remove target.
42889         * malloc/Makefile: Include Makeconfig immediately after defining
42890         subdir.
42891         (all): Remove target.
42892         * manual/Makefile: Include Makeconfig immediately after defining
42893         subdir.
42894         * math/Makefile: Likewise.
42895         * misc/Makefile: Likewise.
42896         * nis/Makefile: Likewise.
42897         * nss/Makefile: Likewise.
42898         * po/Makefile: Likewise.
42899         (all): Remove target.
42900         * posix/Makefile: Include Makeconfig immediately after defining
42901         subdir.
42902         * pwd/Makefile: Likewise.
42903         * resolv/Makefile: Likewise.
42904         * resource/Makefile: Likewise.
42905         * rt/Makefile: Likewise.
42906         * setjmp/Makefile: Likewise.
42907         * shadow/Makefile: Likewise.
42908         * signal/Makefile: Likewise.
42909         * socket/Makefile: Likewise.
42910         * soft-fp/Makefile: Likewise.
42911         * stdio-common/Makefile: Likewise.
42912         * stdlib/Makefile: Likewise.
42913         * streams/Makefile: Likewise.
42914         * string/Makefile: Likewise.
42915         * sunrpc/Makefile: Likewise.
42916         (all): Remove target.
42917         * sysvipc/Makefile: Include Makeconfig immediately after defining
42918         subdir.
42919         * termios/Makefile: Likewise.
42920         * time/Makefile: Likewise.
42921         * timezone/Makefile: Likewise.
42922         (all): Remove target.
42923         * wcsmbs/Makefile: Include Makeconfig immediately after defining
42924         subdir.
42925         * wctype/Makefile: Likewise.
42926
42927 2014-02-26  Steve Ellcey  <sellcey@mips.com>
42928
42929         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
42930         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
42931         (libc_feholdexcept_setround_mips): Ditto.
42932         (libc_feholdsetround): New.
42933         (libc_feholdsetroundf): New.
42934         (libc_feholdsetroundl): New.
42935         (libc_feupdateenv_test_mips): New.
42936         (libc_feupdateenv_test): New.
42937         (libc_feupdateenv_testf): New.
42938         (libc_feupdateenv_testl): New.
42939         (libc_feresetround): New.
42940         (libc_feresetroundf): New.
42941         (libc_feresetroundl): New.
42942         (libc_fetestexcept_mips): New.
42943         (libc_fetestexcept): New.
42944         (libc_fetestexceptf): New.
42945         (libc_fetestexceptl): New.
42946         (HAVE_RM_CTX): New.
42947         (libc_feholdexcept_setround_mips_ctx): New.
42948         (libc_feholdexcept_setround_ctx): New.
42949         (libc_feholdexcept_setroundf_ctx): New.
42950         (libc_feholdexcept_setroundl_ctx): New.
42951         (libc_fesetenv_mips_ctx): New.
42952         (libc_fesetenv_ctx): New.
42953         (libc_fesetenv_ctxf): New.
42954         (libc_fesetenv_ctxl): New.
42955         (libc_feupdateenv_mips_ctx): New.
42956         (libc_feupdateenv_ctx): New.
42957         (libc_feupdateenvf_ctx): New.
42958         (libc_feupdateenvl_ctx): New.
42959         (libc_feholdsetround_mips_ctx): New.
42960         (libc_feholdsetround_ctx): New.
42961         (libc_feholdsetroundf_ctx): New.
42962         (libc_feholdsetroundl_ctx): New.
42963         (libc_feresetround_mips_ctx): New.
42964         (libc_feresetround_ctx): New.
42965         (libc_feresetroundf_ctx): New.
42966         (libc_feresetroundl_ctx): New.
42967
42968 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
42969
42970         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
42971
42972         * manual/ipc.texi: New file.
42973         * manual/Makefile (chapters): Add ipc.
42974         * manual/job.texi: Add "Inter-Process Communication" to next.
42975         * manual/process.texi: Add "Inter-Process Communication" to prev.
42976
42977 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42978
42979         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42980
42981 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
42982
42983         * malloc/malloc.c (__libc_calloc): Simplify implementation.
42984
42985         * manual/arith.texi: Fix spaces after sentences.
42986         * manual/charset.texi: Likewise.
42987         * manual/errno.texi: Likewise.
42988         * manual/install.texi: Likewise.
42989         * manual/llio.texi: Likewise.
42990         * manual/locale.texi: Likewise.
42991         * manual/maint.texi: Likewise.
42992         * manual/math.texi: Likewise.
42993         * manual/memory.texi: Likewise.
42994         * manual/message.texi: Likewise.
42995         * manual/probes.texi: Likewise.
42996         * manual/resource.texi: Likewise.
42997         * manual/signal.texi: Likewise.
42998         * manual/socket.texi: Likewise.
42999         * manual/stdio.texi: Likewise.
43000         * manual/string.texi: Likewise.
43001         * manual/time.texi: Likewise.
43002         * manual/users.texi: Likewise.
43003
43004 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
43005
43006         [BZ #16632]
43007         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
43008         _DEFAULT_SOURCE is defined.
43009
43010 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
43011             Carlos O'Donell  <carlos@redhat.com>
43012
43013         [BZ #16613]
43014         * elf/dl-tls.c (_dl_count_modids): New function.
43015         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
43016         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
43017         audit library and increment generation counter.
43018         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
43019         * elf/tst-audit9.c: New file.
43020         * elf/tst-auditmod9a.c: New file.
43021         * elf/tst-auditmod9b.c: New file.
43022         * elf/Makefile: Add rules to build and run tst-audit9.
43023
43024 2014-02-25  Florian Weimer  <fweimer@redhat.com>
43025
43026         [BZ #15347]
43027         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
43028
43029 2014-02-25  Will Newton  <will.newton@linaro.org>
43030
43031         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
43032         (__longjmp): Restore sp and lr before restoring callee
43033         saved registers.  Add longjmp and longjmp_target
43034         SystemTap probe point.
43035         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
43036         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
43037         Define to zero to match jmpbuf layout.
43038         * sysdeps/arm/setjmp.S: Include stap-probe.h.
43039         (__sigsetjmp): Save sp and lr before saving callee
43040         saved registers.  Add setjmp SystemTap probe point.
43041
43042 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
43043
43044         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
43045
43046 2014-02-24  Andreas Schwab  <schwab@suse.de>
43047
43048         [BZ #15804]
43049         * elf/pldd.c (wait_for_ptrace_stop): New function.
43050         (main): Call it after attaching.
43051
43052 2014-02-22  Roland McGrath  <roland@hack.frob.com>
43053
43054         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
43055         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
43056         Versions files is now verboten.
43057         * hurd/Versions (libc: GLIBC_2.0):
43058         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
43059         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
43060         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
43061         * mach/Versions: Likewise.
43062
43063         * csu/Versions: Remove unused %include.
43064         * resolv/Versions: Likewise.
43065
43066 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
43067
43068         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
43069         ($(objpfx)check-local-headers.out): Likewise.
43070         ($(objpfx)begin-end-check.out): Likewise.
43071         * Makerules (check-abi-%.out): Likewise.
43072         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
43073         ($(objpfx)test2.cat): Likewise.
43074         ($(objpfx)de/libc.cat): Likewise.
43075         ($(objpfx)test-gencat.out): Likewise.
43076         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
43077         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
43078         ($(objpfx)noload-mem): Likewise.
43079         ($(objpfx)tst-pathopt.out): Likewise.
43080         ($(objpfx)tst-rtld-load-self.out): Likewise.
43081         ($(objpfx)tst-array1-cmp.out): Likewise.
43082         ($(objpfx)tst-array1-static-cmp.out): Likewise.
43083         ($(objpfx)tst-array2-cmp.out): Likewise.
43084         ($(objpfx)tst-array3-cmp.out): Likewise.
43085         ($(objpfx)tst-array4-cmp.out): Likewise.
43086         ($(objpfx)tst-array5-cmp.out): Likewise.
43087         ($(objpfx)tst-array5-static-cmp.out): Likewise.
43088         ($(objpfx)check-textrel.out): Likewise.
43089         ($(objpfx)check-execstack.out): Likewise.
43090         ($(objpfx)check-localplt.out): Likewise.
43091         ($(objpfx)order2-cmp.out): Likewise.
43092         ($(objpfx)tst-leaks1-mem): Likewise.
43093         ($(objpfx)tst-leaks1-static-mem): Likewise.
43094         ($(objpfx)tst-initorder-cmp.out): Likewise.
43095         ($(objpfx)tst-initorder2-cmp.out): Likewise.
43096         ($(objpfx)tst-unused-dep.out): Likewise.
43097         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
43098         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
43099         * iconv/Makefile (test-iconvconfig): Likewise.
43100         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
43101         ($(objpfx)iconv-test.out): Likewise.
43102         ($(objpfx)tst-tables.out): Likewise.
43103         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
43104         ($(objpfx)tst-gettext.out): Likewise.
43105         ($(objpfx)tst-translit.out): Likewise.
43106         ($(objpfx)tst-gettext2.out): Likewise.
43107         ($(objpfx)tst-gettext4.out): Likewise.
43108         ($(objpfx)tst-gettext6.out): Likewise.
43109         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
43110         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
43111         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
43112         ($(objpfx)tst-fopenloc-mem.out): Likewise.
43113         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
43114         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
43115         * posix/Makefile ($(objpfx)globtest.out): Likewise.
43116         ($(objpfx)wordexp-tst.out): Likewise.
43117         ($(objpfx)annexc.out): Likewise.
43118         ($(objpfx)tst-fnmatch-mem): Likewise.
43119         ($(objpfx)bug-regex2-mem): Likewise.
43120         ($(objpfx)bug-regex14-mem): Likewise.
43121         ($(objpfx)bug-regex21-mem): Likewise.
43122         ($(objpfx)bug-regex31-mem): Likewise.
43123         ($(objpfx)tst-vfork3-mem): Likewise.
43124         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
43125         ($(objpfx)tst-pcre-mem): Likewise.
43126         ($(objpfx)tst-boost-mem): Likewise.
43127         ($(objpfx)tst-getconf.out): Likewise.
43128         ($(objpfx)bug-ga2-mem): Likewise.
43129         ($(objpfx)bug-glob2-mem): Likewise.
43130         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
43131         ($(objpfx)mtrace-tst-leaks2): Likewise.
43132         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
43133         ($(objpfx)tst-printf.out): Likewise.
43134         ($(objpfx)tst-setvbuf1.out): Likewise.
43135         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
43136         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
43137         ($(objpfx)tst-fmtmsg.out): Likewise.
43138         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
43139         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
43140
43141         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
43142         * bits/sigaction.h [__USE_MISC]: Likewise.
43143         * bits/waitstatus.h: Update #endif comments.
43144         * ctype/ctype.h: Likewise.
43145         * dirent/dirent.h: Likewise.
43146         [__USE_MISC]: Remove redundant conditionals.
43147         * grp/grp.h: Update #endif comments.
43148         [__USE_GNU]: Remove redundant conditionals.
43149         [__USE_MISC]: Likewise.
43150         * inet/netinet/in.h [__USE_GNU]: Likewise.
43151         * io/sys/stat.h [__USE_MISC]: Likewise.
43152         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
43153         * libio/bits/stdio.h: Update #endif comments.
43154         [__USE_MISC]: Remove redundant conditionals.
43155         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
43156         * libio/stdio.h: Update #endif comments.
43157         [__USE_MISC]: Remove redundant conditionals.
43158         * math/bits/math-finite.h [__USE_MISC]: Likewise.
43159         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
43160         * math/math.h: Update #else and #endif comments.
43161         [__USE_MISC]: Remove redundant conditionals.
43162         * misc/sys/uio.h: Update #endif comments.
43163         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
43164         * posix/glob.h [__USE_MISC]: Likewise.
43165         * posix/sys/types.h: Update #endif comments.
43166         [__USE_MISC]: Remove redundant conditionals.
43167         * posix/sys/wait.h: Update #endif comments.
43168         [__USE_MISC]: Remove redundant conditionals.
43169         * posix/unistd.h: Update #endif comments.
43170         [__USE_MISC]: Remove redundant conditionals.
43171         * pwd/pwd.h [__USE_GNU]: Likewise.
43172         [__USE_MISC]: Likewise.
43173         * resolv/netdb.h [__USE_GNU]: Likewise.
43174         * signal/signal.h: Update #endif comments.
43175         [__USE_MISC]: Remove redundant conditionals.
43176         * stdlib/stdlib.h: Update #else and #endif comments.
43177         [__USE_MISC]: Remove redundant conditionals.
43178         [__USE_GNU]: Likewise.
43179         * string/bits/string2.h [__USE_MISC]: Likewise.
43180         * string/string.h: Update #endif comments.
43181         [__USE_MISC]: Remove redundant conditionals.
43182         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
43183         Likewise.
43184         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
43185         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
43186         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
43187         Likewise.
43188         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
43189         Likewise.
43190         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
43191         comments.
43192         [__USE_MISC]: Remove redundant conditionals.
43193         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
43194         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
43195         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
43196         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
43197         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
43198         Likewise.
43199         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
43200         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
43201         Likewise.
43202         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
43203         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
43204         Likewise.
43205         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
43206         Likewise.
43207         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
43208         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
43209         Likewise.
43210         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
43211         Likewise.
43212         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
43213         * sysdeps/x86/bits/string.h: Update #endif comments.
43214         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
43215         conditionals.
43216         * time/sys/time.h: Update #endif comments.
43217         * time/time.h: Likewise.
43218         [__USE_MISC]: Remove redundant conditionals.
43219
43220 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
43221
43222         [BZ #16600]
43223         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
43224
43225 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
43226
43227         * Versions.def (librt): Add GLIBC_2.17.
43228
43229 2014-02-21  Adam Conrad  <adconrad@0c3.net>
43230
43231         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
43232         synonym for _SYS_AUXV_H to allow direct inclusion.
43233         * sysdeps/sparc/bits/hwcap.h: Likewise.
43234         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
43235         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
43236         * sysdeps/sparc/sysdep.h: Likewise.
43237
43238 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
43239
43240         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
43241
43242 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
43243
43244         * benchtests/bench-strrchr.c: Print length instead of position.
43245
43246 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
43247
43248         [BZ #16611]
43249         * sysdeps/unix/sysv/linux/kernel-features.h
43250         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
43251         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
43252         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
43253         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
43254         Likewise.
43255         [__i386__ || __powerpc__ || __sh__ || __sparc__]
43256         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43257         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
43258         (__ASSUME_SENDMMSG): Define instead of using previous
43259         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
43260         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43261         (__ASSUME_SENDMMSG_SYSCALL): Define.
43262         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43263         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
43264         Likewise.
43265         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43266         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43267         Likewise.
43268         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43269         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43270         Likewise.
43271         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
43272         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43273         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43274         [__ASSUME_SENDMMSG]: Change conditionals to
43275         [__ASSUME_SENDMMSG_SOCKETCALL].
43276         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43277         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
43278         Define.
43279         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43280         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
43281         Likewise.
43282         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
43283         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43284         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43285         [!__ASSUME_SENDMMSG]: Change conditional to
43286         [!__ASSUME_SENDMMSG_SOCKETCALL].
43287         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43288         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43289         Define.
43290
43291         [BZ #16610]
43292         * sysdeps/unix/sysv/linux/kernel-features.h
43293         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
43294         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
43295         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
43296         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
43297         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
43298         [__i386__ || __sparc__]
43299         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43300         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
43301         (__ASSUME_RECVMMSG): Define instead of using previous
43302         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
43303         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43304         (__ASSUME_RECVMMSG_SYSCALL): Define.
43305         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43306         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43307         Likewise.
43308         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43309         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43310         Likewise.
43311         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43312         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43313         Likewise.
43314         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
43315         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43316         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43317         [__ASSUME_RECVMMSG]: Change condition to
43318         [__ASSUME_RECVMMSG_SOCKETCALL].
43319         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43320         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43321         Define.
43322         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43323         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43324         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43325         Likewise.
43326         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
43327         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43328         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43329         [!__ASSUME_RECVMMSG]: Change condition to
43330         [!__ASSUME_RECVMMSG_SOCKETCALL].
43331         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43332         (__ASSUME_RECVMMSG_SYSCALL): Define.
43333
43334         [BZ #16609]
43335         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
43336         __powerpc__ || __s390__ || __sh__ || __sparc__]
43337         (__ASSUME_SOCKETCALL): Define.
43338         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
43339         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
43340         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
43341         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
43342         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
43343         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
43344         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
43345         (__ASSUME_ACCEPT4): Define instead of using previous
43346         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
43347         __powerpc__ || __sparc__ || __s390__)] condition.
43348         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43349         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43350         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
43351         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43352         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43353         [!__ASSUME_ACCEPT4]: Change condition to
43354         [!__ASSUME_ACCEPT4_SOCKETCALL].
43355         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43356         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
43357         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
43358         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43359         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
43360         __ASSUME_ACCEPT4_SYSCALL.
43361         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
43362         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
43363         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43364         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
43365         __ASSUME_ACCEPT4_SYSCALL.
43366         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
43367         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43368         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43369         [__ASSUME_ACCEPT4]: Change condition to
43370         [__ASSUME_ACCEPT4_SOCKETCALL].
43371         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
43372         (__ASSUME_SOCKETCALL): Define.
43373         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
43374         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43375         (__ASSUME_SOCKETCALL): Define.
43376         (__ASSUME_ACCEPT4): Remove.
43377         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
43378         Define.
43379         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43380         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
43381         Likewise.
43382         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43383         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43384
43385         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
43386         macro.
43387         (HWCAP_ARM_LPAE): Likewise.
43388         (HWCAP_ARM_EVTSTRM): Likewise.
43389         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
43390         Add vpfd32, lpae and evtstrm.
43391         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
43392         Increase to 22.
43393
43394 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
43395
43396         * math/auto-libm-test-in: Add tests of clog10.
43397         * math/auto-libm-test-out: Regenerated.
43398         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
43399         * sysdeps/i386/fpu/libm-test-ulps: Update.
43400         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43401
43402 2014-02-18  Andreas Schwab  <schwab@suse.de>
43403
43404         [BZ #16574]
43405         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
43406         Store non-zero if the second buffer was newly allocated.
43407         (send_dg): Likewise.
43408         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
43409         to send_vc and send_dg.
43410         (res_nsend): Pass NULL for ansp2_malloced.
43411         * resolv/res_query.c (__libc_res_nquery): Add parameter
43412         answerp2_malloced and pass it down to __libc_res_nsend.
43413         (res_nquery): Pass additional NULL to __libc_res_nquery.
43414         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
43415         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
43416         second answer buffer if answerp2_malloced was set.
43417         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
43418         (__libc_res_nquerydomain): Add parameter
43419         answerp2_malloced and pass it down to __libc_res_nquery.
43420         (res_nquerydomain): Pass additional NULL to
43421         __libc_res_nquerydomain.
43422         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
43423         additional NULL to __libc_res_nsend and __libc_res_nquery.
43424         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
43425         additional NULL to __libc_res_nsearch.
43426         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
43427         parameter of __libc_res_nsearch to check for separately allocated
43428         second buffer.
43429         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
43430         __libc_res_nquery.
43431         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
43432         additional NULL to __libc_res_nquery.
43433         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
43434         __libc_res_nsearch.
43435         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
43436         * include/resolv.h: Update prototypes of __libc_res_nquery,
43437         __libc_res_nsearch, __libc_res_nsend.
43438
43439 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
43440
43441         * math/auto-libm-test-in: Add tests of fma.
43442         * math/auto-libm-test-out: Regenerated.
43443         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
43444         (fma_towardzero_test_data): Likewise.
43445         (fma_downward_test_data): Likewise.
43446         (fma_upward_test_data): Likewise.
43447         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
43448         mpc_mode.
43449         (rounding_modes): Add values for new field.
43450         (func_calc_method): Add value mpfr_fff_f.
43451         (func_calc_desc): Add mpfr_fff_f union field.
43452         (test_function): Add field exact_args.
43453         (FUNC): Add macro argument EXACT_ARGS.
43454         (FUNC_mpfr_f_f): Update call to FUNC.
43455         (FUNC_mpfr_f_f): Likewise.
43456         (FUNC_mpfr_ff_f): Likewise.
43457         (FUNC_mpfr_if_f): Likewise.
43458         (FUNC_mpc_c_f): Likewise.
43459         (FUNC_mpc_c_c): Likewise.
43460         (test_functions): Add fma.  Update calls to FUNC.
43461         (handle_input_arg): Add argument exact_args.
43462         (add_test): Update call to handle_input_arg.
43463         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
43464         (output_for_one_input_case): Update call to calc_generic_results.
43465         Recalculate exact zero results in each rounding mode.
43466
43467         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
43468         non-negative before setting low bit.
43469         * math/auto-libm-test-in: Mark one asin test possibly having
43470         spurious underflow.
43471         * math/auto-libm-test-out: Regenerated.
43472         * sysdeps/i386/fpu/libm-test-ulps: Update.
43473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43474
43475 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
43476
43477         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
43478         * sysdeps/unix/sysv/linux/microblaze: Move directory from
43479         ports/sysdeps/unix/sysv/linux/microblaze.
43480         * README: Add missing listing for microblaze*-*-linux-gnu.
43481
43482 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
43483
43484         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
43485         duplicate code
43486
43487 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
43488
43489         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
43490         * sysdeps/unix/sysv/linux/ia64: Move directory from
43491         ports/sysdeps/unix/sysv/linux/ia64.
43492         * README: Update listing for ia64-*-linux-gnu.
43493
43494 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
43495             Joseph Myers  <joseph@codesourcery.com>
43496
43497         * Makeconfig (test-name): New variable.
43498         (evaluate-test): Likewise.
43499         * Makerules (do-test-clean): Remove .test-result files.
43500         (common-mostlyclean): Likewise.
43501         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
43502         * scripts/evaluate-test.sh: New file.
43503
43504 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
43505
43506         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
43507         separate $(objpfx)tst-fopenloc-cmp.out and
43508         $(objpfx)tst-fopenloc-mem.out targets.
43509         (tests): Update dependencies.
43510         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
43511         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
43512         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
43513         (tst-rxspencer-no-utf8-ARGS): New variable.
43514         (tst-rxspencer-no-utf8-ENV): Likewise.
43515         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
43516         instead of $(objpfx)tst-rxspencer-mem.
43517         ($(objpfx)tst-rxspencer-mem): Change target to
43518         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
43519         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
43520         * posix/tst-rxspencer-no-utf8.c: New file.
43521
43522         * elf/Makefile ($(objpfx)order.out): Remove rule.
43523         [$(run-built-tests) = yes] (tests): Depend on
43524         $(objpfx)order-cmp.out.
43525         ($(objpfx)order-cmp.out): New rule.
43526         [$(run-built-tests) = yes] (tests): Depend on
43527         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
43528         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
43529         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
43530         $(objpfx)tst-array5-static-cmp.out.
43531         ($(objpfx)tst-array1.out): Remove rule.
43532         ($(objpfx)tst-array1-cmp.out): New rule.
43533         ($(objpfx)tst-array1-static.out): Remove rule.
43534         ($(objpfx)tst-array1-static-cmp.out): New rule.
43535         ($(objpfx)tst-array2.out): Remove rule.
43536         ($(objpfx)tst-array2-cmp.out): New rule.
43537         ($(objpfx)tst-array3.out): Remove rule.
43538         ($(objpfx)tst-array3-cmp.out): New rule.
43539         ($(objpfx)tst-array4.out): Remove rule.
43540         ($(objpfx)tst-array4-cmp.out): New rule.
43541         ($(objpfx)tst-array5.out): Remove rule.
43542         ($(objpfx)tst-array5-cmp.out): New rule.
43543         ($(objpfx)tst-array5-static.out): Remove rule.
43544         ($(objpfx)tst-array5-static-cmp.out): New rule.
43545         [$(run-built-tests) = yes] (tests): Depend on
43546         $(objpfx)order2-cmp.out.
43547         ($(objpfx)order2.out): Remove rule.
43548         ($(objpfx)order2-cmp.out): New rule.
43549         ($(objpfx)tst-initorder.out): Remove rule.
43550         [$(run-built-tests) = yes] (tests): Depend on
43551         $(objpfx)tst-initorder-cmp.out.
43552         ($(objpfx)tst-initorder-cmp.out): New rule.
43553         ($(objpfx)tst-initorder2.out): Remove rule.
43554         [$(run-built-tests) = yes] (tests): Depend on
43555         $(objpfx)tst-initorder2-cmp.out.
43556         ($(objpfx)tst-initorder2-cmp.out): New rule.
43557         [$(run-built-tests) = yes] (tests): Depend on
43558         $(objpfx)tst-unused-dep-cmp.out.
43559         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
43560         ($(objpfx)tst-unused-dep-cmp.out): New rule.
43561         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
43562         on $(objpfx)tst-setvbuf1-cmp.out.
43563         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
43564         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
43565         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
43566         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
43567         ($(objpfx)tst-svc.out): Remove rule.
43568         ($(objpfx)tst-svc-cmp.out): New rule.
43569
43570 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
43571
43572         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
43573         * ctype/ctype.h [__USE_MISC]: Likewise.
43574         * dirent/dirent.h [__USE_MISC]: Likewise.
43575         * grp/grp.h [__USE_MISC]: Likewise.
43576         * io/fcntl.h [__USE_MISC]: Likewise.
43577         * io/sys/stat.h [__USE_MISC]: Likewise.
43578         * libio/stdio.h [__USE_MISC]: Likewise.
43579         * posix/unistd.h [__USE_MISC]: Likewise.
43580         * pwd/pwd.h [__USE_MISC]: Likewise.
43581         * stdlib.h [__USE_MISC]: Likewise.
43582         * string/bits/string2.h [__USE_MISC]: Likewise.
43583         * string/string.h [__USE_MISC]: Likewise.
43584         * time/time.h [__USE_MISC]: Likewise.
43585
43586 2014-02-13  Andreas Schwab  <schwab@suse.de>
43587
43588         [BZ #16574]
43589         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
43590         second answer buffer if it was separately allocated.
43591
43592 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
43593
43594         * sysdeps/mips/math-tests.h: Include <features.h>.
43595         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43596         (ROUNDING_TESTS_long_double): Do not define.
43597         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43598         (EXCEPTION_TESTS_long_double): Likewise.
43599         * sysdeps/mips/mips64/libm-test-ulps: Update.
43600
43601         * include/features.h (__USE_BSD): Remove macro definitions.
43602         (__USE_SVID): Likewise.
43603         (_BSD_SOURCE): Likewise.
43604         (_SVID_SOURCE): Likewise.
43605         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
43606         from definition of _DEFAULT_SOURCE.
43607         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
43608         [_DEFAULT_SOURCE].
43609         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
43610         * bits/mman.h [__USE_BSD]: Likewise.
43611         * bits/termios.h [__USE_BSD]: Likewise.
43612         * bits/waitstatus.h [__USE_BSD]: Likewise.
43613         * ctype/ctype.h [__USE_SVID]: Likewise.
43614         * dirent/dirent.h [__USE_BSD]: Likewise.
43615         * grp/grp.h [__USE_SVID]: Likewise.
43616         [__USE_BSD]: Likewise.
43617         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
43618         * io/fcntl.h [__USE_BSD]: Likewise.
43619         * io/ftw.h [__USE_BSD]: Likewise.
43620         * io/sys/stat.h [__USE_BSD]: Likewise.
43621         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
43622         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
43623         * libio/stdio.h [__USE_SVID]: Likewise.
43624         [__USE_BSD]: Likewise.
43625         * math/math.h [__USE_SVID]: Likewise.
43626         [__USE_BSD]: Likewise.
43627         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
43628         * misc/bits/syslog.h [__USE_BSD]: Likewise.
43629         * misc/search.h [__USE_SVID]: Likewise.
43630         * misc/sys/mman.h [__USE_BSD]: Likewise.
43631         * misc/sys/syslog.h [__USE_BSD]: Likewise.
43632         * misc/sys/uio.h [__USE_BSD]: Likewise.
43633         * posix/bits/unistd.h [__USE_BSD]: Likewise.
43634         * posix/glob.h [__USE_BSD]: Likewise.
43635         * posix/regex.h [__USE_BSD]: Likewise.
43636         * posix/sys/types.h [__USE_BSD]: Likewise.
43637         [__USE_SVID]: Likewise.
43638         * posix/sys/utsname.h [__USE_SVID]: Likewise.
43639         * posix/sys/wait.h [__USE_BSD]: Likewise.
43640         [__USE_SVID]: Likewise.
43641         * posix/unistd.h [__USE_BSD]: Likewise.
43642         [__USE_SVID]: Likewise.
43643         * pwd/pwd.h [__USE_SVID]: Likewise.
43644         * resolv/netdb.h [__USE_BSD]: Likewise.
43645         * setjmp/setjmp.h [__USE_BSD]: Likewise.
43646         * signal/signal.h [__USE_BSD]: Likewise.
43647         [__USE_SVID]: Likewise.
43648         * socket/sys/socket.h [__USE_BSD]: Likewise.
43649         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
43650         * stdlib/stdlib.h [__USE_BSD]: Likewise.
43651         [__USE_SVID]: Likewise.
43652         * string/bits/string2.h [__USE_BSD]: Likewise.
43653         [__USE_SVID]: Likewise.
43654         * string/bits/string3.h [__USE_BSD]: Likewise.
43655         * string/endian.h [__USE_BSD]: Likewise.
43656         * string/string.h [__USE_SVID]: Likewise.
43657         [__USE_BSD]: Likewise.
43658         * string/strings.h [__USE_BSD]: Likewise.
43659         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
43660         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
43661         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
43662         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
43663         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
43664         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
43665         Likewise.
43666         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
43667         Likewise.
43668         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
43669         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
43670         Likewise.
43671         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
43672         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
43673         Likewise.
43674         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
43675         Likewise.
43676         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
43677         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
43678         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
43679         Likewise.
43680         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
43681         Likewise.
43682         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
43683         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
43684         * termios/termios.h [__USE_BSD]: Likewise.
43685         * time/sys/time.h [__USE_BSD]: Likewise.
43686         * time/time.h [__USE_BSD]: Likewise.
43687         [__USE_SVID]: Likewise.
43688
43689         * Makefile (subdir_targets): Remove subdir_lint.out.
43690
43691         * stdio-common/Makefile (do-tst-unbputc): Remove target.
43692         (do-tst-printf): Likewise.
43693         (tests): Depend directly on $(objpfx)tst-unbputc.out and
43694         $(objpfx)tst-printf.out.
43695
43696         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
43697
43698         * Makerules (check-abi-%): Change target to
43699         $(objpfx)check-abi-%.out.
43700         (check-abi target): Update dependencies.
43701         (check-abi-pattern variable): Redirect output of diff to $@.
43702         (check-abi variable): Likewise.
43703         * elf/Makefile (check-abi): Update dependencies.
43704
43705         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
43706         unused.
43707         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
43708         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
43709         subnormal range.
43710         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
43711         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
43712         value has largest subnormal exponent.
43713         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
43714         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
43715         * sysdeps/aarch64/soft-fp/sfp-machine.h
43716         (_FP_TININESS_AFTER_ROUNDING): New macro.
43717         * sysdeps/alpha/soft-fp/sfp-machine.h
43718         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43719         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
43720         Likewise.
43721         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
43722         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43723         * sysdeps/mips/soft-fp/sfp-machine.h
43724         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43725         * sysdeps/powerpc/soft-fp/sfp-machine.h
43726         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43727         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
43728         Likewise.
43729         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
43730         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43731         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
43732         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43733         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
43734         Likewise.
43735
43736 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
43737
43738         [BZ #16545]
43739         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
43740         model 1.
43741
43742 2014-02-12  Richard Henderson  <rth@redhat.com>
43743
43744         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
43745         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
43746         * sysdeps/unix/sysv/linux/alpha: Move directory from
43747         ports/sysdeps/unix/sysv/linux/alpha.
43748         * README: Update listing for alpha-*-linux-gnu.
43749
43750 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
43751
43752         * include/features.h: Update comment documenting feature test
43753         macros.
43754         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
43755         _DEFAULT_SOURCE.
43756         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
43757         (_SVID_SOURCE): Likewise.
43758         (_DEFAULT_SOURCE): Update description of default features.
43759         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
43760         with _GNU_SOURCE.
43761         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
43762         (S_ISVTX): Likewise.
43763         * manual/math.texi (Mathematical Constants): Likewise.
43764         * manual/signal.texi (Interrupted Primitives): Likewise.
43765         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
43766         * math/test-matherr.c (_SVID_SOURCE): Do not define.
43767         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
43768         Don't refer to _SVID_SOURCE in warning text.
43769
43770         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43771
43772         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
43773         already defined.
43774         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
43775         * sysdeps/mips/dl-lookup.c: Remove.
43776         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
43777
43778 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
43779
43780         [BZ #16447]
43781         * math/auto-libm-test-in: Add testcase for expl.
43782         * math/auto-libm-test-out: Regenerate.
43783         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
43784         calculation of unsafe.
43785         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
43786
43787 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
43788
43789         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
43790         * sysdeps/unix/sysv/linux/aarch64: Move directory from
43791         ports/sysdeps/unix/sysv/linux/aarch64.
43792         * README: Update listing for aarch64*-*-linux-gnu.
43793
43794 2014-02-11  Will Newton  <will.newton@linaro.org>
43795
43796         * manual/probes.texi (Mathematical Function Probes): Use
43797         "triggered" instead of "hit".
43798
43799         * manual/probes.texi (Internal Probes): Add documentation
43800         of setjmp, longjmp and longjmp_target probes.
43801
43802         * include/stap-probe.h: Add comment about probe argument
43803         format.
43804
43805         * malloc/mtrace.c (attribute_hidden): Remove unused macro
43806         definition.  (tr_where, tr_freehook, tr_mallochook,
43807         tr_reallochook, tr_memalignhook): Use ANSI protoype.
43808
43809 2014-02-11  David S. Miller  <davem@davemloft.net>
43810
43811         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
43812         processing int_tests.
43813
43814 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
43815
43816         * sysdeps/mips: Move directory from ports/sysdeps/mips.
43817         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
43818         * sysdeps/unix/sysv/linux/mips: Move directory from
43819         ports/sysdeps/unix/sysv/linux/mips.
43820         * README: Update listing for mips-*-linux-gnu and
43821         mips64-*-linux-gnu.
43822
43823 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
43824
43825         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
43826         * sysdeps/unix/sysv/linux/m68k: Move directory from
43827         ports/sysdeps/unix/sysv/linux/m68k.
43828         * README: Update listing for m68k-*-linux-gnu.
43829
43830 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
43831
43832         * sysdeps/tile: Move directory from ports/sysdeps/tile.
43833         * sysdeps/unix/sysv/linux/generic: Move directory from
43834         ports/sysdeps/unix/sysv/linux/generic.
43835         * sysdeps/unix/sysv/linux/tile: Move directory from
43836         ports/sysdeps/unix/sysv/linux/tile.
43837         * README: Update listing for tile*-*-linux-gnu.
43838
43839 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
43840
43841         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
43842         __builtin_expect.
43843         * benchtests/bench-memmem.c (simple_memmem): Likewise.
43844         * catgets/open_catalog.c (__open_catalog): Likewise.
43845         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
43846         * debug/confstr_chk.c: Likewise.
43847         * debug/fread_chk.c (__fread_chk): Likewise.
43848         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
43849         * debug/getgroups_chk.c: Likewise.
43850         * debug/mbsnrtowcs_chk.c: Likewise.
43851         * debug/mbsrtowcs_chk.c: Likewise.
43852         * debug/mbstowcs_chk.c: Likewise.
43853         * debug/memcpy_chk.c: Likewise.
43854         * debug/memmove_chk.c: Likewise.
43855         * debug/mempcpy_chk.c: Likewise.
43856         * debug/memset_chk.c: Likewise.
43857         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
43858         * debug/strcat_chk.c (__strcat_chk): Likewise.
43859         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
43860         * debug/strncat_chk.c (__strncat_chk): Likewise.
43861         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
43862         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
43863         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
43864         * debug/wcpncpy_chk.c: Likewise.
43865         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
43866         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
43867         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
43868         * debug/wcsncpy_chk.c: Likewise.
43869         * debug/wcsnrtombs_chk.c: Likewise.
43870         * debug/wcsrtombs_chk.c: Likewise.
43871         * debug/wcstombs_chk.c: Likewise.
43872         * debug/wmemcpy_chk.c: Likewise.
43873         * debug/wmemmove_chk.c: Likewise.
43874         * debug/wmempcpy_chk.c: Likewise.
43875         * debug/wmemset_chk.c: Likewise.
43876         * dirent/scandirat.c (SCANDIRAT): Likewise.
43877         * dlfcn/dladdr1.c (dladdr1): Likewise.
43878         * dlfcn/dladdr.c (dladdr): Likewise.
43879         * dlfcn/dlclose.c (dlclose_doit): Likewise.
43880         * dlfcn/dlerror.c (__dlerror): Likewise.
43881         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
43882         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
43883         * dlfcn/dlopen.c (dlopen_doit): Likewise.
43884         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
43885         * dlfcn/dlsym.c (dlsym_doit): Likewise.
43886         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
43887         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
43888         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
43889         Likewise.
43890         * elf/dl-conflict.c: Likewise.
43891         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
43892         * elf/dl-dst.h: Likewise.
43893         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
43894         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
43895         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
43896         * elf/dl-init.c (call_init, _dl_init): Likewise.
43897         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
43898         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
43899         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
43900         Likewise.
43901         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
43902         Likewise.
43903         * elf/dl-minimal.c (__libc_memalign): Likewise.
43904         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
43905         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
43906         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
43907         * elf/dl-sym.c (do_sym): Likewise.
43908         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
43909         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
43910         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
43911         * elf/dl-writev.h (_dl_writev): Likewise.
43912         * elf/ldconfig.c (search_dir): Likewise.
43913         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
43914         (dl_main): Likewise.
43915         * elf/setup-vdso.h (setup_vdso): Likewise.
43916         * grp/compat-initgroups.c (compat_call): Likewise.
43917         * grp/fgetgrent.c (fgetgrent): Likewise.
43918         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
43919         * grp/putgrent.c (putgrent): Likewise.
43920         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
43921         Likewise.
43922         * hurd/hurdinit.c: Likewise.
43923         * iconvdata/8bit-gap.c (struct): Likewise.
43924         * iconvdata/ansi_x3.110.c : Likewise.
43925         * iconvdata/big5.c : Likewise.
43926         * iconvdata/big5hkscs.c : Likewise.
43927         * iconvdata/cp1255.c: Likewise.
43928         * iconvdata/cp1258.c : Likewise.
43929         * iconvdata/cp932.c : Likewise.
43930         * iconvdata/euc-cn.c: Likewise.
43931         * iconvdata/euc-jisx0213.c : Likewise.
43932         * iconvdata/euc-jp.c: Likewise.
43933         * iconvdata/euc-jp-ms.c : Likewise.
43934         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
43935         * iconvdata/gb18030.c : Likewise.
43936         * iconvdata/gbbig5.c (const): Likewise.
43937         * iconvdata/gbgbk.c: Likewise.
43938         * iconvdata/gbk.c : Likewise.
43939         * iconvdata/ibm1364.c : Likewise.
43940         * iconvdata/ibm930.c : Likewise.
43941         * iconvdata/ibm932.c: Likewise.
43942         * iconvdata/ibm933.c : Likewise.
43943         * iconvdata/ibm935.c : Likewise.
43944         * iconvdata/ibm937.c : Likewise.
43945         * iconvdata/ibm939.c : Likewise.
43946         * iconvdata/ibm943.c: Likewise.
43947         * iconvdata/iso_11548-1.c: Likewise.
43948         * iconvdata/iso-2022-cn.c : Likewise.
43949         * iconvdata/iso-2022-cn-ext.c : Likewise.
43950         * iconvdata/iso-2022-jp-3.c: Likewise.
43951         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
43952         * iconvdata/iso-2022-kr.c : Likewise.
43953         * iconvdata/iso646.c (gconv_end): Likewise.
43954         * iconvdata/iso_6937-2.c : Likewise.
43955         * iconvdata/iso_6937.c : Likewise.
43956         * iconvdata/iso8859-1.c: Likewise.
43957         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
43958         * iconvdata/shift_jisx0213.c : Likewise.
43959         * iconvdata/sjis.c : Likewise.
43960         * iconvdata/t.61.c : Likewise.
43961         * iconvdata/tcvn5712-1.c : Likewise.
43962         * iconvdata/tscii.c: Likewise.
43963         * iconvdata/uhc.c : Likewise.
43964         * iconvdata/unicode.c (gconv_end): Likewise.
43965         * iconvdata/utf-16.c (gconv_end): Likewise.
43966         * iconvdata/utf-32.c (gconv_end): Likewise.
43967         * iconvdata/utf-7.c (base64): Likewise.
43968         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
43969         * iconv/gconv_close.c (__gconv_close): Likewise.
43970         * iconv/gconv_open.c (__gconv_open): Likewise.
43971         * iconv/gconv_simple.c (internal_ucs4_loop_single)
43972         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
43973         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
43974         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
43975         (ucs4le_internal_loop_single): Likewise.
43976         * iconv/iconv.c (iconv): Likewise.
43977         * iconv/iconv_close.c: Likewise.
43978         * iconv/loop.c (SINGLE): Likewise.
43979         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
43980         * include/atomic.h: Likewise.
43981         * inet/inet6_option.c (option_alloc): Likewise.
43982         * intl/bindtextdom.c (set_binding_values): Likewise.
43983         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
43984         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
43985         * intl/localealias.c (read_alias_file): Likewise.
43986         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
43987         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
43988         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
43989         * libio/fmemopen.c (fmemopen): Likewise.
43990         * libio/iofgets.c (_IO_fgets): Likewise.
43991         * libio/iofgets_u.c (fgets_unlocked): Likewise.
43992         * libio/iofgetws.c (fgetws): Likewise.
43993         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
43994         * libio/iogetdelim.c (_IO_getdelim): Likewise.
43995         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
43996         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
43997         * locale/findlocale.c (_nl_find_locale): Likewise.
43998         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
43999         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
44000         Likewise.
44001         * locale/setlocale.c (setlocale): Likewise.
44002         * login/programs/pt_chown.c (main): Likewise.
44003         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
44004         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
44005         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
44006         (mmap, mmap64, mremap, munmap): Likewise.
44007         * math/e_exp2l.c: Likewise.
44008         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
44009         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
44010         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
44011         * math/s_catan.c (__catan): Likewise.
44012         * math/s_catanf.c (__catanf): Likewise.
44013         * math/s_catanh.c (__catanh): Likewise.
44014         * math/s_catanhf.c (__catanhf): Likewise.
44015         * math/s_catanhl.c (__catanhl): Likewise.
44016         * math/s_catanl.c (__catanl): Likewise.
44017         * math/s_ccosh.c (__ccosh): Likewise.
44018         * math/s_ccoshf.c (__ccoshf): Likewise.
44019         * math/s_ccoshl.c (__ccoshl): Likewise.
44020         * math/s_cexp.c (__cexp): Likewise.
44021         * math/s_cexpf.c (__cexpf): Likewise.
44022         * math/s_cexpl.c (__cexpl): Likewise.
44023         * math/s_clog10.c (__clog10): Likewise.
44024         * math/s_clog10f.c (__clog10f): Likewise.
44025         * math/s_clog10l.c (__clog10l): Likewise.
44026         * math/s_clog.c (__clog): Likewise.
44027         * math/s_clogf.c (__clogf): Likewise.
44028         * math/s_clogl.c (__clogl): Likewise.
44029         * math/s_csin.c (__csin): Likewise.
44030         * math/s_csinf.c (__csinf): Likewise.
44031         * math/s_csinh.c (__csinh): Likewise.
44032         * math/s_csinhf.c (__csinhf): Likewise.
44033         * math/s_csinhl.c (__csinhl): Likewise.
44034         * math/s_csinl.c (__csinl): Likewise.
44035         * math/s_csqrt.c (__csqrt): Likewise.
44036         * math/s_csqrtf.c (__csqrtf): Likewise.
44037         * math/s_csqrtl.c (__csqrtl): Likewise.
44038         * math/s_ctan.c (__ctan): Likewise.
44039         * math/s_ctanf.c (__ctanf): Likewise.
44040         * math/s_ctanh.c (__ctanh): Likewise.
44041         * math/s_ctanhf.c (__ctanhf): Likewise.
44042         * math/s_ctanhl.c (__ctanhl): Likewise.
44043         * math/s_ctanl.c (__ctanl): Likewise.
44044         * math/w_pow.c: Likewise.
44045         * math/w_powf.c: Likewise.
44046         * math/w_powl.c: Likewise.
44047         * math/w_scalb.c (sysv_scalb): Likewise.
44048         * math/w_scalbf.c (sysv_scalbf): Likewise.
44049         * math/w_scalbl.c (sysv_scalbl): Likewise.
44050         * misc/error.c (error_tail): Likewise.
44051         * misc/pselect.c (__pselect): Likewise.
44052         * nis/nis_callback.c (__nis_create_callback): Likewise.
44053         * nis/nis_call.c (__nisfind_server): Likewise.
44054         * nis/nis_creategroup.c (nis_creategroup): Likewise.
44055         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
44056         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
44057         * nis/nis_getservlist.c (nis_getservlist): Likewise.
44058         * nis/nis_lookup.c (nis_lookup): Likewise.
44059         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
44060         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
44061         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
44062         * nis/nis_xdr.c (xdr_endpoint): Likewise.
44063         * nis/nss_compat/compat-grp.c (getgrent_next_file)
44064         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
44065         * nis/nss_compat/compat-initgroups.c (add_group)
44066         (internal_getgrent_r): Likewise.
44067         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
44068         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
44069         * nis/nss_compat/compat-spwd.c (getspent_next_file)
44070         (internal_getspnam_r): Likewise.
44071         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
44072         (_nss_nis_getaliasbyname_r): Likewise.
44073         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
44074         (_nss_nis_getntohost_r): Likewise.
44075         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
44076         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
44077         (_nss_nis_getgrgid_r): Likewise.
44078         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
44079         (internal_nis_gethostent_r, internal_gethostbyname2_r)
44080         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
44081         (_nss_nis_gethostbyname4_r): Likewise.
44082         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
44083         (initgroups_netid): Likewise.
44084         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
44085         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
44086         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
44087         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
44088         (_nss_nis_getprotobynumber_r): Likewise.
44089         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
44090         (_nss_nis_getsecretkey): Likewise.
44091         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
44092         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
44093         (_nss_nis_getpwuid_r): Likewise.
44094         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
44095         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
44096         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
44097         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
44098         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
44099         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
44100         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
44101         Likewise.
44102         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
44103         (_nss_nisplus_getntohost_r): Likewise.
44104         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
44105         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
44106         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
44107         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
44108         Likewise.
44109         * nis/nss_nisplus/nisplus-initgroups.c
44110         (_nss_nisplus_initgroups_dyn): Likewise.
44111         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
44112         (_nss_nisplus_getnetbyaddr_r): Likewise.
44113         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
44114         (_nss_nisplus_getprotobynumber_r): Likewise.
44115         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
44116         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
44117         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
44118         Likewise.
44119         * nis/nss_nisplus/nisplus-service.c
44120         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
44121         (_nss_nisplus_getservbyport_r): Likewise.
44122         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
44123         (_nss_nisplus_getspnam_r): Likewise.
44124         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
44125         Likewise.
44126         * nscd/aicache.c (addhstaiX): Likewise.
44127         * nscd/cache.c (cache_search, prune_cache): Likewise.
44128         * nscd/connections.c (register_traced_file, send_ro_fd)
44129         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
44130         (main_loop_epoll): Likewise.
44131         * nscd/grpcache.c (addgrbyX): Likewise.
44132         * nscd/hstcache.c (addhstbyX): Likewise.
44133         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44134         * nscd/mem.c (gc, mempool_alloc): Likewise.
44135         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
44136         (addinnetgrX): Likewise.
44137         * nscd/nscd-client.h (__nscd_acquire_maplock)
44138         (__nscd_drop_map_ref): Likewise.
44139         * nscd/nscd_getai.c (__nscd_getai): Likewise.
44140         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
44141         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
44142         Likewise.
44143         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
44144         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44145         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
44146         (__nscd_get_map_ref): Likewise.
44147         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
44148         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
44149         Likewise.
44150         * nscd/pwdcache.c (addpwbyX): Likewise.
44151         * nscd/selinux.c (preserve_capabilities): Likewise.
44152         * nscd/servicescache.c (addservbyX): Likewise.
44153         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
44154         * posix/fnmatch.c (fnmatch): Likewise.
44155         * posix/getopt.c (_getopt_internal_r): Likewise.
44156         * posix/glob.c (glob, glob_in_dir): Likewise.
44157         * posix/wordexp.c (exec_comm_child): Likewise.
44158         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
44159         (getanswer_r, gaih_getanswer_slice): Likewise.
44160         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
44161         * resolv/res_init.c: Likewise.
44162         * resolv/res_mkquery.c (res_nmkquery): Likewise.
44163         * resolv/res_query.c (__libc_res_nquery): Likewise.
44164         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
44165         Likewise.
44166         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
44167         * stdio-common/perror.c (perror): Likewise.
44168         * stdio-common/printf_fp.c (___printf_fp): Likewise.
44169         * stdio-common/tmpnam.c (tmpnam): Likewise.
44170         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
44171         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
44172         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
44173         Likewise.
44174         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
44175         * stdlib/putenv.c (putenv): Likewise.
44176         * stdlib/setenv.c (__add_to_environ): Likewise.
44177         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
44178         * stdlib/strtol_l.c (INTERNAL): Likewise.
44179         * string/memmem.c (memmem): Likewise.
44180         * string/strerror.c (strerror): Likewise.
44181         * string/strnlen.c (__strnlen): Likewise.
44182         * string/test-memmem.c (simple_memmem): Likewise.
44183         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
44184         * sunrpc/pm_getport.c (__get_socket): Likewise.
44185         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
44186         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
44187         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
44188         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
44189         Likewise.
44190         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
44191         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
44192         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
44193         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
44194         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
44195         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
44196         Likewise.
44197         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
44198         Likewise.
44199         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
44200         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
44201         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
44202         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
44203         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
44204         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
44205         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
44206         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
44207         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
44208         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
44209         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
44210         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
44211         Likewise.
44212         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
44213         Likewise.
44214         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
44215         Likewise.
44216         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
44217         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
44218         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
44219         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
44220         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
44221         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
44222         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
44223         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
44224         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
44225         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
44226         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
44227         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44228         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
44229         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
44230         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
44231         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
44232         Likewise.
44233         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
44234         Likewise.
44235         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
44236         Likewise.
44237         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
44238         Likewise.
44239         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
44240         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
44241         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
44242         Likewise.
44243         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
44244         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
44245         * sysdeps/posix/opendir.c (__opendirat): Likewise.
44246         * sysdeps/posix/sleep.c: Likewise.
44247         * sysdeps/posix/tempname.c: Likewise.
44248         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
44249         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
44250         Likewise.
44251         * sysdeps/powerpc/powerpc32/dl-machine.h
44252         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
44253         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
44254         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
44255         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
44256         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
44257         Likewise.
44258         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
44259         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
44260         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44261         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
44262         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44263         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
44264         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
44265         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
44266         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
44267         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
44268         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
44269         (elf_machine_lazy_rel): Likewise.
44270         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44271         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
44272         (elf_machine_lazy_rel): Likewise.
44273         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
44274         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
44275         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
44276         * sysdeps/unix/grantpt.c (grantpt): Likewise.
44277         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
44278         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
44279         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
44280         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44281         Likewise.
44282         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
44283         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
44284         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
44285         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
44286         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
44287         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
44288         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
44289         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
44290         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
44291         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
44292         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
44293         Likewise.
44294         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
44295         (__posix_fallocate64_l64): Likewise.
44296         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
44297         (posix_fallocate): Likewise.
44298         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
44299         Likewise.
44300         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
44301         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
44302         (getifaddrs_internal): Likewise.
44303         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
44304         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
44305         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
44306         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
44307         * sysdeps/unix/sysv/linux/posix_fallocate64.c
44308         (__posix_fallocate64_l64): Likewise.
44309         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
44310         Likewise.
44311         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
44312         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
44313         (__get_clockfreq): Likewise.
44314         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
44315         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
44316         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
44317         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
44318         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
44319         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
44320         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
44321         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
44322         Likewise.
44323         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
44324         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
44325         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
44326         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
44327         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
44328         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
44329         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
44330         Likewise.
44331         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
44332         (posix_fallocate): Likewise.
44333         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
44334         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
44335         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
44336         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
44337         (elf_machine_rela, elf_machine_rela_relative)
44338         (elf_machine_lazy_rel): Likewise.
44339         * time/asctime.c (asctime_internal): Likewise.
44340         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
44341         * time/tzset.c (__tzset_parse_tz): Likewise.
44342         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
44343         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
44344         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
44345         * wcsmbs/wcsmbsload.h: Likewise.
44346
44347         [BZ #15894]
44348         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
44349
44350         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
44351         (arena_get2): Remove THREAD_STATS conditionals.
44352         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
44353         (__malloc_stats, int): Likewise.
44354
44355 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
44356
44357         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
44358         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
44359
44360         * manual/setjmp.texi: Fix typos/grammar errors.
44361
44362         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
44363         Only return early when n is <= 0.  Delete unused return statement.
44364
44365         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
44366         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
44367         * debug/tst-longjmp_chk3.c: New file.
44368
44369         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
44370         (test_main): Replace code with set_fortify_handler call.
44371         * debug/test-strcpy_chk.c: Likewise.
44372         * debug/tst-chk1.c: Likewise.
44373         * debug/tst-longjmp_chk.c: Likewise.
44374         * test-skeleton.c: Include fcntl.h & paths.h
44375         (set_fortify_handler): Define.
44376
44377         * debug/tst-longjmp_chk.c: Add header comment and include
44378         ../test-skeleton.c.
44379         (do_test): Mark static.
44380         (TEST_FUNCTION): Define.
44381
44382         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
44383         (IP_PMTUDISC_INTERFACE): Likewise.
44384         (IP_MULTICAST_IF): Likewise.
44385         (IP_MULTICAST_TTL): Likewise.
44386         (IP_MULTICAST_LOOP): Likewise.
44387         (IP_ADD_MEMBERSHIP): Likewise.
44388         (IP_DROP_MEMBERSHIP): Likewise.
44389         (IP_UNBLOCK_SOURCE): Likewise.
44390         (IP_BLOCK_SOURCE): Likewise.
44391         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
44392         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
44393         (IP_MSFILTER): Likewise.
44394         (MCAST_JOIN_GROUP): Likewise.
44395         (MCAST_BLOCK_SOURCE): Likewise.
44396         (MCAST_UNBLOCK_SOURCE): Likewise.
44397         (MCAST_LEAVE_GROUP): Likewise.
44398         (MCAST_JOIN_SOURCE_GROUP): Likewise.
44399         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
44400         (MCAST_MSFILTER): Likewise.
44401         (IP_MULTICAST_ALL): Likewise.
44402         (IP_UNICAST_IF): Likewise.
44403
44404         * timezone/Makefile: Delete $(have-ksh) check.
44405         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
44406         * timezone/tzselect.ksh: Add +x mode bits.
44407
44408         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
44409         (ANON_INODE_FS_MAGIC): Likewise.
44410         (BDEVFS_MAGIC): Likewise.
44411         (BINFMTFS_MAGIC): Likewise.
44412         (BTRFS_TEST_MAGIC): Likewise.
44413         (CRAMFS_MAGIC_WEND): Likewise.
44414         (DEBUGFS_MAGIC): Likewise.
44415         (ECRYPTFS_SUPER_MAGIC): Likewise.
44416         (EXT3_SUPER_MAGIC): Likewise.
44417         (EXT4_SUPER_MAGIC): Likewise.
44418         (FUTEXFS_SUPER_MAGIC): Likewise.
44419         (HOSTFS_SUPER_MAGIC): Likewise.
44420         (HUGETLBFS_MAGIC): Likewise.
44421         (MINIX3_SUPER_MAGIC): Likewise.
44422         (MTD_INODE_FS_MAGIC): Likewise.
44423         (NILFS_SUPER_MAGIC): Likewise.
44424         (OPENPROM_SUPER_MAGIC): Likewise.
44425         (PIPEFS_MAGIC): Likewise.
44426         (PSTOREFS_MAGIC): Likewise.
44427         (QNX6_SUPER_MAGIC): Likewise.
44428         (RAMFS_MAGIC): Likewise.
44429         (REISERFS_SUPER_MAGIC_STRING): Likewise.
44430         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
44431         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
44432         (SECURITYFS_MAGIC): Likewise.
44433         (SELINUX_MAGIC): Likewise.
44434         (SMACK_MAGIC): Likewise.
44435         (SOCKFS_MAGIC): Likewise.
44436         (SQUASHFS_MAGIC): Likewise.
44437         (STACK_END_MAGIC): Likewise.
44438         (TMPFS_MAGIC): Likewise.
44439         (USBDEVICE_SUPER_MAGIC): Likewise.
44440         (V9FS_MAGIC): Likewise.
44441         (XENFS_SUPER_MAGIC): Likewise.
44442         (CRAMFS_MAGIC): Fix typo in comment.
44443         (EXT2_SUPER_MAGIC): Update comment.
44444         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
44445
44446 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
44447
44448         * sysdeps/arm: Move directory from ports/sysdeps/arm.
44449         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
44450         * sysdeps/unix/sysv/linux/arm: Move directory from
44451         ports/sysdeps/unix/sysv/linux/arm.
44452         * README: Update listing for arm-*-linux-gnueabi.
44453
44454         * README: Remove mention of am33.
44455
44456 2014-02-07  Roland McGrath  <roland@hack.frob.com>
44457
44458         * bits/sigset.h (__sigemptyset): Use a statement expression rather
44459         than the comma operator, to avoid "rhs of comma has no effect"
44460         compiler warnings.
44461         (__sigfillset, __sigandset, __sigorset): Likewise.
44462         * include/signal.h (__sigemptyset): Likewise.
44463         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
44464
44465 2014-02-07  Allan McRae  <allan@archlinux.org>
44466
44467         * version.h (RELEASE): Set to "development".
44468         (VERSION): Set to "2.19.90"
44469         * NEWS: Add 2.20 section.
44470
44471 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
44472
44473         [BZ #16529]
44474         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
44475
44476 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
44477
44478         * manual/contrib.texi: Update entry for Carlos O'Donell,
44479         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
44480
44481 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
44482
44483         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
44484
44485         * sysdeps/unix/sysv/linux/kernel-features.h
44486         [__LINUX_KERNEL_VERSION >= 0x020621]
44487         (__ASSUME_PROC_PID_TASK_COMM): Define.
44488
44489 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
44490
44491         [BZ #16398]
44492         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
44493         conversion when destination buffer does not have enough space.
44494         * libio/tst-ftell-partial-wide.c: New test case.
44495         * libio/Makefile (tests): Add tst-ftell-partial-wide.
44496
44497         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
44498         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
44499         Leonard and Allan McRae.
44500
44501 2014-02-04  David S. Miller  <davem@davemloft.net>
44502
44503         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
44504         32-bit.
44505
44506 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44507
44508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
44509         New file
44510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
44511         New file
44512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
44513         New file.
44514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
44515         New file.
44516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
44517         New file.
44518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
44519         New file.
44520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
44521         New file.
44522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
44523         New file.
44524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
44525         New file.
44526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
44527         New file.
44528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
44529         New file.
44530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
44531         New file.
44532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
44533         New file.
44534
44535 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44536
44537         * nptl/shlib-versions: Change powerpc*le start to 2.17.
44538         * shlib-versions: Likewise.
44539
44540 2014-02-04  Roland McGrath  <roland@hack.frob.com>
44541             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44542
44543         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
44544         (abilist-pattern): New variable, set to %-le.abilist.
44545
44546         * Makerules (abilist-pattern): New variable.
44547         (vpath): Use $(abilist-pattern) in place of %.abilist.
44548         (check-abi-% pattern rule): Likewise.
44549         (check-abi, update-abi): Likewise.
44550
44551 2014-02-04  Eric Wong  <normalperson@yhbt.net>
44552
44553         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44554
44555 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
44556
44557         * manual/startup.texi: Add next, previous, and top entries for
44558         the `Program Arguments' and `Environment Variables' nodes.
44559
44560 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
44561
44562         * manual/macros.texi: Add comments before MTASC-safety macros.
44563
44564         * manual/users.texi: Document MTASC-safety properties.
44565
44566         * manual/threads.texi (pthread_key_create, pthread_key_delete)
44567         (pthread_getspecific, pthread_setspecific): Format with
44568         @deftypefun, and add @safety note.
44569         * manual/signal.texi: Move comments that analyze the above
44570         functions to their home place.
44571
44572 2014-02-03  Allan McRae  <allan@archlinux.org>
44573
44574         * po/sl.po: Update Slovenian translation from translation project.
44575
44576 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
44577
44578         * manual/time.texi (timegm): Add missing blank after @c.
44579         Reported by Joseph Myers <joseph@codesourcery.com>.
44580
44581 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
44582
44583         * manual/check-safety.sh: New.
44584         * manual/Makefile ($(objpfx)stamp-summary): Run it.
44585
44586         * manual/terminal.texi: Document MTASC-safety properties.
44587
44588         * manual/filesys.texi: Document MTASC-safety properties.
44589
44590         * manual/errno.texi: Document MTASC-safety properties.
44591
44592         * manual/intro.texi: Document safety identifiers and
44593         conditionals.
44594
44595         * manual/string.texi (wcstok): Fix prototype.
44596         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
44597
44598         * manual/time.texi: Document MTASC-safety properties.
44599
44600         * manual/string.texi: Document MTASC-safety properties.
44601
44602         * manual/threads.texi: Document MTASC-safety properties.
44603
44604         * manual/stdio.texi: Document MTASC-safety properties.
44605
44606         * manual/syslog.texi: Document MTASC-safety properties.
44607
44608         * manual/sysinfo.texi: Document MTASC-safety properties.
44609
44610         * manual/startup.texi: Document MTASC-safety properties.
44611
44612         * manual/socket.texi: Document MTASC-safety properties.
44613
44614         * manual/signal.texi: Document MTASC-safety properties.
44615
44616 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
44617
44618         * manual/setjmp.texi: Document MTASC-safety properties.
44619
44620         * manual/search.texi: Document MTASC-safety properties.
44621
44622         * manual/resource.texi: Document MTASC-safety properties.
44623
44624         * manual/process.texi: Document MTASC-safety properties.
44625
44626         * manual/platform.texi: Document MTASC-safety properties.
44627
44628         * manual/pipe.texi: Document MTASC-safety properties.
44629
44630         * manual/pattern.texi: Document MTASC-safety properties.
44631
44632         * manual/message.texi: Document MTASC-safety properties.
44633
44634         [BZ #12751]
44635         * manual/memory.texi: Document MTASC-safety properties.
44636
44637         * manual/math.texi: Document MTASC-safety properties.
44638
44639         * manual/locale.texi: Document MTASC-safety properties.
44640
44641         * manual/llio.texi: Document MTASC-safety properties.
44642
44643         * manual/libdl.texi: New.
44644
44645         * manual/lang.texi: Document MTASC-safety properties.
44646
44647         * manual/job.texi: Document MTASC-safety properties.
44648
44649         * manual/getopt.texi: Document MTASC-safety properties.
44650
44651         * manual/ctype.texi: Document MTASC-safety properties.
44652
44653 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
44654
44655         [BZ #16046]
44656         * csu/libc-tls.c (static_map): Remove variable.
44657         (__libc_setup_tls): Use main executable's link map for TLS data.
44658         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
44659         casing for LM_ID_BASE and GL(dl_nns).
44660         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
44661         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
44662         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
44663         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
44664         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
44665         member.
44666         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
44667         l_phnum members.
44668
44669 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
44670
44671         * manual/debug.texi: Document MTASC-safety properties.
44672
44673 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
44674
44675         [BZ #16510]
44676         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
44677         of __x86_64__ when disabling x87 inline functions.
44678
44679 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
44680
44681         * manual/charset.texi: Document MTASC-safety properties.
44682
44683         * manual/crypt.texi: Document MTASC-safety properties.
44684
44685         * manual/conf.texi: Document MTASC-safety properties.
44686
44687         * manual/arith.texi: Document MTASC-safety properties.
44688
44689         * manual/argp.texi: Document MTASC-safety properties.
44690
44691         * manual/macros.texi: Introduce macros to document multi
44692         thread, asynchronous signal and asynchronous cancellation
44693         safety properties.
44694         * manual/intro.texi: Introduce the properties themselves.
44695
44696 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44697
44698         * sysdeps/sh/sh4/Makefile: New file.
44699
44700 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
44701
44702         * math/gen-libm-test.pl ($srcdir): New variable.
44703         ($auto_input): Use it.
44704
44705 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
44706
44707         [BZ #16506]
44708         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
44709         access beyond array bounds when parsing netgroups file.
44710
44711         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
44712         the old buffer before realloc.
44713
44714 2014-01-27  Allan McRae  <allan@archlinux.org>
44715
44716         * po/fr.po: Update French translation from translation project.
44717
44718 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44719
44720         * sysdeps/sh/libm-test-ulps: Regenerate.
44721
44722 2014-01-24  David S. Miller  <davem@davemloft.net>
44723
44724         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
44725
44726 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44727
44728         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
44729         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
44730
44731 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
44732
44733         [BZ #16474]
44734         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
44735         string pointers after reallocation.
44736
44737 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44738
44739         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
44740         __SH4A__ instead of __SH_FPU_ANY__.
44741
44742 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44743
44744         * sysdeps/sh/fpu_control.h: New file.
44745         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
44746         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
44747         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
44748         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
44749         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
44750         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
44751         * sysdeps/sh/sys/ucontext.h: Remove.
44752         * sysdeps/sh/sys: Remove directory.
44753
44754 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44755
44756         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
44757         s390/sys/ucontext.h.
44758         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
44759         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
44760
44761 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
44762
44763         [BZ #15605]
44764         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
44765
44766 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44767
44768         [BZ#16431]
44769         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
44770         Adjust the vDSO correctly for internal calls.
44771         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
44772
44773 2014-01-20  Allan McRae  <allan@archlinux.org>
44774
44775         * po/ca.po: Update Catalan translation from translation project.
44776
44777 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
44778
44779         * sysdeps/s390/sotruss-lib.c: New file.
44780
44781 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44782
44783         [BZ#16430]
44784         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
44785         (__GI___gettimeofday): Alias for a different internal symbol to avoid
44786         local calls issues by not having a PLT stub required for IFUNC calls.
44787         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
44788
44789 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
44790
44791         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
44792         * math/test-fpucw-static.c: Likewise.
44793
44794 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
44795
44796         [BZ #16453]
44797         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
44798
44799 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44800
44801         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
44802         implementation for powerpc.
44803
44804 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
44805
44806         [BZ #14782]
44807         * sysdeps/posix/system.c (__libc_system): Do not enable
44808         asynchronous cancellation.
44809
44810 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44811
44812         [BZ #16427]
44813         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
44814         handling only for numbers special also in the IEEE case.
44815
44816 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44817
44818         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
44819
44820 2014-01-11  Allan McRae  <allan@archlinux.org>
44821
44822         * po/bg.po: Update Bulgarian translation from translation project.
44823
44824         * po/de.po: Update German translation from translation project.
44825
44826 2014-01-10  Roland McGrath  <roland@hack.frob.com>
44827
44828         * sysdeps/generic/gcc-compat.h: New file.
44829
44830 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
44831
44832         * benchtests/asin-inputs: Correct slow inputs.
44833         * benchtests/acos-inputs: Likewise.
44834
44835 2014-01-10  Allan McRae  <allan@archlinux.org>
44836
44837         * po:sv.po: Update Swedish translation from translation project.
44838
44839         * po/vi.po: Update Vietnamese translation from translation project.
44840
44841         * po/eo.po: Update Esperanto translation from translation project.
44842
44843         * po/cs.po: Update Czech translation from translation project.
44844
44845         * po/nl.po: Update Dutch translation from translation project.
44846
44847         * po/pl.po: Update Polish translation from translation project.
44848
44849         * po/ru.po: Update Russian translation from translation project.
44850
44851         * po/uk.po: Update Ukrainian translation from translation project.
44852
44853 2014-01-08  Brooks Moses  <bmoses@google.com>
44854
44855         * elf/dl-load.c: Fix comment typo.
44856
44857 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
44858
44859         * po/header.pot: Rename to...
44860         * po/pot.header: ... this.
44861         * po/Makefile: Use pot.header.
44862
44863 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
44864             Maxim Kuvyrkov  <maxim@kugelworks.com>
44865
44866         [BZ #16394]
44867         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
44868         SRC and DEST against LEN.
44869
44870 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44871
44872         [BZ #16414]
44873         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
44874         implementation.
44875         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
44876
44877 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44878
44879         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44880
44881 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
44882
44883         [BZ #16408]
44884         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
44885         for large positive arguments.
44886
44887 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
44888
44889         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
44890
44891         * math/auto-libm-test-in: Mark various tests with
44892         xfail-rounding:ldbl-128ibm.
44893         * math/auto-libm-test-out: Regenerated.
44894
44895         [BZ #16407]
44896         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
44897         Increase overflow threshold.
44898
44899 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
44900
44901         [BZ #14286]
44902         * stdio-common/vfprintf.c: Check for integer overflow.
44903
44904 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44905
44906         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
44907         the first argument and return value of __tls_get_addr_internal.
44908
44909 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44910
44911         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
44912         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
44913
44914 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44915
44916         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
44917         * sysdeps/s390/rtld-global-offsets.sym: New file.
44918         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
44919         GLIBC_2.19 symbol.
44920         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
44921         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
44922         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
44923         ... this.
44924         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
44925         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
44926         ... this.
44927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
44928         Regenerate.
44929         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
44930         Regenerate.
44931         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
44932         halfs of GPRs for high_gprs contexts.
44933         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
44934         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
44935         field.
44936         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
44937         uc_flags field.
44938         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
44939         64 bit versions:
44940         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
44941         for high GPRs (uc_high_gprs) and for future extensions
44942         (__reserved).
44943         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
44944         for future extensions (__reserved).
44945         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
44946         64 bit versions:
44947         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
44948         SC_HIGHGPRS offset definition.
44949         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
44950         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
44951
44952         * Versions.def: Add GLIBC_2.19 for libpthread.
44953         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
44954         siglongjmp for libpthread with GLIBC_2.19 symver.
44955         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
44956         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
44957         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
44958         * sysdeps/s390/__longjmp.c: New file.
44959         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
44960         * sysdeps/s390/longjmp.c: New file.
44961         * sysdeps/s390/setjmp.S: New file.
44962         * sysdeps/s390/sigjmp.S: New file.
44963         * sysdeps/s390/v1-longjmp.c: New file.
44964         * sysdeps/s390/v1-setjmp.h: New file.
44965         * sysdeps/s390/v1-sigjmp.c: New file.
44966         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
44967         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
44968         GLIBC_2.19 version.
44969         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
44970         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
44971         versioned symbols for ____longjmp_chk.
44972         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
44973         Likewise.
44974         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
44975         Regenerate.
44976         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
44977         Regenerate.
44978         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
44979         Regenerate.
44980         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
44981         Regenerate.
44982         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
44983         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
44984         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
44985         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
44986         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
44987         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
44988         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
44989         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
44990         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
44991         * sysdeps/s390/rtld-__longjmp.c: New file.
44992         * sysdeps/s390/rtld-setjmp.S: New file.
44993
44994 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
44995
44996         [BZ #16400]
44997         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
44998         Return -__logl (x) for small positive arguments without evaluating
44999         a polynomial.
45000
45001 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
45002
45003         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
45004         Rename to ...
45005         (__ptrace_peeksiginfo_args): ... this.
45006         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45007         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45008         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45009
45010 2014-01-06  Allan McRae  <allan@archlinux.org>
45011
45012         * inet/netinet/in.h: Fix typo in comment.
45013
45014 2014-01-05  Andreas Jaeger  <aj@suse.de>
45015
45016         * sysdeps/i386/fpu/libm-test-ulps: Update.
45017
45018 2014-01-05  Allan McRae  <allan@archlinux.org>
45019
45020         * po/libc.pot: Regenerated.
45021
45022         * malloc/memusagestat.c: Fix gettext call formatting.
45023
45024 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
45025
45026         * nscd/nscd.c: Improve usage() output.
45027
45028 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
45029
45030         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
45031         * sysdeps/unix/sysv/linux/configure: Regenerated.
45032         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
45033         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
45034
45035 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45036
45037         [BZ #16390]
45038         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
45039         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
45040
45041 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45042
45043         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
45044         extra tokens at end of #undef directive.
45045         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
45046         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
45047         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
45048
45049 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45050
45051         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45052
45053         * math/auto-libm-test-in: Mark various tests with
45054         xfail-rounding:ldbl-128ibm.
45055         * math/auto-libm-test-out: Regenerated.
45056
45057 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
45058
45059         [BZ #16386]
45060         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
45061         numbers with subnormal high part when calculating exponent.
45062
45063         [BZ #16385]
45064         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
45065         fabs.
45066
45067         [BZ #16384]
45068         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
45069         M_LN2l.
45070         (__ieee754_acoshl): Use __log1pl not __log1p.
45071
45072 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
45073
45074         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
45075         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
45076         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
45077         (grow_heap, heap_trim, _int_new_arena, get_free_list)
45078         (reused_arena, arena_get2): Convert to GNU style.
45079         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
45080         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
45081         (memalign_check, __malloc_set_state): Likewise.
45082         * malloc/mallocbug.c (main): Likewise.
45083         * malloc/malloc.c (__malloc_assert, malloc_init_state)
45084         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
45085         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
45086         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
45087         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
45088         (__posix_memalign, malloc_info): Likewise.
45089         * malloc/malloc.h: Likewise.
45090         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
45091         (mallochook, memalignhook, reallochook, mabort): Likewise.
45092         * malloc/mcheck.h: Likewise.
45093         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
45094         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
45095         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
45096         * malloc/morecore.c (__default_morecore): Likewise.
45097         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
45098         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
45099         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
45100         (print_and_abort): Likewise.
45101         * malloc/obstack.h: Likewise.
45102         * malloc/set-freeres.c (__libc_freeres): Likewise.
45103         * malloc/tst-mallocstate.c (main): Likewise.
45104         * malloc/tst-mtrace.c (main): Likewise.
45105         * malloc/tst-realloc.c (do_test): Likewise.
45106
45107 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45108
45109         [BZ #16366]
45110         * nscd/netgroupcache.c (do_notfound): New function.
45111         (addgetnetgrentX): Use it.
45112
45113         [BZ # 16365]
45114         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
45115         NSS_STATUS_NOTFOUND.
45116
45117 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
45118
45119         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45121
45122 2014-01-01  Allan McRae  <allan@archlinux.org>
45123
45124         * scripts/update-copyrights: Update configure input file suffix.
45125
45126         * NEWS: Update copyright year.
45127         * catgets/gencat.c: Likewise.
45128         * csu/version.c: Likewise.
45129         * debug/catchsegv.sh: Likewise.
45130         * debug/pcprofiledump.c: Likewise.
45131         * debug/xtrace.sh: Likewise.
45132         * elf/ldconfig.c: Likewise.
45133         * elf/ldd.bash.in: Likewise.
45134         * elf/pldd.c: Likewise.
45135         * elf/sotruss.ksh: Likewise.
45136         * elf/sprof.c: Likewise.
45137         * iconv/iconv_prog.c: Likewise.
45138         * iconv/iconvconfig.c: Likewise.
45139         * locale/programs/locale.c: Likewise.
45140         * locale/programs/localedef.c: Likewise.
45141         * login/programs/pt_chown.c: Likewise.
45142         * malloc/memusage.sh: Likewise.
45143         * malloc/memusagestat.c: Likewise.
45144         * malloc/mtrace.pl: Likewise.
45145         * manual/libc.texinfo: Likewise.
45146         * nscd/nscd.c: Likewise.
45147         * nss/getent.c: Likewise.
45148         * nss/makedb.c: Likewise.
45149         * posix/getconf.c: Likewise.
45150         * scripts/test-installation.pl: Likewise.
45151
45152         * All files with FSF copyright notices: Update copyright dates
45153         using scripts/update-copyrights.
45154         * intl/plural.c: Regenerated.
45155         * locale/programs/charmap-kw.h: Likewise.
45156         * locale/programs/locfile-kw.h: Likewise.
45157
45158 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
45159
45160         * sysdeps/unix/sysv/linux/configure: Regenerated.
45161         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
45162         the linux/fanotify.h header.
45163         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
45164         HAVE_LINUX_FANOTIFY_H is defined.
45165
45166 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
45167
45168         * benchtests/cos-inputs: New inputs.
45169         * benchtests/sin-inputs: Likewise.
45170
45171         * benchtests/atan-inputs: New inputs. Fix name of multiple
45172         precision fallback inputs.
45173
45174         * benchtests/atanh-inputs: New inputs.
45175         * benchtests/tanh-inputs: Likewise.
45176
45177         * benchtests/acosh-inputs: New inputs.
45178         * benchtests/asinh-inputs: Likewise.
45179
45180         * benchtests/cosh-inputs: New inputs.
45181         * benchtests/sinh-inputs: Likewise.
45182
45183         * benchtests/acos-inputs: Add more inputs.
45184         * benchtests/asin-inputs: Likewise.
45185
45186 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
45187
45188         [BZ #16375]
45189         * manual/arith.texi: Fix spelling.
45190         * manual/charset.texi: Likewise.
45191         * manual/errno.texi: Likewise.
45192         * manual/filesys.texi: Likewise.
45193         * manual/lang.texi: Likewise.
45194         * manual/llio.texi: Likewise.
45195         * manual/locale.texi: Likewise.
45196         * manual/message.texi: Likewise.
45197         * manual/resource.texi: Likewise.
45198         * manual/search.texi: Likewise.
45199         * manual/setjmp.texi: Likewise.
45200         * manual/stdio.texi: Likewise.
45201         * manual/string.texi: Likewise.
45202         * manual/sysinfo.texi: Likewise.
45203         * manual/time.texi: Likewise.
45204
45205 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
45206
45207         * po/sl.po: New file.
45208
45209 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
45210
45211         * .gitignore: Add core/.gdbinit/.gdb_history.
45212
45213 2013-12-27  Allan McRae  <allan@archlinux.org>
45214
45215         [BZ #16369]
45216         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
45217         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
45218
45219 2013-12-24  Brooks Moses  <bmoses@google.com>
45220
45221         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
45222         all compilers that claim C++98 compliance, not just GCC.
45223         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
45224         Likewise.
45225
45226 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45227
45228         * NEWS: Restore accidentally deleted bug-fix entries.
45229
45230 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45231             Ondřej Bílka  <neleai@seznam.cz>
45232
45233         [BZ #15073]
45234         * malloc/malloc.c (_int_free): Perform sanity check only if we
45235         have_lock.
45236
45237 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
45238
45239         [BZ #12986]
45240         * manual/stdio.texi (String Input Conversions): Clarify that character
45241         classes are not supported.
45242
45243 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45244
45245         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45246
45247 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
45248
45249         [BZ #16337]
45250         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45251         Calculate results for small negative arguments directly rather
45252         than using reflection formula with special underflow handling.
45253
45254         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
45255         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
45256         sysdeps/unix/bsd/bsd4.4/syscalls.list.
45257         (fchflags): Likewise.
45258         (revoke): Likewise.
45259         (setlogin): Likewise.
45260         (sigaltstack): Likewise.
45261         (wait4): Likewise.
45262         (sigblock): Remove.
45263         (sigsetmask): Likewise.
45264         (wait3): Likewise.
45265         (waitpid): Likewise.
45266         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
45267         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
45268         file.
45269         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
45270         * sysdeps/unix/bsd/Makefile: ... here.
45271         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
45272         * sysdeps/unix/bsd/Versions: ... here.
45273         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
45274         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
45275         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
45276         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
45277         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
45278         * sysdeps/unix/bsd/sigblock.c: ... here.
45279         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
45280         * sysdeps/unix/bsd/sigsetmask.c: ... here.
45281         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
45282         * sysdeps/unix/bsd/sigvec.c: ... here.
45283         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
45284         * sysdeps/unix/bsd/tcdrain.c: ... here.
45285         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
45286         * sysdeps/unix/bsd/tcgetattr.c: ... here.
45287         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
45288         * sysdeps/unix/bsd/tcsetattr.c: ... here.
45289         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
45290         * sysdeps/unix/bsd/wait.c: ... here.
45291         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
45292         * sysdeps/unix/bsd/wait3.c: ... here.
45293         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
45294         * sysdeps/unix/bsd/waitpid.c: ... here.
45295
45296 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
45297
45298         [BZ #16356]
45299         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
45300         round-to-nearest for [!USE_AS_EXPM1L].
45301         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
45302         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
45303         more tests of exp and exp10.  Expect some exp10 tests to miss
45304         exceptions or fail in directed rounding modes.
45305         * math/auto-libm-test-out: Regenerated.
45306         * math/libm-test.inc (exp10_tonearest_test_data): New array.
45307         (exp10_test_tonearest): New function.
45308         (exp10_towardzero_test_data): New array.
45309         (exp10_test_towardzero): New function.
45310         (exp10_downward_test_data): New array.
45311         (exp10_test_downward): New function.
45312         (exp10_upward_test_data): New array.
45313         (exp10_test_upward): New function.
45314         (main): Call the new functions.
45315         * sysdeps/i386/fpu/libm-test-ulps: Update.
45316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45317
45318 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
45319
45320         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
45321         asinh, atan, atan2, atanh, cbrt, cos and cosh.
45322         * math/auto-libm-test-out: Regenerated.
45323         * math/libm-test.inc (acosh_test_data): Add more tests.
45324         (atanh_test_data): Likewise.
45325         (ceil_test_data): Likewise.
45326         (copysign_test_data): Likewise.
45327         * sysdeps/i386/fpu/libm-test-ulps: Update.
45328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45329
45330         * timezone/checktab.awk: Update from tzcode 2013i.
45331         * timezone/private.h: Likewise.
45332         * timezone/scheck.c: Likewise.
45333         * timezone/tzfile.h: Likewise.
45334         * timezone/tzselect.ksh: Likewise.
45335         * timezone/zdump.c: Likewise.
45336         * timezone/zic.c: Likewise.
45337
45338         * math/auto-libm-test-in: Add tests of cpow.
45339         * math/auto-libm-test-out: Regenerated.
45340         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
45341         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45342         mpc_cc_c.
45343         (func_calc_desc): Add mpc_cc_c union field.
45344         (test_functions): Add cpow.
45345         (special_fill_2pi): New function.
45346         (special_real_inputs): Add 2pi.
45347         (calc_generic_results): Handle mpc_cc_c.
45348         * sysdeps/i386/fpu/libm-test-ulps: Update.
45349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45350
45351         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
45352         csqrt, ctan and ctanh.
45353         * math/auto-libm-test-out: Regenerated.
45354         * math/libm-test.inc (TEST_COND_x86_64): New macro.
45355         (TEST_COND_x86): Likewise.
45356         (ccos_test_data): Use AUTO_TESTS_c_c.
45357         (ccosh_test_data): Likewise.
45358         (cexp_test_data): Likewise.
45359         (clog_test_data): Likewise.
45360         (csqrt_test_data): Likewise.
45361         (ctan_test_data): Likewise.
45362         (ctan_tonearest_test_data): Likewise.
45363         (ctan_towardzero_test_data): Likewise.
45364         (ctan_downward_test_data): Likewise.
45365         (ctan_upward_test_data): Likewise.
45366         (ctanh_test_data): Likewise.
45367         (ctanh_tonearest_test_data): Likewise.
45368         (ctanh_towardzero_test_data): Likewise.
45369         (ctanh_downward_test_data): Likewise.
45370         (ctanh_upward_test_data): Likewise.
45371         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45372         mpc_c_c.
45373         (func_calc_desc): Add mpc_c_c union field.
45374         (FUNC_mpc_c_c): New macro.
45375         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
45376         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
45377         ctanh.
45378         (special_fill_min_subnorm_p120): New function.
45379         (special_real_inputs): Add min_subnorm_p120.
45380         (calc_generic_results): Handle mpc_c_c.
45381         * sysdeps/i386/fpu/libm-test-ulps: Update.
45382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45383
45384 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45385
45386         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
45387         (do_sin_slow): New functions.
45388         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
45389         (cslow2, csloww1, csloww2): Use the new functions.
45390
45391         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
45392         Use M to change sign of result instead of X.  Assume X is
45393         positive.
45394         (csloww1): Likewise.
45395         (__sin): Adjust.
45396         (__cos): Adjust.
45397
45398         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
45399         arguments A and DA.
45400         (__sin): Adjust.
45401         (__cos): Likewise.
45402
45403         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
45404         (__cos): Likewise.
45405         (sloww1): Don't adjust sign of DX.
45406         (csloww1): Likewise.
45407         (sloww2): Use X directly and don't adjust sign of DX.
45408         (csloww2): Likewise.
45409
45410 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45411
45412         * math/auto-libm-test-in: Add tests of cabs and carg.
45413         * math/auto-libm-test-out: Regenerated.
45414         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
45415         (carg_test_data): Likewise.
45416         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45417         mpc_c_f.
45418         (func_calc_desc): Add mpc_c_f union field.
45419         (test_functions): Add cabs and carg.
45420         (calc_generic_results): Handle mpc_c_f.
45421
45422         * sysdeps/powerpc/powerpc32/libgcc-compat.S
45423         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
45424         as a macro and a compat symbol.
45425         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
45426         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
45427         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
45428         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
45429         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
45430         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
45431         not use .hidden.
45432         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
45433         Likewise.
45434         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
45435         Likewise.
45436         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
45437         Likewise.
45438         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
45439         Likewise.
45440         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
45441         Likewise.
45442         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
45443         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
45444         from GLIBC_2.3.2.
45445
45446 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45447
45448         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45449
45450 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45451
45452         * manual/texinfo.tex: Update to version 2013-11-26.10 with
45453         trailing whitespace removed.
45454         * scripts/config.guess: Update to version 2013-11-29.
45455         * scripts/config.sub: Update to version 2013-10-01.
45456
45457         * math/auto-libm-test-in: Add tests of sincos.
45458         * math/auto-libm-test-out: Regenerated.
45459         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
45460         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45461         mpfr_f_11.
45462         (func_calc_desc): Add mpfr_f_11 union field.
45463         (test_functions): Add sincos.
45464         (calc_generic_results): Handle mpfr_f_11.
45465         * sysdeps/i386/fpu/libm-test-ulps: Update.
45466         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45467
45468 2013-12-19  Andreas Schwab  <schwab@suse.de>
45469
45470         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
45471         CALL_MCOUNT.
45472         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
45473         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
45474         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
45475
45476 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45477
45478         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
45479         * sysdeps/i386/fpu/libm-test-ulps: Update.
45480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45481
45482         [BZ #16293]
45483         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
45484         round-to-nearest mode when using frndint.
45485         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
45486         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
45487         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
45488         Likewise.
45489         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
45490         sinh test to fail.
45491         * math/auto-libm-test-out: Regenerated.
45492         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
45493         (TEST_COND_x86): Likewise.
45494         (expm1_tonearest_test_data): New array.
45495         (expm1_test_tonearest): New function.
45496         (expm1_towardzero_test_data): New array.
45497         (expm1_test_towardzero): New function.
45498         (expm1_downward_test_data): New array.
45499         (expm1_test_downward): New function.
45500         (expm1_upward_test_data): New array.
45501         (expm1_test_upward): New function.
45502         (main): Run the new test functions.
45503         * sysdeps/i386/fpu/libm-test-ulps: Update.
45504         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45505
45506         * include/features.h: Update comment documenting feature test
45507         macros.  Mention _DEFAULT_SOURCE in comment.
45508         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
45509         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
45510         _BSD_SOURCE and _SVID_SOURCE.
45511         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
45512         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
45513         !_SVID_SOURCE]: Likewise.
45514         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45515         (__USE_POSIX_IMPLICITLY): Define.
45516         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45517         (_POSIX_SOURCE): Undefine and redefine.
45518         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45519         (_POSIX_C_SOURCE): Likewise.
45520         * manual/creature.texi (_DEFAULT_SOURCE): Document.
45521         (Feature Test Macros): Update documentation of default features.
45522
45523 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
45524
45525         * benchtests/Makefile: Add bench-strtok.
45526         * benchtests/bench-strtok.c: New file: strtok benchtest.
45527
45528 2013-12-19  Allan McRae  <allan@archlinux.org>
45529
45530         * manual/install.texi: Suppress menu for plain text output.
45531         * INSTALL: Regenerated.
45532
45533 2013-12-18  Brooks Moses  <bmoses@google.com>
45534
45535         [BZ #15846]
45536         * misc/getauxval.c: Include errno.h.
45537         (__getauxval): Set errno to ENOENT if the requested type is not
45538         found.
45539         * misc/sys/auxv.h (getauxval): Document that it may set errno;
45540         don't declare with __attribute_const__.
45541         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
45542         * manual/startup.texi: Document that getauxval sets errno.
45543
45544 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45545
45546         * math/auto-libm-test-in: Add tests of jn and yn.
45547         * math/auto-libm-test-out: Regenerated.
45548         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
45549         (yn_test_data): Likewise.
45550         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45551         mpfr_if_f.
45552         (func_calc_desc): Add mpfr_if_f union field.
45553         (FUNC_mpfr_if_f): New macro.
45554         (test_functions): Add jn and yn.
45555         (calc_generic_results): Assert type of second input for
45556         mpfr_ff_f.  Handle mpfr_if_f.
45557         (output_for_one_input_case): Disable all checking for arguments
45558         fitting floating-point types in case of an integer argument.
45559         * sysdeps/i386/fpu/libm-test-ulps: Update.
45560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45561
45562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
45563         Don't expect fegetround reference in libm.so.
45564
45565 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45566
45567         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
45568         $(config-cflags-nofma).
45569
45570 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45571
45572         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
45573         * math/auto-libm-test-out: Regenerated.
45574
45575         [BZ #16338]
45576         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
45577         to determine exponent and adjust argument to have exponent of -1.
45578         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
45579         log2.
45580         * math/auto-libm-test-out: Regenerated.
45581         * sysdeps/i386/fpu/libm-test-ulps: Update.
45582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45583
45584 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
45585
45586         * manual/probes.texi: Remove cases when per-thread arenas are
45587         disabled.
45588
45589 2013-12-18  Andreas Schwab  <schwab@suse.de>
45590
45591         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
45592         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
45593         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
45594         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
45595         * sysdeps/i386/i686/multiarch/Makefile: Update.
45596         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
45597
45598 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45599
45600         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
45601         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
45602
45603 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
45604
45605         [BZ #15968]
45606         Support TZ transition times < 00:00:00.
45607         This is needed for version-3 tz-format files; it supports time
45608         stamps past 2037 for America/Godthab (the only entry in the tz
45609         database for which this change is relevant).
45610         * manual/time.texi (TZ Variable): Document transition times
45611         from -167:59:59 through -00:00:01.
45612         * time/tzset.c (tz_rule): Time of day is now signed.
45613         (__tzset_parse_tz): Parse negative time of day.
45614
45615         Document TZ transition times >= 25:00:00.
45616         * manual/time.texi (TZ Variable): Document transition times from
45617         25:00:00 through 167:59:59.  These are already supported, and this
45618         support will help with version-3 tz-format files.
45619
45620         * manual/time.texi (TZ Variable): Modernize North America example
45621         to reflect current (i.e., 2007-and-later) daylight saving rules.
45622
45623         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
45624
45625 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45626
45627         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
45628         * sysdeps/unix/bsd/bits/stat.h: Likewise.
45629         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
45630         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
45631         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
45632         * sysdeps/unix/bsd/bsdstat.h: Likewise.
45633         * sysdeps/unix/bsd/clock.c: Likewise.
45634         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
45635         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
45636         * sysdeps/unix/bsd/init-posix.c: Likewise.
45637         * sysdeps/unix/bsd/poll.c: Likewise.
45638         * sysdeps/unix/bsd/ptsname.c: Likewise.
45639         * sysdeps/unix/bsd/seekdir.c: Likewise.
45640         * sysdeps/unix/bsd/setegid.c: Likewise.
45641         * sysdeps/unix/bsd/seteuid.c: Likewise.
45642         * sysdeps/unix/bsd/setgid.c: Likewise.
45643         * sysdeps/unix/bsd/setrgid.c: Likewise.
45644         * sysdeps/unix/bsd/setruid.c: Likewise.
45645         * sysdeps/unix/bsd/setsid.c: Likewise.
45646         * sysdeps/unix/bsd/setuid.c: Likewise.
45647         * sysdeps/unix/bsd/sigaction.c: Likewise.
45648         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
45649         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
45650         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
45651         * sysdeps/unix/bsd/telldir.c: Likewise.
45652         * sysdeps/unix/bsd/times.c: Likewise.
45653         * sysdeps/unix/bsd/usleep.c: Likewise.
45654
45655         * misc/Makefile (install-lib): Remove libbsd-compat.a.
45656         ($(objpfx)libbsd-compat.a): Remove rule.
45657
45658         * include/features.h (__FAVOR_BSD): Do not define.
45659         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
45660         features conflicting with POSIX.
45661         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
45662         (_BSD_SOURCE): Remove description of not being a subset of other
45663         feature test macros.
45664         * manual/job.texi (getpgrp): Do not document BSD version.
45665         (getpgid): Do not document by reference to BSD getpgrp.
45666         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
45667         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
45668         * signal/signal.h [__FAVOR_BSD]: Likewise.
45669         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
45670         instead of making contents conditional on [__FAVOR_BSD].
45671         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
45672
45673 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45674
45675         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45676
45677 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45678
45679         [BZ #16314]
45680         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
45681         values below 2**-450, not 2**-500.
45682         * math/auto-libm-test-in: Don't allow spurious underflow from
45683         hypot.
45684         * math/auto-libm-test-out: Regenerated.
45685
45686         [BZ #16316]
45687         [BZ #16330]
45688         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
45689         values of ha and hb and sort them after adjusting subnormal
45690         arguments.
45691         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
45692         Likewise.
45693         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
45694         values of ea and eb and sort them after adjusting subnormal
45695         arguments.
45696         * math/auto-libm-test-in: Do not expect some hypot tests of
45697         subnormals to fail.  Add more hypot tests.
45698         * math/auto-libm-test-out: Regenerated.
45699
45700 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45701
45702         [BZ #13304]
45703         * sysdeps/sh/s_fma.c: New file.
45704         * sysdeps/sh/s_fmaf.c: New file.
45705         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
45706         version.
45707         * sysdeps/sh/Implies: Add sh/soft-fp.
45708
45709 2013-12-16  Roland McGrath  <roland@hack.frob.com>
45710
45711         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
45712         level of indirection to members `objname', `errstring', `malloced'.
45713         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
45714         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
45715         it as the __longjmp argument (just pass 1 instead).
45716         (_dl_catch_error): Initialize C with argument pointers and address of
45717         volatile local ERRCODE rather than copying values out of C at return.
45718
45719 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
45720
45721         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
45722         * math/auto-libm-test-out: Regenerated.
45723         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
45724         (hypot_test_data): Likewise.
45725         (pow_test_data): Likewise.
45726         (pow_tonearest_test_data): Likewise.
45727         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45728         mpfr_ff_f.
45729         (func_calc_desc): Add mpfr_ff_f union field.
45730         (FUNC_mpfr_ff_f): New macro.
45731         (test_functions): Add atan2, hypot and pow.
45732         (special_fill_min): New function.
45733         (special_fill_minus_min): Likewise.
45734         (special_fill_min_subnorm): Likewise.
45735         (special_fill_minus_min_subnorm): Likewise.
45736         (special_real_inputs): Add min, -min, min_subnorm and
45737         -min_subnorm.
45738         (calc_generic_results): Handle mpfr_ff_f.
45739         * sysdeps/i386/fpu/libm-test-ulps: Update.
45740         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45741
45742 2013-12-16  Will Newton  <will.newton@linaro.org>
45743
45744         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
45745         (Aligned Memory Blocks): Add documentation for aligned_alloc
45746         and suggest it as an alternative to posix_memalign.
45747         (Hooks for Malloc): Document __memalign_hook is also called
45748         for aligned_alloc.  (Summary of Malloc): Add summary for
45749         aligned alloc.  Document __memalign_hook is also called
45750         for aligned_alloc.
45751
45752 2013-12-16  Will Newton  <will.newton@linaro.org>
45753
45754         * manual/memory.texi (Malloc Examples): Clarify default
45755         alignment documentation.  Suggest posix_memalign rather
45756         than memalign or valloc.
45757         (Aligned Memory Blocks): Remove suggestion to use memalign
45758         or valloc.  Remove obsolete comment about BSD.
45759         Document memalign errno values and mark the function obsolete.
45760         Document posix_memalign returned error codes.  Mark valloc
45761         as obsolete.  (Hooks for Malloc): __memalign_hook is also
45762         called for posix_memalign and valloc.
45763         (Summary of Malloc): Add posix_memalign to function summary.
45764         __memalign_hook is also called for posix_memalign and valloc.
45765
45766 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
45767
45768         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
45769         TAYLOR_SIN.
45770         (__sin): Adjust.
45771         (__cos): Likewise.
45772         (sloww): Use mynumber union.  Expand ternary operator into
45773         if-else statements.
45774         (cslow): use mynumber union.
45775
45776 2013-12-16  Allan McRae  <allan@archlinux.org>
45777
45778         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
45779         * configure: Regenerated.
45780
45781         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
45782
45783         [BZ #14120]
45784         * configure.ac: Added --enable-maintainer-mode. Check for
45785         autoconf when enabled.
45786         * configure: Regenerated.
45787
45788         * nscd/nscd.service: New file.
45789         * nscd/nscd.tmpfiles: New file.
45790
45791 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
45792
45793         [BZ #12100]
45794         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
45795         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
45796         * sysdeps/x86_64/multiarch/strstr.c: ... here.
45797         (strstr): Add __strstr_sse2_unaligned ifunc.
45798         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
45799         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
45800         (strcasestr): Remove __strcasestr_sse42 ifunc.
45801         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
45802         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
45803         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
45804
45805 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45806
45807         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
45808         * sysdeps/sh/bits/fenv.h: ... here.
45809         * sysdeps/sh/sh4/fpu/bits: Remove directory.
45810
45811 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45812
45813         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
45814
45815         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
45816         hypotf multiarch implementations.
45817         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
45818         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
45819         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
45820         multiarch hypot for PPC64.
45821         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
45822         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
45823         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
45824         multiarch hypotf for PPC64.
45825
45826         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
45827         modff multiarch implementations.
45828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
45829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
45830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
45831         multiarch modf for PPC64.
45832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
45833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
45834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
45835         multiarch modff for PPC64.
45836
45837         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
45838         and logl multiarch implementations.
45839         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
45840         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
45841         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
45842         multiarch logb for PPC64.
45843         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
45844         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
45845         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
45846         multiarch logb for PPC64.
45847         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
45848         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
45849         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
45850         multiarch logb for PPC64.
45851
45852         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
45853         isinff multiarch implementation.
45854         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
45855         file.
45856         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
45857         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
45858         multiarch isinf for PPC64.
45859         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
45860         file.
45861         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
45862         multiarch isinff for PPC64.
45863
45864         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
45865         finitef multiarch implementation.
45866         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
45867         file.
45868         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
45869         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
45870         multiarch finite for PPC64.
45871         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
45872         file.
45873         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
45874         multiarch finitef for PPC64.
45875
45876         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
45877         lrint multiarch implementation.
45878         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
45879         file.
45880         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
45881         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
45882         multiarch llrint for PPC64.
45883         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
45884         multiarch lrint for PPC64.
45885
45886         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
45887         copysignf multiarch implementation.
45888         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
45889         file.
45890         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
45891         file.
45892         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
45893         multiarch copysign for PPC64.
45894         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
45895         multiarch copysignf for PPC64.
45896
45897         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
45898         multiarch implementation.
45899         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
45900         file.
45901         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
45902         file.
45903         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
45904         file.
45905         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
45906         file.
45907         multiarch llround for PPC64.
45908         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
45909         multiarch trunc for PPC64.
45910         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
45911         multiarch truncf for PPC64.
45912
45913         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
45914         multiarch implementation.
45915         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
45916         file.
45917         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
45918         file.
45919         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
45920         file.
45921         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
45922         file.
45923         multiarch llround for PPC64.
45924         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
45925         multiarch round for PPC64.
45926         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
45927         multiarch roundf for PPC64.
45928
45929         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
45930         multiarch implementation.
45931         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
45932         file.
45933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
45934         file.
45935         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
45936         file.
45937         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
45938         file.
45939         multiarch llround for PPC64.
45940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
45941         multiarch floor for PPC64.
45942         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
45943         multiarch floorf for PPC64.
45944
45945         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
45946         multiarch implementation.
45947         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
45948         file.
45949         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
45950         file.
45951         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
45952         file.
45953         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
45954         file.
45955         multiarch llround for PPC64.
45956         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
45957         multiarch ceil for PPC64.
45958         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
45959         multiarch ceilf for PPC64.
45960
45961         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
45962         multiarch implementation.
45963         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
45964         file.
45965         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
45966         file.
45967         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
45968         file.
45969         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
45970         multiarch llround for PPC64.
45971         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
45972         multiarch lround for PPC64.
45973
45974         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
45975         multiarch implementation.
45976         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
45977         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
45978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
45979         file.
45980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
45981         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
45982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
45983         multiarch isnan for PPC64.
45984         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
45985         multiarch isnanf for PPC64.
45986
45987         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
45988         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
45989         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
45990         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
45991         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
45992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
45993
45994         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
45995         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
45996         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
45997         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
45998
45999         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
46000         multiarch implementations.
46001         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46002         (__libc_ifunc_impl_list): Likewise.
46003         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
46004         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
46005         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
46006         multiarch stpcpy for PPC64.
46007
46008         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
46009         multiarch implementations.
46010         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46011         (__libc_ifunc_impl_list): Likewise.
46012         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
46013         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
46014         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
46015         multiarch strcpy for PPC64.
46016
46017         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
46018         redefine function name.
46019         (_wordcopy_fwd_dest_aligned): Likewise.
46020         (_wordcopy_bwd_aligned): Likewise.
46021         (_wordcopy_bwd_dest_aligned): Likewise.
46022         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
46023         multiarch implementations.
46024         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46025         (__libc_ifunc_impl_list): Likewise.
46026         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
46027         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
46028         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
46029         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
46030         multiarch wcscpy for PPC64.
46031
46032         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
46033         multiarch implementations.
46034         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46035         (__libc_ifunc_impl_list): Likewise.
46036         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
46037         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
46038         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
46039         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
46040         multiarch wcscpy for PPC64.
46041
46042         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
46043         multiarch implementations.
46044         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46045         (__libc_ifunc_impl_list): Likewise.
46046         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
46047         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
46048         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
46049         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
46050         multiarch wcsrchr for PPC64.
46051
46052         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
46053         multiarch implementations.
46054         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46055         (__libc_ifunc_impl_list): Likewise.
46056         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
46057         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
46058         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
46059         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
46060         multiarch wcschr for PPC64.
46061
46062         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
46063         multiarch implementations.
46064         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46065         (__libc_ifunc_impl_list): Likewise.
46066         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
46067         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
46068         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
46069         multiarch strchrnul for PPC64.
46070
46071         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
46072         implementations.
46073         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46074         (__libc_ifunc_impl_list): Likewise.
46075         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
46076         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
46077         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
46078         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
46079         strchr for PPC64.
46080
46081         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
46082         implementations.
46083         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46084         (__libc_ifunc_impl_list): Likewise.
46085         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
46086         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
46087         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
46088         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
46089         strncmp for PPC64.
46090
46091         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
46092         multiarch implementations.
46093         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46094         (__libc_ifunc_impl_list): Likewise.
46095         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
46096         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
46097         strncasecmp for PPC64.
46098         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
46099         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
46100         multiarch strncasecmp_l for PPC64.
46101
46102         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
46103         multiarch implementations.
46104         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
46105         (__libc_ifunc_impl_list): Likewise.
46106         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
46107         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
46108         multiarch strcasecmp for PPC64.
46109         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
46110         file.
46111         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
46112         multiarch strcasecmp_l for PPC64.
46113
46114         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
46115         implementations.
46116         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46117         (__libc_ifunc_impl_list): Likewise.
46118         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
46119         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
46120         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
46121         strnlen for PPC64.
46122
46123         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
46124         implementations.
46125         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46126         (__libc_ifunc_impl_list): Likewise.
46127         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
46128         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
46129         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
46130         strlen for PPC64.
46131
46132         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
46133         implementations.
46134         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46135         (__libc_ifunc_impl_list): Likewise.
46136         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
46137         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
46138         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
46139         rawmemrchr for PPC64.
46140
46141         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
46142         implementation.
46143         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46144         (__libc_ifunc_impl_list): Likewise.
46145         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
46146         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
46147         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
46148         memrchr for PPC64.
46149
46150         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
46151         implementation.
46152         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46153         (__libc_ifunc_impl_list): Likewise.
46154         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
46155         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
46156         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
46157         memchr for PPC64.
46158
46159         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
46160         implementation.
46161         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46162         (__libc_ifunc_impl_list): Likewise.
46163         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
46164         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
46165         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
46166         mempcpy for PPC64.
46167
46168         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
46169         avoid cretion of __bzero symbol.
46170         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
46171         Likewise.
46172         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
46173         Likewise.
46174         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
46175         Likewise.
46176         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
46177         multiarch implementations.
46178         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46179         (__libc_ifunc_impl_list): Likewise.
46180         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
46181         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
46182         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
46183         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
46184         bzero for PPC32.
46185         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
46186         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
46187         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
46188         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
46189         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
46190         memset for PPC64.
46191         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
46192
46193         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
46194         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
46195         implementations.
46196         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46197         (__libc_ifunc_impl_list): Likewise.
46198         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
46199         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
46200         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
46201         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
46202         memcmp for PPC64.
46203
46204         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
46205         multiarch for POWER/PPC64.
46206         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
46207         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
46208         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
46209         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
46210         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
46211         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
46212         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
46213         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
46214         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
46215         memcpy for PPC64.
46216
46217         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
46218         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
46219         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
46220         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
46221         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
46222         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
46223         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
46224         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
46225         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
46226         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
46227         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
46228         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
46229         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
46230         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
46231         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
46232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
46233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
46234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
46235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
46236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
46237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
46238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
46239
46240 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46241
46242         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
46243
46244 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
46245
46246         * benchtests/Makefile (bench): Add exp2 and log2.
46247         (LDLIBS-bench-exp2): Add -lm.
46248         (LDLIBS-bench-log2): Likewise.
46249         * benchtests/exp2-inputs: New inputs file.
46250         * benchtests/log2-inputs: New inputs file.
46251         * benchtests/log-inputs: Add new inputs.
46252         * benchtests/tan-inputs: Likewise.
46253
46254 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46255
46256         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
46257         definition...
46258         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
46259         (csloww2): ... from here.
46260
46261         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
46262         instead of structures.
46263         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
46264         (POLYNOMIAL): Likewise.
46265         (TAYLOR_SLOW): Likewise.
46266         (__sin): Likewise.
46267         (__cos): Likewise.
46268         (slow1): Likewise.
46269         (slow2): Likewise.
46270         (sloww): Likewise.
46271         (sloww1); Likewise.
46272         (sloww2): Likewise.
46273         (bsloww1): Likewise.
46274         (bsloww2): Likewise.
46275         (cslow2): Likewise.
46276         (csloww): Likewise.
46277         (csloww1): Likewise.
46278         (csloww2): Likewise.
46279
46280 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
46281
46282         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
46283         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
46284         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
46285         * malloc/hooks.c (realloc_check): Likewise.
46286
46287         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
46288         * malloc/arena.c: Remove PER_THREAD conditional.
46289         [!PER_THREAD]: Remove code.
46290         (ptmalloc_unlock_all2): Likewise.
46291         (ptmalloc_init): Likewise.
46292         (_int_new_arena): Likewise.
46293         (arena_get2): Likewise.
46294         * malloc/hooks.c (__malloc_get_state): Likewise.
46295         (__malloc_set_state): Likewise.
46296         * malloc/malloc.c: Likewise.
46297         (struct malloc_state): Likewise.
46298         (struct malloc_par): Likewise.
46299         (__libc_realloc): Likewise.
46300         (__libc_mallopt): Likewise.
46301
46302 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46303
46304         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
46305
46306 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
46307
46308         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
46309         macro to a function.  Check for zero perturb_byte.
46310         (_int_malloc, _int_free): Remove zero perturb_byte checks.
46311
46312         * malloc/malloc.c: (force_reg): Remove.
46313         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
46314         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
46315         force_reg by atomic_forced_read.
46316         * malloc/arena.c (ptmalloc_init): Likewise.
46317         * malloc/hooks.c (top_check): Likewise.
46318
46319 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46320
46321         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46322
46323 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
46324
46325         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
46326
46327 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
46328
46329         * math/auto-libm-test-in: Add tests of lgamma.
46330         * math/auto-libm-test-out: Regenerated.
46331         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
46332         (M_LOG_2_SQRT_PIl): Likewise.
46333         (lgamma_test_data): Use AUTO_TESTS_f_f1.
46334         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46335         mpfr_f_f1.
46336         (func_calc_desc): Add mpfr_f_f1 union field.
46337         (ARGS1): New macro.
46338         (ARGS2): Likewise.
46339         (ARGS3): Likewise.
46340         (ARGS4): Likewise.
46341         (RET1): Likewise.
46342         (RET2): Likewise.
46343         (CALC): Likewise.
46344         (FUNC): Likewise.
46345         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
46346         (test_functions): Add lgamma.
46347         (calc_generic_results): Handle mpfr_f_f1.
46348         * sysdeps/i386/fpu/libm-test-ulps: Update.
46349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46350
46351 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46352
46353         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
46354         __mpn_add_n for PowerPC64/POWER7.
46355         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
46356         __mpn_sub_n for PowerPC64/POWER7.
46357
46358         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
46359         __mpn_addmul_1 for PowerPC64.
46360         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
46361         __mpn_submul_1 for PowerPC64.
46362         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
46363         for PowerPC64.
46364         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
46365         for PowerPC64.
46366
46367 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
46368
46369         [BZ #15089]
46370         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
46371
46372 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46373
46374         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
46375
46376         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
46377         add multiarch folders.
46378         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
46379         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
46380         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
46381         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
46382         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
46383         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
46384         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
46385         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
46386         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
46387         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
46388         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
46389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
46390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
46391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
46392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
46393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
46394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
46395
46396         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46397         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
46398         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
46399         New file.
46400         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
46401         New file.
46402         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
46403         multiarch __ieee754_hypot for PowerPC32.
46404         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
46405         New file.
46406         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
46407         New file.
46408         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
46409         multiarch __ieee754_hypotf for PowerPC32.
46410
46411         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
46412         long_double_symbol only if __logbl is defined.
46413         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
46414         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
46415         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
46416         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
46417         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
46418         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
46419         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
46420         path for implementation.
46421         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
46422         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
46423         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
46424         logb, and logbl multiarch implementations for PowerPC32.
46425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
46426         file.
46427         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
46428         file.
46429         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
46430         multiarch logb for PowerPC32.
46431         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
46432         file.
46433         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
46434         file.
46435         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
46436         multiarch logbf for PowerPC32.
46437         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
46438         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
46439         file.
46440         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
46441         multiarch logbl implementation for PowerPC32.
46442
46443         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
46444         and modff multiarch implementations.
46445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
46446         New file.
46447         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
46448         New file.
46449         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
46450         multiarch modf for PowerPC32.
46451         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
46452         New file.
46453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
46454         New file.
46455         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
46456         multiarch modff for PowerPC32.
46457
46458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
46459         and lrintf multiarch implementations.
46460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
46461         New file.
46462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
46463         New file.
46464         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
46465         multiarch lrint for PowerPC32.
46466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
46467         file: multiarch lrintf for PowerPC32.
46468
46469         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
46470         and lroundf multiarch implementations.
46471         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
46472         New file.
46473         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
46474         New file.
46475         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
46476         New file.
46477         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
46478         multiarch lround for PowerPC32.
46479         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
46480         file: multiarch lroundf for PowerPC32.
46481
46482         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46483         copysign and copysignf multiarch implementations.
46484         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
46485         New file.
46486         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
46487         New file.
46488         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
46489         file: multiarch copysign for PowerPC32.
46490         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
46491         file: multiarch copysignf for PowerPC32.
46492
46493         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
46494         and truncf multiarch implementations.
46495         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
46496         New file.
46497         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
46498         file.
46499         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
46500         multiarch trunc for PowerPC32.
46501         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
46502         New file.
46503         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
46504         New file.
46505         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
46506         multiarch truncf for PowerPC32.
46507
46508         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
46509         and roundf multiarch implementations.
46510         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
46511         New file.
46512         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
46513         file.
46514         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
46515         multiarch round for PowerPC32.
46516         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
46517         New file.
46518         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
46519         New file.
46520         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
46521         multiarch roundf for PowerPC32.
46522
46523         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
46524         and floorf multiarch implementations.
46525         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
46526         New file.
46527         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
46528         file.
46529         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
46530         multiarch floor for PowerPC32.
46531         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
46532         New file.
46533         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
46534         New file.
46535         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
46536         multiarch floorf for PowerPC32.
46537
46538         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
46539         and ceilf multiarch implementations.
46540         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
46541         New file.
46542         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
46543         file.
46544         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
46545         multiarch ceil for PowerPC32.
46546         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
46547         New file.
46548         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
46549         file.
46550         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
46551         multiarch ceilf for PowerPC32.
46552
46553         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
46554         is defined.
46555         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
46556         FINITEF is defined.
46557         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
46558         and finitef multiarch implementations.
46559         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
46560         New file.
46561         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
46562         file.
46563         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
46564         multiarch finite for PowerPC32.
46565         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
46566         New file.
46567         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
46568         file: multiarch finitef for PowerPC32.
46569
46570         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
46571         and isinff multiarch implementations.
46572         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
46573         file.
46574         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
46575         file.
46576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
46577         multiarch isinf for PowerPC32.
46578         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
46579         New file.
46580         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
46581         multiarch isinff for PowerPC32.
46582
46583         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
46584         alias when __isnan is defined.
46585         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
46586         and isnanf multiarch implementations.
46587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
46588         file.
46589         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
46590         file.
46591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
46592         file.
46593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
46594         file.
46595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
46596         multiarch isnan for PowerPC32.
46597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
46598         New file.
46599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
46600         New file.
46601         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
46602         multiarch isnanf for PowerPC32.
46603
46604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
46605         and sqrtf multiarch implementations.
46606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
46607         file.
46608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
46609         file.
46610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
46611         multiarch sqrt for PowerPC32.
46612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
46613         file.
46614         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
46615         file.
46616         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
46617         multiarch sqrtf for PowerPC32.
46618
46619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
46620         and llroundf multiarch implementations.
46621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
46622         New file.
46623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
46624         New file.
46625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
46626         New file.
46627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
46628         file: multiarch llround for PowerPC32.
46629         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
46630         file: multiarch llroundf for PowerPC32.
46631
46632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
46633         multiarch PowerPC32 fpu implementations.
46634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
46635         New file.
46636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
46637         New file.
46638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
46639         multiarch llrint for PowerPC32.
46640         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
46641         New file.
46642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
46643         New file.
46644         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
46645         file.
46646
46647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
46648
46649         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
46650         file.
46651         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
46652         file.
46653         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
46654         file.
46655         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
46656         multiarch wordcopy for PPC32.
46657         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
46658         wordcopy objects.
46659         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46660         (__libc_ifunc_impl_list): Likewise.
46661         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
46662         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
46663         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
46664         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
46665         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
46666         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
46667
46668         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
46669         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
46670         file.
46671         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
46672         file.
46673         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
46674         file.
46675         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
46676         multiarch wcscpy for PPC32.
46677         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
46678         multiarch objects.
46679         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46680         (__libc_ifunc_impl_list): Likewise.
46681         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
46682         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
46683         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
46684         sysdeps/powerpc/power6/wcscpy.c.
46685
46686         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
46687         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
46688         file.
46689         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
46690         file.
46691         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
46692         file.
46693         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
46694         multiarch wcsrchr for PPC32.
46695         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
46696         multiarch objects.
46697         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46698         (__libc_ifunc_impl_list): Likewise.
46699         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
46700         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
46701         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
46702         sysdeps/powerpc/power6/wcsrchr.c.
46703
46704         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
46705         file.
46706         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
46707         file.
46708         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
46709         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
46710         multiarch wcschr for PPc32.
46711         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
46712         multiarch objects.
46713         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46714         (__libc_ifunc_impl_list): Likewise.
46715         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
46716         * sysdeps/powerpc/power6/wcschr.c: ... to here.
46717         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
46718         sysdeps/powerpc/power6/wcschr.c.
46719
46720         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
46721         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
46722         file.
46723         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
46724         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
46725         file: multiarch strchr for PPC32.
46726         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
46727         multiarch objects.
46728         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46729         (__libc_ifunc_impl_list): Likewise.
46730
46731         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
46732         name.
46733         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
46734         file.
46735         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
46736         file.
46737         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
46738         multiarch strchrnul for PPC32.
46739         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
46740         multiarch objects.
46741         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46742         (__libc_ifunc_impl_list): Likewise.
46743
46744         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
46745         file.
46746         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
46747         multiarch strncasecmp for PPC32.
46748         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
46749         file.
46750         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
46751         multiarch strncasecmp_l for PPC32.
46752         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
46753         strncasecmp multiarch objects.
46754         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46755         (__libc_ifunc_impl_list): Likewise.
46756
46757         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
46758         file.
46759         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
46760         multiarch strncasecmp for PPC32.
46761         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
46762         New file.
46763         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
46764         multiarch strcasecmp_l for PPC32.
46765         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
46766         multiarch objects.
46767         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46768         (__libc_ifunc_impl_list): Likewise.
46769
46770         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
46771         file.
46772         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
46773         file.
46774         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
46775         multiarch strncmp for PPC32.
46776         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
46777         multiarch objects.
46778         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46779         (__libc_ifunc_impl_list): Likewise.
46780
46781         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
46782         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
46783         file.
46784         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
46785         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
46786         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
46787         multiarch objects.
46788         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46789         (__libc_ifunc_impl_list): Likewise.
46790
46791         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
46792         file.
46793         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
46794         file.
46795         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
46796         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
46797         multiarch objects.
46798         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46799         (__libc_ifunc_impl_list): Likewise.
46800
46801         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
46802         file.
46803         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
46804         file.
46805         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
46806         multiarch rawmemchr for PPC32.
46807         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
46808         multiarch objects.
46809         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46810         (__libc_ifunc_impl_list): Likewise.
46811
46812         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
46813         file.
46814         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
46815         file.
46816         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
46817         file: memrchr multiarch for PPC32.
46818         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
46819         multiarch objects.
46820         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46821         (__libc_ifunc_impl_list): Likewise.
46822
46823         * string/memchr.c (__memchr): Using macro to redefine symbol name.
46824         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
46825         file.
46826         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
46827         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
46828         multiarch memchr for PPC32.
46829         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
46830         multiarch objects.
46831         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46832         (__libc_ifunc_impl_list): Likewise.
46833
46834         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
46835         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
46836         file.
46837         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
46838         file.
46839         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
46840         file: multiarch mempcpy for PPC32.
46841         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
46842         multiarch objects.
46843         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46844         (__libc_ifunc_impl_list): Likewise.
46845
46846         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
46847         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
46848         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
46849         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
46850         multiarch bzero for PPC32.
46851         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
46852         file.
46853         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
46854         file.
46855         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
46856         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
46857         file: multiarch memset for PPC32.
46858         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
46859         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
46860         memset multiarch objects.
46861         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46862         (__libc_ifunc_impl_list): Likewise.
46863
46864         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
46865         file.
46866         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
46867         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
46868         memcmp for PPC32.
46869         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
46870         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
46871         multiarch objects.
46872         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46873         (__libc_ifunc_impl_list): Likewise.
46874
46875         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
46876         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
46877         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
46878         file.
46879         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
46880         file.
46881         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
46882         file.
46883         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
46884         multiarch memcpy for PPC32.
46885         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
46886         multiarch objects.
46887         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46888         (__libc_ifunc_impl_list): Likewise.
46889
46890         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
46891         support multiarch for POWER/PPC32.
46892         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
46893         Likewise.
46894         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
46895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
46896         Implies file to make multiarch folder appers before the fpu and
46897         default folder for power4 configuration.
46898
46899 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
46900
46901         * scripts/bench.pl: Append volatile keyword to type.
46902
46903 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46904
46905         * sysdeps/sh/sotruss-lib.c: New file.
46906         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
46907
46908 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46909
46910         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46911
46912 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
46913
46914         [BZ #6810]
46915         * math/w_tgamma.c: Include <errno.h>.
46916         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
46917         * math/w_tgammaf.c: Include <errno.h>.
46918         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
46919         * math/w_tgammal.c: Include <errno.h>.
46920         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
46921         * math/auto-libm-test-in: Do not allow missing errno on tgamma
46922         underflow.  Add more tgamma tests.
46923         * math/auto-libm-test-out: Regenerated.
46924         * sysdeps/i386/fpu/libm-test-ulps: Update.
46925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46926
46927         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
46928         sin, sinh, tan, tanh, tgamma, y0 and y1.
46929         * math/auto-libm-test-out: Regenerated.
46930         * math/libm-test.inc (TEST_COND_x86_64): New macro.
46931         (TEST_COND_x86): Likewise.
46932         (M_E2l): Remove macro.
46933         (M_E3l): Likewise.
46934         (M_2_SQRT_PIl): Likewise.
46935         (M_SQRT_PIl): Likewise.
46936         (M_1_DIV_El): Likewise.
46937         (log_test_data): Use AUTO_TESTS_f_f.
46938         (log10_test_data): Likewise.
46939         (log1p_test_data): Likewise.
46940         (log2_test_data): Likewise.
46941         (sin_test_data): Likewise.
46942         (sin_tonearest_test_data): Likewise.
46943         (sin_towardzero_test_data): Likewise.
46944         (sin_downward_test_data): Likewise.
46945         (sin_upward_test_data): Likewise.
46946         (sinh_test_data): Likewise.
46947         (sinh_tonearest_test_data): Likewise.
46948         (sinh_towardzero_test_data): Likewise.
46949         (sinh_downward_test_data): Likewise.
46950         (sinh_upward_test_data): Likewise.
46951         (tan_test_data): Likewise.
46952         (tan_tonearest_test_data): Likewise.
46953         (tan_towardzero_test_data): Likewise.
46954         (tan_downward_test_data): Likewise.
46955         (tan_upward_test_data): Likewise.
46956         (tanh_test_data): Likewise.
46957         (tgamma_test_data): Likewise.
46958         (y0_test_data): Likewise.
46959         (y1_test_data): Likewise.
46960         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
46961         (special_real_inputs): Add pi/4.
46962         * sysdeps/i386/fpu/libm-test-ulps: Update.
46963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46964
46965 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46966
46967         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
46968         "longjmp_target" static probes.
46969         (__longjmp): Rename to __longjmp_symbol.
46970         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
46971         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
46972         on which longjmp to generate.
46973         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
46974         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
46975         probe.
46976         (__sigsetjmp): Rename to __sigsetjmp_symbol.
46977         (__sigjmp_save): Rename to __sigjmp_save_symbol.
46978         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
46979         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
46980         and __sigjmp_save_symbol based on which sigsetjmp to generated.
46981         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
46982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
46983         __longjmp_symbol based on which __longjmp to generate.
46984         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
46985         probe.
46986         (setjmp): Rename to setjmp_symbol.
46987         (__sigsetjmp): Rename to __sigsetjmp_symbol.
46988         (_setjmp): Rename to _setjmp_symbol.
46989         (__sigsetjmp): Rename to __sigsetjmp_symbol.
46990         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
46991         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
46992         which setjmp to generate.
46993         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
46994         "longjmp_target" static probes.
46995
46996 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46997
46998         * benchtests/README: Add note about output arguments.
46999         * benchtests/bench-sincos.c: Remove file.
47000         * benchtests/sincos-inputs: New file.
47001         * scripts/bench.pl: Identify output arguments and define
47002         static variables for them.
47003
47004         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
47005
47006         [BZ #15941]
47007         * Makefile (INSTALL): Add install-plain.texi as the primary
47008         dependency.
47009         * manual/install-plain.texi: New file.
47010         * manual/install.texi: Include node directive only for
47011         non-plaintext output.
47012
47013 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
47014
47015         * stdlib/longlong.h: Update from GCC.
47016
47017         [BZ #6807]
47018         [BZ #15901]
47019         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
47020         * math/w_j0f.c (y0f): Likewise.
47021         * math/w_j0l.c (__y0l): Likewise.
47022         * math/w_j1.c (y1): Likewise.
47023         * math/w_j1f.c (y1f): Likewise.
47024         * math/w_j1l.c (__y1l): Likewise.
47025         * math/w_jn.c (yn): Likewise.
47026         * math/w_jnf.c (ynf): Likewise.
47027         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
47028         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
47029         value for Bessel function domain errors outside _SVID_ mode.
47030         Adjust sign of return value for yn (negative integer, 0).
47031         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
47032         by zero in return for negative x and set sign appropriately for
47033         negative n.
47034         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
47035         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
47036         * math/libm-test.inc (y0_test_data): Add more tests and adjust
47037         expectations in error cases.
47038         (y1_test_data): Likewise.
47039         (yn_test_data): Likewise.
47040         * sysdeps/i386/fpu/libm-test-ulps: Update.
47041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47042
47043 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47044
47045         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
47046         "64" to "64-v1".  Add "64-v2".
47047         (abi-64-options): Rename to ...
47048         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
47049         (abi-64-condition): Rename to ...
47050         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
47051         (abi-64-ld-soname): Rename to ...
47052         (abi-64-v1-ld-soname): ... this.
47053         (abi-64-v2-options): Define.
47054         (abi-64-v2-condition): Likewise.
47055         (abi-64-v2-ld-soname): Likewise.
47056         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
47057         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
47058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
47059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
47060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
47061
47062 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47063             Alan Modra  <amodra@gmail.com>
47064
47065         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
47066         New versions for use with the ELFv2 ABI.
47067         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
47068         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
47069         declaration.
47070         (struct La_ppc64v2_retval): Likewise.
47071         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
47072         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
47073         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
47074         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
47075         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
47076         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
47077         Do not save or restore CR.
47078         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
47079         (_dl_profile_resolve): Do no save or restore CR.  Support extended
47080         return values for ELFv2 ABI.  Fix location of FPR return registers.
47081         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
47082         updated values for _CALL_ELF == 2.
47083         (La_regs, La_retval, int_retval): Likewise.
47084
47085 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47086
47087         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
47088         (FRAME_MIN_SIZE_PARM): Likewise.
47089         (FRAME_BACKCHAIN): Likewise.
47090         (FRAME_CR_SAVE): Likewise.
47091         (FRAME_LR_SAVE): Likewise.
47092         (FRAME_TOC_SAVE): Likewise.
47093         (FRAME_PARM_SAVE): Likewise.
47094         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
47095         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
47096         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47097         (call_mcount_parm_offset): New macro.
47098         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
47099         (PROF): Use symbolic stack frame offsets.
47100         (TAIL_CALL_SYSCALL_ERROR): Likewise.
47101         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
47102         Redefine in terms of FRAME_MIN_SIZE.
47103         (_dl_runtime_resolve): Use symbolic stack frame offsets.
47104         (_dl_profile_resolve): Likewise.  Update comment.
47105         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
47106         symbols stack frame offsets.
47107         (__sigsetjmp): Likewise.
47108         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
47109         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
47110         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
47111         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
47112
47113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
47114         (FRAME_BACKCHAIN): Remove.
47115         (FRAME_CR_SAVE): Likewise.
47116         (FRAME_LR_SAVE): Likewise.
47117         (FRAME_COMPILER_DW): Likewise.
47118         (FRAME_LINKER_DW): Likewise.
47119         (FRAME_TOC_SAVE): Likewise.
47120         (FRAME_PARM_SAVE): Likewise.
47121         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
47122         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
47123         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
47125         (CHECK_SP): Use symbolic stack frame offsets.
47126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
47127         zone" instead of caller's parameter save area for temp storage.
47128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
47129         Likewise.  Also, use symbolic stack frame offsets.
47130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
47131         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
47132         our own stack frame instead of the caller's.
47133         (__socket): Use symbolic stack frame offsets.
47134
47135 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47136             Alan Modra  <amodra@gmail.com>
47137
47138         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
47139         Define.
47140         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
47141         (PPC64_LOCAL_ENTRY_OFFSET): Define.
47142         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
47143         New function.
47144         (elf_machine_fixup_plt): Call it.
47145         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
47146         reloc arguments.
47147         (elf_machine_rela): Update call to elf_machine_plt_conflict.
47148         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47149         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
47150         r2 before calling target.
47151
47152 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47153             Alan Modra  <amodra@gmail.com>
47154
47155         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
47156         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
47157         versions of macros to support ELFv2 ABI.
47158         (LOCALENTRY): New macro.
47159         (ENTRY, EALIGN): Use it.
47160         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
47161         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
47162         fall through into ENTRY entry point.
47163         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
47164         Only define if _CALL_ELF != 2.
47165
47166         (elf_machine_matches_host): Verify ABI version matches.
47167         (RTLD_START): Use LOCALENTRY.
47168         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
47169         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
47170         (PLT_ENTRY_WORDS): New macro.
47171         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
47172         (elf_machine_runtime_setup): Support ELFv2 ABI.
47173         (elf_machine_fixup_plt): Likewise.
47174         (elf_machine_plt_conflict): Likewise.
47175         (resolve_ifunc): Likewise.
47176         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
47177         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
47178         Likewise.
47179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
47180         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
47181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47182         (makecontext): Support ELFv2 ABI.
47183         * elf/elf.h (EF_PPC64_ABI): Define.
47184
47185 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47186
47187         * sysdeps/powerpc/powerpc64/sysdep.h
47188         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
47189         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
47190         (ENTRY) [ASSEMBLER]: ... but instead here ...
47191         (EALIGN) [ASSEMBLER]: ... and here.
47192         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
47193         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
47194         (ENTRY_2) [!ASSEMBLER]: Use it.
47195         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
47196         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
47197         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47198         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
47199         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
47200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
47201         Use PPC64_LOAD_FUNCPTR.
47202
47203         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
47204
47205 2013-12-04  Alan Modra  <amodra@gmail.com>
47206
47207         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
47208         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
47209         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
47210         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
47211
47212         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
47213         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
47214         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
47215         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
47216         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
47217         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
47218
47219 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47220
47221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47222         (__makecontext): Fix incorrect CFI when backtracing out of
47223         context created via makecontext.
47224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
47225         (__setcontext): Fix incorrect CFI during switch to new context.
47226         (__novec_setcontext): Likewise.
47227
47228 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47229
47230         [BZ #4772]
47231         * time/strptime_l.c (__strptime_internal): Allow modifiers
47232         in strptime.
47233         * time/tst-strptime.c (day_tests): Add testcase.
47234
47235 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
47236
47237         * scripts/bench.pl: Skip over blank lines.
47238
47239 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47240
47241         [BZ #926]
47242         * manual/time.texi (Calendar Time): Clarify what timezone functions
47243         use.
47244
47245 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47246
47247         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47248
47249 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47250
47251         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
47252         implementation.
47253         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
47254         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
47255         * debug/memset_chk.c (__memset_chk): Likewise.
47256         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
47257         * debug/strncpy_chk.c: Likewise.
47258
47259 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47260
47261         [BZ #15268]
47262         [BZ #15425]
47263         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
47264         (__ieee754_exp): For possibly underflowing results, check size of
47265         result and force underflow exception if required.
47266         * math/auto-libm-test-in: Add more tests of exp.
47267         * math/auto-libm-test-out: Regenerated.
47268         * sysdeps/i386/fpu/libm-test-ulps: Update.
47269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47270
47271         [BZ #16283]
47272         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
47273         * math/w_exp2f.c (__exp2f): Likewise.
47274         * math/w_exp2l.c (__exp2l): Likewise.
47275         * math/auto-libm-test-in: Do not allow missing errno on exp2
47276         underflow.
47277         * math/auto-libm-test-out: Regenerated.
47278
47279 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
47280
47281         [BZ #16274]
47282         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
47283         handle filename validation.
47284         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
47285         (do_open): Delete.
47286
47287 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47288
47289         [BZ #6786]
47290         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
47291         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
47292         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
47293         <float.h>.
47294         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
47295         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
47296         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47297         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
47298         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47299         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
47300         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47301         * math/auto-libm-test-in: Don't allow missing errno from erfc.
47302         Add more erfc tests.
47303         * math/auto-libm-test-out: Regenerated.
47304         * sysdeps/i386/fpu/libm-test-ulps: Update.
47305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47306
47307         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
47308         exp2, expm1, j0 and j1.
47309         * math/auto-libm-test-out: Regenerated.
47310         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
47311         (erfc_test_data): Likewise.
47312         (exp_test_data): Likewise.
47313         (exp_tonearest_test_data): Likewise.
47314         (exp_towardzero_test_data): Likewise.
47315         (exp_downward_test_data): Likewise.
47316         (exp_upward_test_data): Likewise.
47317         (exp10_test_data): Likewise.
47318         (exp2_test_data): Likewise.
47319         (expm1_test_data): Likewise.
47320         (j0_test_data): Likewise.
47321         (j1_test_data): Likewise.
47322         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
47323         (input_flag_type): Add flag_xfail_rounding.
47324         (input_flags): Add xfail-rounding.
47325         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
47326         (output_for_one_input_case): Handle flag_xfail_rounding.
47327         * sysdeps/i386/fpu/libm-test-ulps: Update.
47328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47329
47330 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
47331
47332         [BZ #16289]
47333         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
47334         division by 0.
47335
47336 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
47337
47338         [BZ #16195]
47339         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
47340         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
47341         (STAP_PROBE0): New macro.
47342         (STAP_PROBE1): Likewise.
47343         (STAP_PROBE2): Likewise.
47344         (STAP_PROBE3): Likewise.
47345         (STAP_PROBE4): Likewise.
47346
47347 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
47348
47349         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
47350
47351 2013-12-02  Steve Ellcey  <sellcey@mips.com>
47352
47353         * benchtests/Makefile (bench): Add sqrt.
47354         (LDLIBS-bench-sqrt): New.
47355         * benchtests/sqrt-input: New.
47356
47357 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
47358
47359         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
47360         (GAIH_EAI): Likewise.
47361         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
47362         (gaih_inet): Likewise.
47363         (getaddrinfo): Don't use GAIH_EAI.
47364
47365         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
47366         (struct gaih): Remove definition.
47367
47368 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
47369
47370         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
47371         Use HERRNOP directly.
47372
47373 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47374
47375         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47376
47377 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
47378
47379         * math/gen-auto-libm-tests.c (test_functions): Add more
47380         single-argument functions.
47381         (special_fill_pi_2): New function.
47382         (special_fill_minus_pi_2): Likewise.
47383         (special_fill_pi_6): Likewise.
47384         (special_fill_minus_pi_6): Likewise.
47385         (special_fill_pi_3): Likewise.
47386         (special_fill_2pi_3): Likewise.
47387         (special_fill_e): Likewise.
47388         (special_fill_1_e): Likewise.
47389         (special_fill_e_minus_1): Likewise.
47390         (special_real_inputs): Add more special inputs.
47391         (output_for_one_input_case): Do not require ERANGE on underflow to
47392         zero if round-to-nearest result does not underflow to zero, unless
47393         exact results required.
47394         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
47395         atan, atanh, cbrt, cos and cosh.
47396         * math/auto-libm-test-out: Regenerated.
47397         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
47398         (acos_tonearest_test_data): Likewise.
47399         (acos_towardzero_test_data): Likewise.
47400         (acos_downward_test_data): Likewise.
47401         (acos_upward_test_data): Likewise.
47402         (acosh_test_data): Likewise.
47403         (asin_test_data): Likewise.
47404         (asin_tonearest_test_data): Likewise.
47405         (asin_towardzero_test_data): Likewise.
47406         (asin_upward_test_data): Likewise.
47407         (asinh_test_data): Likewise.
47408         (atan_test_data): Likewise.
47409         (atanh_test_data): Likewise.
47410         (cbrt_test_data): Likewise.
47411         (cos_test_data): Likewise.
47412         (cos_tonearest_test_data): Likewise.
47413         (cos_towardzero_test_data): Likewise.
47414         (cos_downward_test_data): Likewise.
47415         (cos_upward_test_data): Likewise.
47416         (cosh_test_data): Likewise.
47417         (cosh_tonearest_test_data): Likewise.
47418         (cosh_towardzero_test_data): Likewise.
47419         (cosh_downward_test_data): Likewise.
47420         (cosh_upward_test_data): Likewise.
47421         * sysdeps/i386/fpu/libm-test-ulps: Update.
47422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47423
47424 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
47425
47426         [BZ #6787]
47427         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
47428         * math/w_exp10f.c (__exp10f): Likewise.
47429         * math/w_exp10l.c (__exp10l): Likewise.
47430         * math/libm-test.inc (exp10_test_data): Add more tests and expect
47431         errno settings in existing tests.
47432
47433         [BZ #14032]
47434         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
47435         precision control set to double precision.
47436         * sysdeps/i386/fpu/w_sqrt.c: New file.
47437         * math/auto-libm-test-in: Add more tests.
47438         * math/auto-libm-test-out: Update.
47439
47440         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
47441         (sqrt_test_tonearest): New function.
47442         (sqrt_towardzero_test_data): New variable.
47443         (sqrt_test_towardzero): New function.
47444         (sqrt_downward_test_data): New variable.
47445         (sqrt_test_downward): New function.
47446         (sqrt_upward_test_data): New variable.
47447         (sqrt_test_upward): New function.
47448         (main): Call the new functions.
47449
47450         * math/gen-auto-libm-tests.c: New file.
47451         * math/auto-libm-test-in: Likewise.
47452         * math/auto-libm-test-out: New generated file.
47453         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
47454         variables.
47455         (%beautify): Add generated representations of zero.
47456         (top level): Set $auto_input and call parse_auto_input.
47457         (beautify): Remove trailing "f" from hex float constants.
47458         (parse_args): Handle XFAIL_TEST.
47459         (convert_condition): New function.
47460         (or_value): Likewise.
47461         (or_cond_value): Likewise.
47462         (generate_testfile): Handle AUTO_TESTS_* lines.
47463         (parse_auto_input): New function.
47464         * math/libm-test.inc (XFAIL_TEST): New macro.
47465         (ERRNO_UNCHANGED): Update value.
47466         (ERRNO_EDOM): Likewise.
47467         (ERRNO_ERANGE): Likewise.
47468         (IGNORE_RESULT): Likewise.
47469         (TEST_COND_flt_32): New macro.
47470         (TEST_COND_dbl_64): Likewise.
47471         (TEST_COND_ldbl_96_intel): Likewise.
47472         (TEST_COND_ldbl_96_m68k): Likewise.
47473         (TEST_COND_ldbl_128): Likewise.
47474         (TEST_COND_ldbl_128ibm): Likewise.
47475         (TEST_COND_long32): Likewise.
47476         (TEST_COND_long64): Likewise.
47477         (TEST_COND_before_rounding): Likewise.
47478         (TEST_COND_after_rounding): Likewise.
47479         (enable_test): Handle XFAIL_TEST flag.
47480         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
47481         with finite results.
47482         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
47483         auto-libm-test-out.
47484
47485 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
47486             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47487
47488         [BZ #16214]
47489         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
47490         __tls_get_addr_internal instead of __tls_get_offset in order to
47491         avoid GOT pointer dependency.  Make rtld export
47492         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
47493         __tls_get_addr since we are a __tls_get_offset platform.
47494         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
47495         GOT pointer being set up before.
47496         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
47497
47498 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
47499
47500         * manual/math.texi (Errors in Math Functions): Document accuracy
47501         goals.
47502
47503         [BZ #15004]
47504         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
47505         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
47506         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
47507         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
47508         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
47509         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
47510         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
47511         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
47512         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
47513         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
47514         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
47515         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
47516         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
47517         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
47518         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
47519         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
47520
47521         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
47522         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
47523         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
47524         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
47525         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
47526         Likewise.
47527         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
47528         Likewise.
47529         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
47530         Likewise.
47531         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
47532         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
47533         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
47534         atomic-feupdateenv and flt-rounds.
47535         * sysdeps/powerpc/nofpu/Versions (libc): Add
47536         __atomic_feholdexcept, __atomic_feclearexcept,
47537         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
47538         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
47539         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
47540         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
47541         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
47542         here.
47543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
47544         Update.
47545
47546         * manual/arith.texi (FP Exceptions): Document that exceptions may
47547         not be raised when matherr is used.
47548         (Math Error Reporting): Document overflow in directed rounding
47549         modes.  Document that errno may not be set when finite values are
47550         returned on overflow.  Document intent to set errno on underflow
47551         only for underflow to zero.
47552
47553         [BZ #16271]
47554         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
47555         round-to-nearest then adjust result for other rounding modes.
47556         * include/fenv.h (fegetround): Use libm_hidden_proto.
47557         * math/fegetround.c (fegetround): Use libm_hidden_def.
47558         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
47559         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
47560         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
47561         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
47562         Likewise.
47563         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
47564         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
47565         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
47566         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
47567
47568 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
47569
47570         [BZ #16077]
47571         * nss/Versions (libnss_files): Add
47572         _nss_files_gethostbyname3_r.
47573         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
47574         New function.
47575         (HOST_DB_LOOKUP): Remove macro.
47576         (_nss_files_gethostbyname_r): Implement function without the
47577         HOST_DB_LOOKUP macro.
47578         (_nss_files_gethostbyname2_r): Likewise.
47579
47580 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
47581
47582         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
47583
47584 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
47585
47586         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
47587         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
47588         warning.
47589
47590 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47591
47592         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
47593         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
47594         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47595         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
47596         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
47597         __fe_nomask_env_priv and attribute_hidden.
47598         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
47599         (libc_feupdateenv_test_ppc): Likewise.
47600         (libc_feresetround_ppc): Likewise.
47601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
47602         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
47603         compat_symbol macro.
47604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
47605         (__fe_nomask_env): Likewise.
47606         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
47607
47608 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47609
47610         * string/Makefile: Remove ifunc tests.
47611         * string/test-string.h: Define TEST_IFUNC.
47612         * string/test-bcopy-ifunc.c: Remove.
47613         * string/test-bzero-ifunc.c: Likewise.
47614         * string/test-memccpy-ifunc.c: Likewise.
47615         * string/test-memchr-ifunc.c: Likewise.
47616         * string/test-memcmp-ifunc.c: Likewise.
47617         * string/test-memcpy-ifunc.c: Likewise.
47618         * string/test-memmem-ifunc.c: Likewise.
47619         * string/test-memmove-ifunc.c: Likewise.
47620         * string/test-mempcpy-ifunc.c: Likewise.
47621         * string/test-memrchr-ifunc.c: Likewise.
47622         * string/test-memset-ifunc.c: Likewise.
47623         * string/test-rawmemchr-ifunc.c: Likewise.
47624         * string/test-stpcpy-ifunc.c: Likewise.
47625         * string/test-stpncpy-ifunc.c: Likewise.
47626         * string/test-strcasecmp-ifunc.c: Likewise.
47627         * string/test-strcasestr-ifunc.c: Likewise.
47628         * string/test-strcat-ifunc.c: Likewise.
47629         * string/test-strchr-ifunc.c: Likewise.
47630         * string/test-strchrnul-ifunc.c: Likewise.
47631         * string/test-strcmp-ifunc.c: Likewise.
47632         * string/test-strcpy-ifunc.c: Likewise.
47633         * string/test-strcspn-ifunc.c: Likewise.
47634         * string/test-strlen-ifunc.c: Likewise.
47635         * string/test-strncasecmp-ifunc.c: Likewise.
47636         * string/test-strncat-ifunc.c: Likewise.
47637         * string/test-strncmp-ifunc.c: Likewise.
47638         * string/test-strncpy-ifunc.c: Likewise.
47639         * string/test-strnlen-ifunc.c: Likewise.
47640         * string/test-strpbrk-ifunc.c: Likewise.
47641         * string/test-strrchr-ifunc.c: Likewise.
47642         * string/test-strspn-ifunc.c: Likewise.
47643         * string/test-strstr-ifunc.c: Likewise.
47644
47645 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47646
47647         * benchtests/Makefile: Remove ifunc tests.
47648         * benchtests/bench-string.h: Define TEST_IFUNC.
47649         * benchtests/bench-bcopy-ifunc.c: Remove.
47650         * benchtests/bench-bzero-ifunc.c: Likewise.
47651         * benchtests/bench-memccpy-ifunc.c: Likewise.
47652         * benchtests/bench-memchr-ifunc.c: Likewise.
47653         * benchtests/bench-memcmp-ifunc.c: Likewise.
47654         * benchtests/bench-memcpy-ifunc.c: Likewise.
47655         * benchtests/bench-memmem-ifunc.c: Likewise.
47656         * benchtests/bench-memmove-ifunc.c: Likewise.
47657         * benchtests/bench-mempcpy-ifunc.c: Likewise.
47658         * benchtests/bench-memrchr-ifunc.c: Likewise.
47659         * benchtests/bench-memset-ifunc.c: Likewise.
47660         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
47661         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
47662         * benchtests/bench-stpcpy-ifunc.c: Likewise.
47663         * benchtests/bench-stpncpy-ifunc.c: Likewise.
47664         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
47665         * benchtests/bench-strcasestr-ifunc.c: Likewise.
47666         * benchtests/bench-strcat-ifunc.c: Likewise.
47667         * benchtests/bench-strchr-ifunc.c: Likewise.
47668         * benchtests/bench-strchrnul-ifunc.c: Likewise.
47669         * benchtests/bench-strcmp-ifunc.c: Likewise.
47670         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
47671         * benchtests/bench-strcpy-ifunc.c: Likewise.
47672         * benchtests/bench-strcspn-ifunc.c: Likewise.
47673         * benchtests/bench-strlen-ifunc.c: Likewise.
47674         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
47675         * benchtests/bench-strncat-ifunc.c: Likewise.
47676         * benchtests/bench-strncmp-ifunc.c: Likewise.
47677         * benchtests/bench-strncpy-ifunc.c: Likewise.
47678         * benchtests/bench-strnlen-ifunc.c: Likewise.
47679         * benchtests/bench-strpbrk-ifunc.c: Likewise.
47680         * benchtests/bench-strrchr-ifunc.c: Likewise.
47681         * benchtests/bench-strsep-ifunc.c: Likewise.
47682         * benchtests/bench-strspn-ifunc.c: Likewise.
47683         * benchtests/bench-strstr-ifunc.c: Likewise.
47684
47685 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47686
47687         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
47688
47689 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47690
47691         * resolv/netdb.h: Use __glibc_reserved instead __unused.
47692         * rt/aio.h: Likewise.
47693         * sysdeps/gnu/bits/utmp.h: Likewise.
47694         * sysdeps/gnu/bits/utmpx.h: Likewise.
47695         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
47696         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
47697         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
47698         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
47699         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
47700         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
47701         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
47702         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
47703         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
47704         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
47705         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
47706         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
47707         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
47708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
47709         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
47710         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
47711         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
47712         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
47713         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
47714         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
47715         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
47716         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
47717         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
47718         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
47719         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
47720         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47721         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
47722         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
47723         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
47724         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
47725         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
47726         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
47727         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
47728         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
47729         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
47730         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
47731         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
47732         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
47733         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
47734         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
47735         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
47736         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
47737
47738 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
47739
47740         [BZ #16245]
47741         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
47742         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
47743
47744 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
47745
47746         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
47747         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
47748         Likewise.
47749
47750 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47751
47752         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
47753         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
47754         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
47755         (__fesetround): Remove define.
47756         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
47757         rounding and exceptions handling.
47758         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
47759         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
47760         (__fe_nomask_env): Likewise.
47761         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
47762         __fegetround instead of fegetround.
47763         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
47764         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
47765
47766 2013-11-21  Roland McGrath  <roland@hack.frob.com>
47767
47768         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
47769         it's there.
47770
47771         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
47772
47773 2013-11-21  Meador Inge  <meadori@codesourcery.com>
47774
47775         [BZ #11157]
47776         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
47777         (encrypt_r): Likewise.
47778         * malloc/obstack.h (obstack_free): Likewise.
47779         * posix/unistd.h (encrypt): Likewise.
47780
47781 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
47782
47783         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
47784         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
47785         DL_CALL_DT_FINI() that call the functions directly.
47786         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
47787         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
47788         * elf/dl-fini.c: Likewise.
47789
47790 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
47791
47792         * malloc/hooks.c (memalign_check): Add alignment rounding.
47793         * malloc/malloc.c (_mid_memalign): New function.
47794         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
47795         Implement by calling _mid_memalign.
47796         * manual/probes.texi (Memory Allocation Probes): Remove
47797         memory_valloc_retry and memory_pvalloc_retry.
47798
47799 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
47800
47801         * locale/programs/locarchive.c (open_archive): Add const
47802         qualifier to ARCHIVEFNAME and copy default fname to
47803         DEFAULT_FNAME.
47804
47805         [BZ #15601]
47806         * libio/tst-widetext.input: Rename Oriya to Odia.
47807         * locale/iso-639.def: Likewise.
47808
47809         * manual/probes.texi (Mathematical Function Probes): Add
47810         documentation for sin, cos, asin and acos probes.
47811         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
47812         (__sin32): Add slowasin probe.
47813         (__cos32): Add slowacos probe.
47814         (__mpsin): Add slowsin probe.
47815         (__mpcos): Add slowcos probe.
47816
47817 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
47818
47819         [BZ #15483]
47820         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
47821         thread-local __sim_exceptions_thread and global
47822         __sim_exceptions_global.
47823         (__sim_disabled_exceptions): Change to thread-local
47824         __sim_disabled_exceptions_thread and global
47825         __sim_disabled_exceptions_global.
47826         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
47827         and global __sim_round_mode_global.
47828         (__simulate_exceptions): Use thread-local floating-point state and
47829         set global state from it as needed.
47830         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
47831         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
47832         __sim_round_mode_thread.
47833         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
47834         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
47835         and global __sim_exceptions_global.
47836         (__sim_disabled_exceptions): Change to thread-local
47837         __sim_disabled_exceptions_thread and global
47838         __sim_disabled_exceptions_global.
47839         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
47840         and global __sim_round_mode_global.
47841         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
47842         (SIM_SET_GLOBAL): Likewise.
47843         * sysdeps/powerpc/soft-fp/sfp-machine.h
47844         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
47845         __sim_round_mode_thread.
47846         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
47847         __sim_disabled_exceptions_thread.
47848         (__sim_exceptions): Change to __sim_exceptions_thread.
47849         (__sim_disabled_exceptions): Change to
47850         __sim_disabled_exceptions_thread.
47851         (__sim_round_mode): Change to __sim_round_mode_thread.
47852         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
47853         thread-local floating-point state and set global state from it as
47854         needed.
47855         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
47856         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
47857         (__sim_disabled_exceptions): Remove extern declaration.
47858         (feenableexcept): Use thread-local floating-point state and set
47859         global state from it as needed.
47860         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
47861         extern declaration.
47862         (__sim_disabled_exceptions): Likewise.
47863         (__sim_round_mode): Likewise.
47864         (__fegetenv): Use thread-local floating-point state.
47865         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
47866         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
47867         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
47868         floating-point state and set global state from it as needed.
47869         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
47870         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
47871         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
47872         Likewise.
47873         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
47874         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
47875         Likewise.
47876         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
47877         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
47878         Use __sim_round_mode_thread.
47879         * math/test-fenv-tls.c: New file.
47880         * math/Makefile (tests): Add test-fenv-tls.
47881         ($(objpfx)test-fenv-tls): Depend on
47882         $(common-objpfx)nptl/libpthread.so.
47883
47884 2013-11-19  Andreas Schwab  <schwab@suse.de>
47885
47886         * locale/programs/locale.c (show_info): Decode wordarray elements.
47887         * locale/categories.def (LC_MONETARY): Add element for
47888         _NL_MONETARY_CRNCYSTR.
47889         * locale/C-monetary.c (conversion_rate): New variable.
47890         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
47891         element.
47892
47893 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
47894
47895         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
47896         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
47897
47898 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
47899
47900         * elf/Makefile (tst-auxv): New test.
47901         * elf/tst-auxv.c: New
47902         * elf/rtld.c (dl_main): Adjust AT_EXECFN
47903
47904 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
47905
47906         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
47907         (hidden_proto): Caller changed.
47908         (hidden_tls_proto): New macro.
47909         (libc_hidden_tls_proto): Likewise.
47910         (rtld_hidden_tls_proto): Likewise.
47911         (libm_hidden_tls_proto): Likewise.
47912         (libresolv_hidden_tls_proto): Likewise.
47913         (librt_hidden_tls_proto): Likewise.
47914         (libdl_hidden_tls_proto): Likewise.
47915         (libnss_files_hidden_tls_proto): Likewise.
47916         (libnsl_hidden_tls_proto): Likewise.
47917         (libnss_nisplus_hidden_tls_proto): Likewise.
47918         (libutil_hidden_tls_proto): Likewise.
47919
47920 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
47921
47922         [BZ #10253]
47923         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
47924         (decompose_rpath): Defer expansion to fillin_rpath.
47925         (_dl_init_paths): Pass linkmap to fillin_rpath.
47926
47927 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
47928
47929         * benchtests/Makefile: Add strsep.
47930         * benchtests/bench-strsep.c: New file: strsep benchtest.
47931         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
47932
47933 2013-11-18  Andreas Schwab  <schwab@suse.de>
47934
47935         * locale/programs/locale.c (show_info) [case byte]: Check for
47936         '\377' instead of '\177'.
47937         * locale/C-monetary.c (not_available): Always use "\377".
47938         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
47939         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
47940         detect unavailable sign_posn locale elements.
47941         * locale/localeconv.c (__localeconv): For grouping and
47942         mon_grouping handle "\177" and "\377" like no grouping.
47943         (INT_ELEM): New macro.  Use it to set all numeric members.
47944         * locale/programs/ld-monetary.c (monetary_read)
47945         <tok_mon_grouping>: Normalize single -1 to the empty string.
47946         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
47947         Likewise.
47948
47949 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
47950
47951         [BZ #16055]
47952         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
47953         when we match (nil).
47954         * stdio-common/tst-sscanf.c (struct test): Add testcase.
47955
47956 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
47957
47958         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
47959         (NO_TEST_INLINE): Update value.
47960         (ERRNO_UNCHANGED): Likewise.
47961         (ERRNO_EDOM): Likewise.
47962         (ERRNO_ERANGE): Likewise.
47963         (IGNORE_RESULT): Likewise.
47964         (check_float_internal): Check signs of NaN results if
47965         TEST_NAN_SIGN used.
47966         (check_complex): Pass TEST_NAN_SIGN flag through to second
47967         check_float_internal call.
47968         (copysign_test_data): Add tests with quiet NaNs as second
47969         argument.  Use TEST_NAN_SIGN.
47970         (fabs_test_data): Add test of negative quiet NaN argument.  Use
47971         TEST_NAN_SIGN.
47972         (signbit_test_data): Add tests of quiet NaN argument.
47973         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
47974
47975         * math/gen-libm-test.pl (show_exceptions): Take extra argument
47976         $ignore_result.
47977         (parse_args): Handle function results specified as IGNORE.
47978         * math/libm-test.inc (IGNORE_RESULT): New macro.
47979         (check_float_internal): Do not check numerical result if flag
47980         IGNORE_RESULT set.
47981         (check_complex): Pass through IGNORE_RESULT to second
47982         check_float_internal call.
47983         (check_int): Do not check numerical result if flag IGNORE_RESULT
47984         set.
47985         (check_long): Likewise.
47986         (check_bool): Likewise.
47987         (check_longlong): Likewise.
47988         (lrint_test_data): Add tests of infinite and NaN arguments.
47989         (lrint_tonearest_test_data): Likewise.
47990         (lrint_towardzero_test_data): Likewise.
47991         (lrint_downward_test_data): Likewise.
47992         (lrint_upward_test_data): Likewise.
47993         (llrint_test_data): Likewise.
47994         (llrint_tonearest_test_data): Likewise.
47995         (llrint_towardzero_test_data): Likewise.
47996         (llrint_downward_test_data): Likewise.
47997         (llrint_upward_test_data): Likewise.
47998         (lround_test_data): Likewise.
47999         (llround_test_data): Likewise.
48000
48001         * math/libm-test.inc (NO_TEST_INLINE): New macro.
48002         (ERRNO_UNCHANGED): Update value.
48003         (ERRNO_EDOM): Likewise.
48004         (ERRNO_ERANGE): Likewise.
48005         (NO_TEST_INLINE_FLOAT): New macro.
48006         (NO_TEST_INLINE_DOUBLE): Likewise.
48007         (enable_test): New function.
48008         (RUN_TEST_f_f): Check enable_test before running test.
48009         (RUN_TEST_2_f): Likewise.
48010         (RUN_TEST_fff_f): Likewise.
48011         (RUN_TEST_c_f): Likewise.
48012         (RUN_TEST_f_f1): Likewise.
48013         (RUN_TEST_fF_f1): Likewise.
48014         (RUN_TEST_fI_f1): Likewise.
48015         (RUN_TEST_ffI_f1): Likewise.
48016         (RUN_TEST_c_c): Likewise.
48017         (RUN_TEST_cc_c): Likewise.
48018         (RUN_TEST_f_i): Likewise.
48019         (RUN_TEST_f_i_tg): Likewise.
48020         (RUN_TEST_ff_i_tg): Likewise.
48021         (RUN_TEST_f_b): Likewise.
48022         (RUN_TEST_f_b_tg): Likewise.
48023         (RUN_TEST_f_l): Likewise.
48024         (RUN_TEST_f_L): Likewise.
48025         (RUN_TEST_fFF_11): Likewise.
48026         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
48027         conditionals.
48028         (cosh_test_data): Likewise.
48029         (exp_test_data): Likewise.
48030         (expm1_test_data): Likewise.
48031         (hypot_test_data): Likewise.
48032         (pow_test_data): Likewise.
48033         (sinh_test_data): Likewise.
48034         (tanh_test_data): Likewise.
48035         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
48036         flags argument.
48037
48038         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
48039         tests with quiet NaN input and output.
48040         (acosh_test_data): Likewise.
48041         (asin_test_data): Likewise.
48042         (asinh_test_data): Likewise.
48043         (atan_test_data): Likewise.
48044         (atanh_test_data): Likewise.
48045         (atan2_test_data): Likewise.
48046         (cbrt_test_data): Likewise.
48047         (cos_test_data): Likewise.
48048         (cosh_test_data): Likewise.
48049         (erf_test_data): Likewise.
48050         (erfc_test_data): Likewise.
48051         (exp_test_data): Likewise.
48052         (exp10_test_data): Likewise.
48053         (exp2_test_data): Likewise.
48054         (expm1_test_data): Likewise.
48055         (hypot_test_data): Likewise.
48056         (j0_test_data): Likewise.
48057         (j1_test_data): Likewise.
48058         (jn_test_data): Likewise.
48059         (lgamma_test_data): Likewise.
48060         (log_test_data): Likewise.
48061         (log10_test_data): Likewise.
48062         (log1p_test_data): Likewise.
48063         (log2_test_data): Likewise.
48064         (pow_test_data): Likewise.
48065         (scalb_test_data): Likewise.
48066         (sin_test_data): Likewise.
48067         (sincos_test_data): Likewise.
48068         (sinh_test_data): Likewise.
48069         (tan_test_data): Likewise.
48070         (tanh_test_data): Likewise.
48071         (tgamma_test_data): Likewise.
48072         (y0_test_data): Likewise.
48073         (y1_test_data): Likewise.
48074         (yn_test_data): Likewise.
48075
48076         [BZ #16167]
48077         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
48078         argument being NaN and avoid computations with second argument in
48079         that case.
48080         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
48081         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
48082         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
48083
48084 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
48085
48086         * locale/iso-639.def: Add Chitwani Tharu (the).
48087
48088 2013-11-14  Andreas Schwab  <schwab@suse.de>
48089
48090         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
48091         word instead of empty string.
48092
48093 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48094
48095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48096         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
48097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48098         (__fe_nomask_env): Likewise.
48099
48100 2013-11-13  Steve Ellcey  <sellcey@mips.com>
48101
48102         * benchtests/bench-timing.h: Include time.h.
48103
48104 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
48105
48106         [BZ #15997]
48107         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
48108         to 3.4.0 for x32.
48109         * sysdeps/unix/sysv/linux/configure: Regenerated.
48110
48111 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
48112
48113         [BZ #16151]
48114         * stdlib/strtod_l.c (round_and_return): Do not consider
48115         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
48116         exponent one less than half the least subnormal exponent.
48117         * stdlib/test-strtod-round-data: Add more tests.
48118         * stdlib/tst-strtod-round.c (tests): Regenerated.
48119
48120 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48121
48122         [BZ #14143]
48123         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
48124         (__fe_mask_env): Likewise.
48125         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
48126         libm_hidden_proto and add function prototype.
48127         (__fe_mask_env): Add function prototype.
48128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48129         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
48130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
48131         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
48132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48133         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
48134
48135 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48136
48137         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
48138         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
48139
48140 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48141
48142         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
48143         of htab_find_slot().
48144
48145 2013-11-11  David S. Miller  <davem@davemloft.net>
48146
48147         [BZ #16150]
48148         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
48149         symbol in the non-vis3 case in static builds.
48150         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
48151         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
48152         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
48153         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
48154
48155 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
48156
48157         [BZ #387]
48158         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
48159         it is empty.
48160
48161 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48162
48163         * benchtests/Makefile: Add bench-strtod.
48164         * benchtests/bench-strtod.c: New file: strtod benchtest
48165
48166 2013-11-11  Andreas Schwab  <schwab@suse.de>
48167
48168         [BZ #16153]
48169         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
48170         terminating NUL in key length.
48171
48172 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48173
48174         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
48175         Add artificial ODP entry for vDSO symbol for PPC64.
48176         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
48177         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
48178
48179 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48180
48181         [BZ #15374]
48182         * nss/getent.c (services_keys): Recognize services starting with digit.
48183
48184 2013-11-06  David S. Miller  <davem@davemloft.net>
48185
48186         [BZ #15985]
48187         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
48188         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
48189
48190 2013-11-06  Will Newton  <will.newton@linaro.org>
48191
48192         * manual/memory.texi (Malloc Examples): Remove register
48193         keyword from examples.
48194
48195 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
48196
48197         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
48198
48199 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
48200
48201         [BZ #6981]
48202         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
48203         depending on [__GCC_IEC_559 > 0].
48204         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
48205         depending on [__GCC_IEC_559_COMPLEX > 0].
48206
48207 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
48208
48209         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
48210         to iso-639.def.
48211
48212 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
48213
48214         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
48215
48216 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
48217
48218         [BZ #16112]
48219         * malloc/malloc (malloc_info): Do not handle first bin as
48220         special case.
48221
48222 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
48223
48224         * locale/iso-639.def: Add Central Nahuatl (nhn).
48225
48226 2013-11-01  Bruno Haible  <bruno@clisp.org>
48227
48228         [BZ #7003]
48229         * manual/math.texi (BSD Random): Specify range upper bound as
48230         in POSIX.
48231
48232 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
48233
48234         * locale/iso-639.def: Add Meadow Mari (mhr).
48235
48236 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
48237
48238         [BZ #14752], [BZ #15763]
48239         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
48240         Validate name.
48241         * rt/tst_shm.c: Add test for escaping directory.
48242
48243 2013-10-31  Andreas Schwab  <schwab@suse.de>
48244
48245         [BZ #15917]
48246         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
48247         followed by 'x' as part of digit sequence.
48248         * stdio-common/tst-sscanf.c (double_tests2): New tests.
48249
48250 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
48251
48252         [BZ #16037]
48253         * configure.ac: allow GNU Make 4.0 and greater.
48254         * configure: Regenerated.
48255
48256 2013-10-30  Will Newton  <will.newton@linaro.org>
48257
48258         [BZ #16038]
48259         * malloc/hooks.c (memalign_check): Limit alignment to the
48260         maximum representable power of two.
48261         * malloc/malloc.c (__libc_memalign): Likewise.
48262         * malloc/tst-memalign.c (do_test): Add test for very
48263         large alignment values.
48264         * malloc/tst-posix_memalign.c (do_test): Likewise.
48265
48266 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48267
48268         [BZ #11087]
48269         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
48270         (munmap_chunk): Likewise.
48271         (mremap_chunk): Likewise.
48272
48273 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48274
48275         [BZ #15799]
48276         * stdlib/div.c (div): Remove obsolete code.
48277         * stdlib/ldiv.c (ldiv): Likewise.
48278         * stdlib/lldiv.c (lldiv): Likewise.
48279
48280 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48281
48282         [BZ #16071]
48283         * nss/nss_files/files-XXX.c (get_contents_ret): New
48284         enumerator.
48285         (get_contents): New function.
48286         (internal_getent): Use it.  Expand size of LINEBUFLEN.
48287
48288 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
48289
48290         * configure.in: Moved to ...
48291         * configure.ac: ... here. Change reference to configure.in
48292         to configure.ac.
48293         * sysdeps/arm/preconfigure.ac: ... here.
48294         configure.in to configure.ac.
48295         * sysdeps/gnu/configure.in: Moved to ...
48296         * sysdeps/gnu/configure.ac: ... here.
48297         * sysdeps/i386/configure.in: Moved to ...
48298         * sysdeps/i386/configure.ac: ... here.
48299         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
48300         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
48301         * sysdeps/mach/configure.in: Moved to ...
48302         * sysdeps/mach/configure.ac: ... here.
48303         * sysdeps/mach/hurd/configure.in: Moved to ...
48304         * sysdeps/mach/hurd/configure.ac: ... here.
48305         * sysdeps/powerpc/configure.in: Moved to ...
48306         * sysdeps/powerpc/configure.ac: ... here.
48307         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
48308         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
48309         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
48310         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
48311         * sysdeps/s390/s390-32/configure.in: Moved to ...
48312         * sysdeps/s390/s390-32/configure.ac: ... here.
48313         * sysdeps/s390/s390-64/configure.in: Moved to ...
48314         * sysdeps/s390/s390-64/configure.ac: ... here.
48315         * sysdeps/sh/configure.in: Moved to ...
48316         * sysdeps/sh/configure.ac: ... here.
48317         * sysdeps/sparc/configure.in: Moved to ...
48318         * sysdeps/sparc/configure.ac: ... here.
48319         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
48320         * sysdeps/unix/sysv/linux/configure.ac: ... here.
48321         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
48322         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
48323         * sysdeps/x86_64/configure.in: Moved to ...
48324         * sysdeps/x86_64/configure.ac: ... here.
48325         * sysdeps/x86_64/preconfigure.in: Moved to ...
48326         * sysdeps/x86_64/preconfigure.ac: ... here.
48327         * aclocal.m4: Change reference to configure.in to configure.ac.
48328         * config.h.in: Likewise.
48329         * manual/install.texi: Likewise.
48330         * manual/maint.texi: Likewise.
48331         * Makefile: Likewise.
48332         * malloc/Makefile: Likewise.
48333         * nscd/Makefile: Likewise.
48334         * Makeconfig: Change reference to configure.in and
48335         preconfigure.in to configure.ac and preconfigure.ac
48336         respectively.
48337         * INSTALL: Regenerated.
48338         * configure: Likewise.
48339         * sysdeps/gnu/configure: Likewise.
48340         * sysdeps/i386/configure: Likewise.
48341         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
48342         * sysdeps/mach/configure: Likewise.
48343         * sysdeps/mach/hurd/configure: Likewise.
48344         * sysdeps/powerpc/configure: Likewise.
48345         * sysdeps/powerpc/powerpc32/configure: Likewise.
48346         * sysdeps/powerpc/powerpc64/configure: Likewise.
48347         * sysdeps/s390/s390-32/configure: Likewise.
48348         * sysdeps/s390/s390-64/configure: Likewise.
48349         * sysdeps/sh/configure: Likewise.
48350         * sysdeps/sparc/configure: Likewise.
48351         * sysdeps/unix/sysv/linux/configure: Likewise.
48352         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
48353         * sysdeps/x86_64/configure: Likewise.
48354         * sysdeps/x86_64/preconfigure: Likewise.
48355
48356 2013-10-29  Andreas Schwab  <schwab@suse.de>
48357
48358         * stdio-common/Makefile (tst-swscanf-ENV): Define.
48359
48360 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
48361
48362         * benchtests/pow-inputs: Add new inputs.
48363
48364         * benchtests/exp-inputs: Add new inputs.
48365
48366         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
48367         conditional check for return value.
48368         (__cos32): Likewise.
48369
48370 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48371
48372         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
48373         to provide a boost for large inputs with word alignment.
48374         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
48375         implementation based on optimized PPC64 strcpy.
48376         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
48377         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
48378         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
48379         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
48380
48381 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48382
48383         [BZ #2801]
48384         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
48385
48386 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48387
48388         [BZ #14876]
48389         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
48390         * time/tst-strptime.c (day_tests): Add testcase.
48391
48392 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48393
48394         [BZ #14029]
48395         * manual/pattern.texi: Acknowledge that fnmatch can fail.
48396
48397 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
48398
48399         [BZ #16074]
48400         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
48401         MAP_FAILED on error.
48402
48403 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
48404
48405         [BZ #16072]
48406         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
48407         heap for large requests.
48408
48409 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
48410
48411         [BZ #9954]
48412         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
48413         result if the result has no associated interface.
48414         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
48415         interface for all 127.X.Y.Z addresses.
48416
48417 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
48418
48419         * locale/iso-639.def: Add Ligurian (lij)
48420
48421 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
48422
48423         [BZ #15825]
48424         * sunrpc/rpc_main.c: Document rpcgen -5.
48425
48426 2013-10-19  Michael Stahl  <mstahl@redhat.com>
48427
48428         * elf/rtld.c (do_preload): Print the reason why preloading failed.
48429
48430 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48431
48432         [BZ #10278]
48433         * posix/glob.c: Match only directories when trailing slash is present.
48434         * posix/tst-gnuglob.c (my_opendir): Do not open files.
48435         (main): Add testcase.
48436
48437 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48438
48439         [BZ #15670]
48440         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
48441
48442 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
48443
48444         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
48445         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
48446         AUTH_DES and cindex for FIPS 140-2.
48447         (DES Encryption): Add cindex FIPS 46-3.
48448
48449         * locale/locarchive.h (struct locarhandle): Add fname.
48450         * locale/programs/localedef.c (main): Pass ARGV[remaining]
48451         if an optional argument was specified to --list-archive,
48452         otherwise NULL.
48453         * locale/programs/locarchive.c (show_archive_content): Take new
48454         argument fname and pass it via ah.fname to open_archive.
48455         * locale/programs/localedef.h: Update decl.
48456         (open_archive): If AH->fname is non-null, open that file
48457         rather than the default file name, and don't ignore ENOENT.
48458         (create_archive): Set AH.fname to NULL.
48459         (delete_locales_from_archive): Likewise.
48460         (add_locales_to_archive): Likewise.
48461         * locale/programs/locfile.c (write_all_categories): Likewise.
48462
48463 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
48464             Aldy Hernandez  <aldyh@redhat.com>
48465
48466         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
48467         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
48468         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
48469         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
48470         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
48471         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
48472         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
48473         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
48474         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
48475         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
48476         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
48477         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
48478         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
48479         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
48480         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
48481         Likewise.
48482         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
48483         Likewise.
48484         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
48485         Likewise.
48486         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
48487         Likewise.
48488         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
48489         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
48490         Likewise.
48491         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
48492         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
48493         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
48494         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
48495         Likewise.
48496         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
48497         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
48498         * sysdeps/powerpc/preconfigure: Likewise.
48499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
48500         Likewise.
48501         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
48502         Replace contents of file by #include of <fenv_libc.h>.
48503         * sysdeps/powerpc/soft-fp/sfp-machine.h
48504         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
48505         and <sys/prctl.h>.
48506         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
48507         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
48508         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
48509         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
48510         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
48511         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
48512         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
48513         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
48514         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
48515         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
48516         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
48517         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
48518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
48519         Allow copysignl PLT reference to be missing.
48520
48521 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
48522             Joseph Myers  <joseph@codesourcery.com
48523
48524         [BZ #15948]
48525         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
48526         single character.
48527         (add_to_tablewc): Assert sequence of wide characters is nonempty.
48528
48529 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
48530
48531         * elf/tst-tls-dlinfo.c: Don't include tls.h.
48532         * elf/tst-tls1.c: Likewise.
48533         * elf/tst-tls10.h: Likewise.
48534         * elf/tst-tls14.c: Likewise.
48535         * elf/tst-tls2.c: Likewise.
48536         * elf/tst-tls3.c: Likewise.
48537         * elf/tst-tls4.c: Likewise.
48538         * elf/tst-tls5.c: Likewise.
48539         * elf/tst-tls6.c: Likewise.
48540         * elf/tst-tls7.c: Likewise.
48541         * elf/tst-tls8.c: Likewise.
48542         * elf/tst-tls9.c: Likewise.
48543         * elf/tst-tlsmod1.c: Likewise.
48544         * elf/tst-tlsmod13.c: Likewise.
48545         * elf/tst-tlsmod13a.c: Likewise.
48546         * elf/tst-tlsmod14a.c: Likewise.
48547         * elf/tst-tlsmod16a.c: Likewise.
48548         * elf/tst-tlsmod16b.c: Likewise.
48549         * elf/tst-tlsmod2.c: Likewise.
48550         * elf/tst-tlsmod3.c: Likewise.
48551         * elf/tst-tlsmod4.c: Likewise.
48552         * elf/tst-tlsmod5.c: Likewise.
48553         * elf/tst-tlsmod6.c: Likewise.
48554
48555 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
48556
48557         [BZ #12486]
48558         * malloc/malloc.c: remove checks for statistics.
48559
48560 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48561
48562         [BZ #15277]
48563         * inet/inet_net.c (inet_network): Detect additional invalid strings.
48564         * inet/tst-network.c: Add testcase.
48565
48566 2013-10-17  Andreas Schwab  <schwab@suse.de>
48567
48568         [BZ #15218]
48569         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
48570         to determine canonical name.
48571
48572 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48573
48574         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
48575         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
48576         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48577         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
48578         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48579         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
48580         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
48581         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
48582         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
48583         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
48584         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
48585         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
48586         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
48587         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
48588         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
48589         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
48590         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48591         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
48592         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
48593         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
48594         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
48595         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48596         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
48597         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
48598         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
48599         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
48600         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
48601         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
48602         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
48603         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
48604         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
48605         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
48606         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
48607         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
48608         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
48609         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
48610         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
48611         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
48612         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
48613         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
48614         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
48615         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
48616         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
48617         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
48618         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
48619         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
48620         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
48621         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
48622         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
48623         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
48624         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
48625         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
48626         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
48627         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
48628         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
48629         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
48630         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
48631         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
48632
48633 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
48634
48635         [BZ #16041]
48636         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
48637         make result into a quiet NaN.
48638
48639 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
48640
48641         * soft-fp/adddf3.c: Fix horizontal whitespace.
48642         * soft-fp/addsf3.c: Likewise.
48643         * soft-fp/addtf3.c: Likewise.
48644         * soft-fp/divdf3.c: Likewise.
48645         * soft-fp/divsf3.c: Likewise.
48646         * soft-fp/divtf3.c: Likewise.
48647         * soft-fp/double.h: Likewise.
48648         * soft-fp/eqdf2.c: Likewise.
48649         * soft-fp/eqsf2.c: Likewise.
48650         * soft-fp/eqtf2.c: Likewise.
48651         * soft-fp/extenddftf2.c: Likewise.
48652         * soft-fp/extended.h: Likewise.
48653         * soft-fp/extendsfdf2.c: Likewise.
48654         * soft-fp/extendsftf2.c: Likewise.
48655         * soft-fp/extendxftf2.c: Likewise.
48656         * soft-fp/fixdfdi.c: Likewise.
48657         * soft-fp/fixdfsi.c: Likewise.
48658         * soft-fp/fixdfti.c: Likewise.
48659         * soft-fp/fixsfdi.c: Likewise.
48660         * soft-fp/fixsfsi.c: Likewise.
48661         * soft-fp/fixsfti.c: Likewise.
48662         * soft-fp/fixtfdi.c: Likewise.
48663         * soft-fp/fixtfsi.c: Likewise.
48664         * soft-fp/fixtfti.c: Likewise.
48665         * soft-fp/fixunsdfdi.c: Likewise.
48666         * soft-fp/fixunsdfsi.c: Likewise.
48667         * soft-fp/fixunsdfti.c: Likewise.
48668         * soft-fp/fixunssfdi.c: Likewise.
48669         * soft-fp/fixunssfsi.c: Likewise.
48670         * soft-fp/fixunssfti.c: Likewise.
48671         * soft-fp/fixunstfdi.c: Likewise.
48672         * soft-fp/fixunstfsi.c: Likewise.
48673         * soft-fp/fixunstfti.c: Likewise.
48674         * soft-fp/floatdidf.c: Likewise.
48675         * soft-fp/floatdisf.c: Likewise.
48676         * soft-fp/floatditf.c: Likewise.
48677         * soft-fp/floatsidf.c: Likewise.
48678         * soft-fp/floatsisf.c: Likewise.
48679         * soft-fp/floatsitf.c: Likewise.
48680         * soft-fp/floattidf.c: Likewise.
48681         * soft-fp/floattisf.c: Likewise.
48682         * soft-fp/floattitf.c: Likewise.
48683         * soft-fp/floatundidf.c: Likewise.
48684         * soft-fp/floatundisf.c: Likewise.
48685         * soft-fp/floatunditf.c: Likewise.
48686         * soft-fp/floatunsidf.c: Likewise.
48687         * soft-fp/floatunsisf.c: Likewise.
48688         * soft-fp/floatunsitf.c: Likewise.
48689         * soft-fp/floatuntidf.c: Likewise.
48690         * soft-fp/floatuntisf.c: Likewise.
48691         * soft-fp/floatuntitf.c: Likewise.
48692         * soft-fp/fmadf4.c: Likewise.
48693         * soft-fp/fmasf4.c: Likewise.
48694         * soft-fp/fmatf4.c: Likewise.
48695         * soft-fp/gedf2.c: Likewise.
48696         * soft-fp/gesf2.c: Likewise.
48697         * soft-fp/getf2.c: Likewise.
48698         * soft-fp/ledf2.c: Likewise.
48699         * soft-fp/lesf2.c: Likewise.
48700         * soft-fp/letf2.c: Likewise.
48701         * soft-fp/muldf3.c: Likewise.
48702         * soft-fp/mulsf3.c: Likewise.
48703         * soft-fp/multf3.c: Likewise.
48704         * soft-fp/negdf2.c: Likewise.
48705         * soft-fp/negsf2.c: Likewise.
48706         * soft-fp/negtf2.c: Likewise.
48707         * soft-fp/op-1.h: Likewise.
48708         * soft-fp/op-2.h: Likewise.
48709         * soft-fp/op-4.h: Likewise.
48710         * soft-fp/op-8.h: Likewise.
48711         * soft-fp/op-common.h: Likewise.
48712         * soft-fp/quad.h: Likewise.
48713         * soft-fp/single.h: Likewise.
48714         * soft-fp/soft-fp.h: Likewise.
48715         * soft-fp/sqrtdf2.c: Likewise.
48716         * soft-fp/sqrtsf2.c: Likewise.
48717         * soft-fp/sqrttf2.c: Likewise.
48718         * soft-fp/subdf3.c: Likewise.
48719         * soft-fp/subsf3.c: Likewise.
48720         * soft-fp/subtf3.c: Likewise.
48721         * soft-fp/truncdfsf2.c: Likewise.
48722         * soft-fp/trunctfdf2.c: Likewise.
48723         * soft-fp/trunctfsf2.c: Likewise.
48724         * soft-fp/trunctfxf2.c: Likewise.
48725         * soft-fp/unorddf2.c: Likewise.
48726         * soft-fp/unordsf2.c: Likewise.
48727         * soft-fp/unordtf2.c: Likewise.
48728
48729 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
48730
48731         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
48732         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
48733
48734 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
48735
48736         * elf/dl-libc.c: Clear initfini list after freeing.
48737
48738 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
48739
48740         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
48741         * soft-fp/addsf3.c: Likewise.
48742         * soft-fp/addtf3.c: Likewise.
48743         * soft-fp/divdf3.c: Likewise.
48744         * soft-fp/divsf3.c: Likewise.
48745         * soft-fp/divtf3.c: Likewise.
48746         * soft-fp/double.h: Likewise.
48747         * soft-fp/eqdf2.c: Likewise.
48748         * soft-fp/eqsf2.c: Likewise.
48749         * soft-fp/eqtf2.c: Likewise.
48750         * soft-fp/extenddftf2.c: Likewise.
48751         * soft-fp/extended.h: Likewise.
48752         * soft-fp/extendsfdf2.c: Likewise.
48753         * soft-fp/extendsftf2.c: Likewise.
48754         * soft-fp/extendxftf2.c: Likewise.
48755         * soft-fp/fixdfdi.c: Likewise.
48756         * soft-fp/fixdfsi.c: Likewise.
48757         * soft-fp/fixdfti.c: Likewise.
48758         * soft-fp/fixsfdi.c: Likewise.
48759         * soft-fp/fixsfsi.c: Likewise.
48760         * soft-fp/fixsfti.c: Likewise.
48761         * soft-fp/fixtfdi.c: Likewise.
48762         * soft-fp/fixtfsi.c: Likewise.
48763         * soft-fp/fixtfti.c: Likewise.
48764         * soft-fp/fixunsdfdi.c: Likewise.
48765         * soft-fp/fixunsdfsi.c: Likewise.
48766         * soft-fp/fixunsdfti.c: Likewise.
48767         * soft-fp/fixunssfdi.c: Likewise.
48768         * soft-fp/fixunssfsi.c: Likewise.
48769         * soft-fp/fixunssfti.c: Likewise.
48770         * soft-fp/fixunstfdi.c: Likewise.
48771         * soft-fp/fixunstfsi.c: Likewise.
48772         * soft-fp/fixunstfti.c: Likewise.
48773         * soft-fp/floatdidf.c: Likewise.
48774         * soft-fp/floatdisf.c: Likewise.
48775         * soft-fp/floatditf.c: Likewise.
48776         * soft-fp/floatsidf.c: Likewise.
48777         * soft-fp/floatsisf.c: Likewise.
48778         * soft-fp/floatsitf.c: Likewise.
48779         * soft-fp/floattidf.c: Likewise.
48780         * soft-fp/floattisf.c: Likewise.
48781         * soft-fp/floattitf.c: Likewise.
48782         * soft-fp/floatundidf.c: Likewise.
48783         * soft-fp/floatundisf.c: Likewise.
48784         * soft-fp/floatunsidf.c: Likewise.
48785         * soft-fp/floatunsisf.c: Likewise.
48786         * soft-fp/floatuntidf.c: Likewise.
48787         * soft-fp/floatuntisf.c: Likewise.
48788         * soft-fp/floatuntitf.c: Likewise.
48789         * soft-fp/fmadf4.c: Likewise.
48790         * soft-fp/fmasf4.c: Likewise.
48791         * soft-fp/fmatf4.c: Likewise.
48792         * soft-fp/gedf2.c: Likewise.
48793         * soft-fp/gesf2.c: Likewise.
48794         * soft-fp/getf2.c: Likewise.
48795         * soft-fp/ledf2.c: Likewise.
48796         * soft-fp/lesf2.c: Likewise.
48797         * soft-fp/letf2.c: Likewise.
48798         * soft-fp/muldf3.c: Likewise.
48799         * soft-fp/mulsf3.c: Likewise.
48800         * soft-fp/multf3.c: Likewise.
48801         * soft-fp/negdf2.c: Likewise.
48802         * soft-fp/negsf2.c: Likewise.
48803         * soft-fp/negtf2.c: Likewise.
48804         * soft-fp/op-1.h: Likewise.
48805         * soft-fp/op-2.h: Likewise.
48806         * soft-fp/op-4.h: Likewise.
48807         * soft-fp/op-8.h: Likewise.
48808         * soft-fp/op-common.h: Likewise.
48809         * soft-fp/quad.h: Likewise.
48810         * soft-fp/single.h: Likewise.
48811         * soft-fp/soft-fp.h: Likewise.
48812         * soft-fp/sqrtdf2.c: Likewise.
48813         * soft-fp/sqrtsf2.c: Likewise.
48814         * soft-fp/sqrttf2.c: Likewise.
48815         * soft-fp/subdf3.c: Likewise.
48816         * soft-fp/subsf3.c: Likewise.
48817         * soft-fp/subtf3.c: Likewise.
48818         * soft-fp/truncdfsf2.c: Likewise.
48819         * soft-fp/trunctfdf2.c: Likewise.
48820         * soft-fp/trunctfsf2.c: Likewise.
48821         * soft-fp/trunctfxf2.c: Likewise.
48822         * soft-fp/unorddf2.c: Likewise.
48823         * soft-fp/unordsf2.c: Likewise.
48824         * soft-fp/unordtf2.c: Likewise.
48825
48826 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
48827
48828         [BZ #15672]
48829         * misc/error.c (error_tail): Fix possible buffer overflow.
48830
48831 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
48832
48833         [BZ #13028]
48834         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
48835         address.
48836
48837 2013-10-14  P. J. McDermott  <pj@pehjota.net>
48838
48839         [BZ #832]
48840         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
48841         testing pipefail option.
48842
48843 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
48844
48845         * soft-fp/double.h: Indent preprocessor directives inside #if.
48846         * soft-fp/extended.h: Likewise.
48847         * soft-fp/op-2.h: Likewise.
48848         * soft-fp/op-4.h: Likewise.
48849         * soft-fp/op-common.h: Likewise.
48850         * soft-fp/quad.h: Likewise.
48851         * soft-fp/single.h: Likewise.
48852         * soft-fp/soft-fp.h: Likewise.
48853
48854 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
48855
48856         * iconv/iconv_prog.c: Fix typos.
48857         * stdio-common/psiginfo-data.h: Likewise.
48858
48859 2013-10-12   Reuben Thomas <rrt@sc3d.org>
48860
48861         [BZ #15764]
48862         * locale/setlocale.c: Fix typo.
48863
48864 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
48865
48866         [BZ #16036]
48867         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
48868         signaling NaN arguments.
48869         * soft-fp/unordsf2.c (__unordsf2): Likewise.
48870         * soft-fp/unordtf2.c (__unordtf2): Likewise.
48871
48872         [BZ #14910]
48873         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
48874         unordered operands.
48875         * soft-fp/gesf2.c (__gesf2): Likewise.
48876         * soft-fp/getf2.c (__getf2): Likewise.
48877         * soft-fp/ledf2.c (__ledf2): Likewise.
48878         * soft-fp/lesf2.c (__lesf2): Likewise.
48879         * soft-fp/letf2.c (__letf2): Likewise.
48880
48881         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
48882         * soft-fp/eqsf2.c (__eqsf2): Likewise.
48883         * soft-fp/eqtf2.c (__eqtf2): Likewise.
48884         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
48885         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
48886         * soft-fp/fixdfti.c (__fixdfti): Likewise.
48887         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
48888         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
48889         * soft-fp/fixsfti.c (__fixsfti): Likewise.
48890         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
48891         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
48892         * soft-fp/fixtfti.c (__fixtfti): Likewise.
48893         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
48894         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
48895         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
48896         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
48897         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
48898         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
48899         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
48900         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
48901         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
48902         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
48903         * soft-fp/floatdisf.c (__floatdisf): Likewise.
48904         * soft-fp/floatsisf.c (__floatsisf): Likewise.
48905         * soft-fp/floattidf.c (__floattidf): Likewise.
48906         * soft-fp/floattisf.c (__floattisf): Likewise.
48907         * soft-fp/floattitf.c (__floattitf): Likewise.
48908         * soft-fp/floatundidf.c (__floatundidf): Likewise.
48909         * soft-fp/floatundisf.c (__floatundisf): Likewise.
48910         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
48911         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
48912         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
48913         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
48914         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
48915         * soft-fp/gesf2.c (__gesf2): Likewise.
48916         * soft-fp/getf2.c (__getf2): Likewise.
48917         * soft-fp/ledf2.c (__ledf2): Likewise.
48918         * soft-fp/lesf2.c (__lesf2): Likewise.
48919         * soft-fp/letf2.c (__letf2): Likewise.
48920
48921         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
48922         Undefine and redefine.
48923         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
48924         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
48925         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
48926         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
48927         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
48928         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
48929         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
48930         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
48931         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
48932         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
48933         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
48934         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
48935         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
48936         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
48937         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
48938
48939         [BZ #16032]
48940         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
48941         without decrementing exponent if mantissa >= that for the
48942         denominator, not >.
48943         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
48944         denominator, not >.  Decrement exponent in < case instead of
48945         incrementing in >= case.
48946         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
48947         without decrementing exponent if mantissa >= that for the
48948         denominator, not >.
48949
48950         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
48951         computing saturated result for unsigned overflow.
48952
48953 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48954             Jeff Law  <law@redhat.com>
48955
48956         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
48957         (atan2Mp): Add systemtap probe marker.
48958         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
48959         (__ieee754_log): Add systemtap probe marker.
48960         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
48961         (atanMp): Add systemtap probe marker.
48962         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
48963         (tanMp): Add systemtap probe marker.
48964         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
48965         (__slowexp): Add systemtap probe marker.
48966         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
48967         (__slowpow): Add systemtap probe marker.
48968         * manual/probes.texi: Document probes.
48969
48970 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
48971
48972         [BZ #15362]
48973         * libio/fileops.c (_IO_new_file_write): Return count of bytes
48974         written.
48975         (_IO_new_file_xsputn): Don't return EOF if nothing has been
48976         written.
48977         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
48978         written to buffer but not flushed.
48979         * libio/iofwrite_u.c:  Likewise.
48980         * libio/iopadn.c:  Return bytes returned even if EOF was
48981         encountered.
48982         * libio/iowpadn.c:  Likewise.
48983         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
48984         if _IO_padn does not write the whole buffer.
48985         [!COMPILE_WPRINTF] (PAD): Likewise.
48986
48987 2013-10-10  David S. Miller  <davem@davemloft.net>
48988
48989         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
48990         directory block.
48991
48992 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
48993
48994         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
48995         instead of FSF address.
48996         * soft-fp/fixdfti.c: Likewise.
48997         * soft-fp/fixsfti.c: Likewise.
48998         * soft-fp/fixtfti.c: Likewise.
48999         * soft-fp/fixunsdfti.c: Likewise.
49000         * soft-fp/fixunssfti.c: Likewise.
49001         * soft-fp/fixunstfti.c: Likewise.
49002         * soft-fp/floattidf.c: Likewise.
49003         * soft-fp/floattisf.c: Likewise.
49004         * soft-fp/floattitf.c: Likewise.
49005         * soft-fp/floatuntidf.c: Likewise.
49006         * soft-fp/floatuntisf.c: Likewise.
49007         * soft-fp/floatuntitf.c: Likewise.
49008         * soft-fp/trunctfxf2.c: Likewise.
49009
49010         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
49011         * soft-fp/fixdfti.c: Likewise.
49012         * soft-fp/fixsfti.c: Likewise.
49013         * soft-fp/fixtfti.c: Likewise.
49014         * soft-fp/fixunsdfti.c: Likewise.
49015         * soft-fp/fixunssfti.c: Likewise.
49016         * soft-fp/fixunstfti.c: Likewise.
49017         * soft-fp/floattidf.c: Likewise.
49018         * soft-fp/floattisf.c: Likewise.
49019         * soft-fp/floattitf.c: Likewise.
49020         * soft-fp/floatuntidf.c: Likewise.
49021         * soft-fp/floatuntisf.c: Likewise.
49022         * soft-fp/floatuntitf.c: Likewise.
49023         * soft-fp/trunctfxf2.c: Likewise.
49024
49025 2013-10-10  David S. Miller  <davem@davemloft.net>
49026
49027         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49028
49029 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
49030
49031         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
49032         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
49033         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
49034         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
49035         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
49036         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
49037         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
49038
49039         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
49040         for NaNs before doing comparisons on argument.
49041         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
49042         Likewise.
49043
49044 2013-10-10  Will Newton  <will.newton@linaro.org>
49045
49046         * malloc/hooks.c (memalign_check): Ensure the value of bytes
49047         passed to _int_memalign does not overflow.
49048
49049 2013-10-10  Torvald Riegel  <triegel@redhat.com>
49050
49051         * scripts/bench.pl: Add include-sources directive.
49052         * benchtests/README: Update documentation.
49053
49054 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49055
49056         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
49057         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
49058         instead of FP_INIT_ROUNDMODE.
49059         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
49060         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
49061
49062         [BZ #16034]
49063         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
49064         copy class of input value.
49065         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
49066         not handle exceptions.
49067         * soft-fp/negsf2.c (__negsf2): Likewise.
49068         * soft-fp/negtf2.c (__negtf2): Likewise.
49069         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
49070
49071 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
49072
49073         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
49074         semicolon.  From Linux kernel.
49075
49076 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
49077
49078         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
49079
49080 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
49081
49082         [BZ #156]
49083         * manual/socket.texi: Added statement about buffer
49084         for gethostbyname2_r.
49085
49086 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
49087
49088         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
49089         Use .p2align directive instead, throughout.
49090         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
49091         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
49092         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
49093         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
49094         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
49095         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
49096         * sysdeps/x86_64/strchr.S: Likewise.
49097         * sysdeps/x86_64/strrchr.S: Likewise.
49098
49099 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49100
49101         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
49102
49103         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
49104
49105         * sysdeps/generic/math_private.h (__mpsin1): Remove
49106         declaration.
49107         (__mpcos1): Likewise.
49108         (__mpsin): New argument __range_reduce.
49109         (__mpcos): Likewise.
49110         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
49111         (slow): Use __mpsin and __mpcos.
49112         (slow1): Likewise.
49113         (slow2): Likewise.
49114         (sloww): Likewise.
49115         (sloww1): Likewise.
49116         (sloww2): Likewise.
49117         (bsloww): Likewise.
49118         (bsloww1): Likewise.
49119         (bsloww2): Likewise.
49120         (cslow2): Likewise.
49121         (csloww): Likewise.
49122         (csloww1): Likewise.
49123         (csloww2): Likewise.
49124         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
49125         range_reduce.  Merge in __mpsin1.
49126         (__mpcos): Likewise.
49127         (__mpsin1): Remove.
49128         (__mpcos1): Likewise.
49129
49130 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
49131
49132         * locale/loadlocale.c (_nl_intern_locale_data): Use
49133         LOCFILE_ALIGNED_P.
49134         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
49135         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
49136         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
49137         obstack data is appropriately aligned.
49138         (obstack_int32_grow_fast): Likewise.
49139         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
49140         * locale/programs/locfile.c (add_locale_uint32): Likewise.
49141         (add_locale_uint32_array): Likewise.
49142
49143 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49144
49145         * benchtests/Makefile: Remove ARGLIST and RET variables.
49146         ($(objpfx)bench-%.c): Pass only function name to the script.
49147         * benchtests/README: Update documentation.
49148         * benchtests/acos-inputs: Add new directives.
49149         * benchtests/acosh-inputs: Likewise.
49150         * benchtests/asin-inputs: Likewise.
49151         * benchtests/asinh-inputs: Likewise.
49152         * benchtests/atan-inputs: Likewise.
49153         * benchtests/atanh-inputs: Likewise.
49154         * benchtests/cos-inputs: Likewise.
49155         * benchtests/cosh-inputs: Likewise.
49156         * benchtests/exp-inputs: Likewise.
49157         * benchtests/log-inputs: Likewise.
49158         * benchtests/pow-inputs: Likewise.
49159         * benchtests/rint-inputs: Likewise.
49160         * benchtests/sin-inputs: Likewise.
49161         * benchtests/sinh-inputs: Likewise.
49162         * benchtests/tan-inputs: Likewise.
49163         * benchtests/tanh-inputs: Likewise.
49164         * scripts/bench.pl: Add support for new directives.
49165
49166 2013-10-07  Alan Modra  <amodra@gmail.com>
49167
49168         * README: Fix careless merge.
49169
49170 2013-10-05  Alan Modra  <amodra@gmail.com>
49171
49172         * NEWS: Mention powerpc64le support and bugs fixed.
49173         * README: Both big-endian and little-endian powerpc64 supported.
49174
49175 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
49176
49177         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
49178         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
49179         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
49180         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
49181
49182 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
49183
49184         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
49185         match prototype.
49186
49187 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
49188
49189         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
49190         Move -mhard-float appending from
49191         ports/sysdeps/powerpc/powerpc32/Makefile.
49192         [$(with-fp) = yes] (ASFLAGS): Likewise.
49193         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
49194         * sysdeps/powerpc/nofpu: Move directory from
49195         ports/sysdeps/powerpc/nofpu.
49196         * sysdeps/powerpc/soft-fp: Move directory from
49197         ports/sysdeps/powerpc/soft-fp.
49198         * sysdeps/powerpc/powerpc32/405: Move directory from
49199         ports/sysdeps/powerpc/powerpc32/405.
49200         * sysdeps/powerpc/powerpc32/440: Move directory from
49201         ports/sysdeps/powerpc/powerpc32/440.
49202         * sysdeps/powerpc/powerpc32/464: Move directory from
49203         ports/sysdeps/powerpc/powerpc32/464.
49204         * sysdeps/powerpc/powerpc32/476: Move directory from
49205         ports/sysdeps/powerpc/powerpc32/476.
49206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
49207         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
49208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
49209         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
49210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
49211         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
49212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
49213         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
49214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
49215         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
49216         * README: Update for powerpc-*-linux-gnu software floating point
49217         support in libc.
49218
49219         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
49220         case to powerpc/powerpc32*.
49221         * sysdeps/unix/sysv/linux/configure: Regenerated.
49222
49223         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
49224         (_FPU_MASK_OM): Define as 0x04.
49225         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
49226         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
49227         0x00c10080.
49228         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
49229         0x0000003c.
49230         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
49231
49232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
49233         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49234         getcontext_e500.
49235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
49236         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49237         setcontext_e500.
49238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
49239         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
49240         and setcontext_e500.
49241
49242 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
49243
49244         * locale/iso-3166.def: Update iso-1366.def and related occurrences
49245
49246 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
49247
49248         * manual/threads.texi (Default Thread Attributes): Fix typo.
49249
49250 2013-10-04  Will Newton  <will.newton@linaro.org>
49251
49252         * malloc/Makefile: Add tst-memalign.
49253         * malloc/tst-memalign.c: New file.
49254
49255         * malloc/tst-posix_memalign.c: Add comments.
49256         (do_test): Add comments and call free on all potentially
49257         allocated pointers. Add space after cast.
49258
49259         * malloc/tst-pvalloc.c: Add comments.
49260         (do_test): Add comments and call free on all potentially
49261         allocated pointers. Remove duplicate check for NULL pointer.
49262         Add space after cast.
49263
49264         * malloc/tst-valloc.c: Add comments.
49265         (do_test): Add comments and call free on all potentially
49266         allocated pointers. Remove duplicate check for NULL pointer.
49267         Add space after cast.
49268
49269 2013-10-04  Alan Modra  <amodra@gmail.com>
49270
49271         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49272         Use stdint types in rather than __attribute__((mode())).
49273         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49274
49275 2013-10-04  Alan Modra  <amodra@gmail.com>
49276
49277         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49278         Correct handling of unaligned relocs for little-endian.
49279         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49280
49281 2013-10-04  Alan Modra  <amodra@gmail.com>
49282
49283         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
49284         * configure: Regenerate.
49285         * nptl/shlib-versions: Powerpc*le starts at 2.18.
49286         * shlib-versions: Likewise.
49287
49288 2013-10-04  Alan Modra  <amodra@gmail.com>
49289
49290         * string/tester.c (test_memrchr): Increment reported test cycle.
49291
49292 2013-10-04  Alan Modra  <amodra@gmail.com>
49293
49294         * string/test-memcpy.c (do_one_test): When reporting errors, print
49295         string address and don't overrun end of string.
49296
49297 2013-10-04  Alan Modra  <amodra@gmail.com>
49298
49299         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
49300         insrdi.  Make better use of reg selection to speed exit slightly.
49301         Schedule entry path a little better.  Remove useless "are we done"
49302         checks on entry to main loop.  Handle wrapping around zero address.
49303         Correct main loop count.  Handle single left-over word from main
49304         loop inline rather than by using loop_small.  Remove extra word
49305         case in loop_small caused by wrong loop count.  Add little-endian
49306         support.
49307         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
49308         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
49309         cache hint.
49310         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
49311         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
49312         support.  Avoid rlwimi.
49313         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
49314
49315 2013-10-04  Alan Modra  <amodra@gmail.com>
49316
49317         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
49318         insrdi.  Formatting.
49319         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
49320         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
49321         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
49322         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
49323         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
49324         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
49325
49326 2013-10-04  Alan Modra  <amodra@gmail.com>
49327
49328         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
49329         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
49330         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
49331         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
49332         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
49333         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
49334         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
49335         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
49336         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
49337         use of regs.  Use power7 mtocrf.  Tidy function tails.
49338
49339 2013-10-04  Alan Modra  <amodra@gmail.com>
49340
49341         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
49342         Formatting.  Consistently use rXXX register defines or rN defines.
49343         Use early exit labels that avoid restoring unused non-volatile regs.
49344         Make cr field use more consistent with rWORDn compares.  Rename
49345         regs used as shift registers for unaligned loop, using rN defines
49346         for short lifetime/multiple use regs.
49347         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
49348         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
49349         addi 1,1,64 to pop stack frame.  Simplify return value code.
49350         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
49351
49352 2013-10-04  Alan Modra  <amodra@gmail.com>
49353
49354         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
49355         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
49356         rather than rlwimi.
49357         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
49358         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
49359         little-endian support.  Correct typos.
49360         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
49361         rather than rlwimi.
49362         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
49363         in loop and entry code to keep "and." results.
49364         (strchr): Add little-endian support.  Comment.  Move cntlzd
49365         earlier in tail.
49366         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
49367
49368 2013-10-04  Alan Modra  <amodra@gmail.com>
49369
49370         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
49371         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
49372         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
49373         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
49374
49375 2013-10-04  Alan Modra  <amodra@gmail.com>
49376
49377         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
49378         (rTMP): Define as r11.
49379         (strcmp): Add little-endian support.  Optimise tail.
49380         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
49381         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
49382         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
49383         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
49384         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
49385         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
49386         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
49387
49388 2013-10-04  Alan Modra  <amodra@gmail.com>
49389
49390         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
49391         little-endian support.  Remove unnecessary "are we done" tests.
49392         Handle "s" wrapping around zero and extremely large "size".
49393         Correct main loop count.  Handle single left-over word from main
49394         loop inline rather than by using small_loop.  Correct comments.
49395         Delete "zero" tail, use "end_max" instead.
49396         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
49397
49398 2013-10-04  Alan Modra  <amodra@gmail.com>
49399
49400         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
49401         support.  Don't branch over align.
49402         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
49403         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
49404         support.  Rearrange tmp reg use to suit.  Comment.
49405         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
49406
49407 2013-10-04  Alan Modra  <amodra@gmail.com>
49408
49409         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
49410
49411 2013-10-04  Alan Modra  <amodra@gmail.com>
49412
49413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
49414         conditional form of branch and link when obtaining pc.
49415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
49416
49417 2013-10-04  Alan Modra  <amodra@gmail.com>
49418
49419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
49420         HIWORD/LOWORD.
49421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
49422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
49423
49424 2013-10-04  Alan Modra  <amodra@gmail.com>
49425
49426         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
49427         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
49428         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
49429         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
49430         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
49431         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
49432         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
49433         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
49434         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
49435         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
49436
49437 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49438             Alistair Popple <alistair@ozlabs.au.ibm.com>
49439             Alan Modra <amodra@gmail.com>
49440
49441         [BZ #15723]
49442         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
49443         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
49444         _dl_hwcap access for little-endian.
49445         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
49446         destroy vmx regs when saving unaligned.
49447         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
49448         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
49449         destroy vmx regs when saving unaligned.
49450
49451 2013-10-04  Alan Modra  <amodra@gmail.com>
49452
49453         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
49454         Don't use a union to pack hi/low value.
49455
49456 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49457
49458         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
49459         for little-endian.
49460         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
49461         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
49462         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49463         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
49464         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
49465
49466 2013-10-04  Alan Modra  <amodra@gmail.com>
49467
49468         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
49469         constants to usual value for .cst8 section, and remove redundant
49470         high address load.
49471         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
49472         constant for 0x1p52.  Load little-endian words of double from
49473         correct stack offsets.
49474
49475 2013-10-04  Alan Modra  <amodra@gmail.com>
49476
49477         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
49478         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
49479         words of double from correct stack offsets.
49480         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
49481         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
49482         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
49483         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
49484         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
49485         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
49486         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
49487         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
49488         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
49489         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
49490         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
49491         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
49492         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
49493         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
49494         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
49495         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
49496         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
49497
49498 2013-10-04  Alan Modra  <amodra@gmail.com>
49499
49500         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
49501         64-bit int/double union.
49502         (_FPU_SETCW): Likewise.
49503         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
49504         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
49505
49506 2013-10-04  Alan Modra  <amodra@gmail.com>
49507
49508         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
49509         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
49510
49511 2013-10-04  Alan Modra  <amodra@gmail.com>
49512
49513         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
49514         use vector int constants.
49515         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
49516
49517 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49518
49519         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
49520         array with long long.
49521         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
49522         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
49523         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
49524         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
49525         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
49526         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
49527         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
49528         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
49529         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
49530         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
49531         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
49532         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
49533         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
49534
49535 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49536
49537         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
49538         (__signbit): Likewise.  Correct for little-endian.
49539         (__signbitl): Call __signbit.
49540         (lrint): Correct for little-endian.
49541         (lrintf): Call lrint.
49542
49543 2013-10-04  Alan Modra  <amodra@gmail.com>
49544
49545         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
49546         union 32-bit int array member with 64-bit int array.
49547         (t515, tm256): Double rather than long double.
49548         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
49549
49550 2013-10-04  Alan Modra  <amodra@gmail.com>
49551
49552         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
49553         Delete.
49554         (IEEE854_LONG_DOUBLE_BIAS): Delete.
49555         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
49556         version of math_ldbl.h.
49557
49558 2013-10-04  Alan Modra  <amodra@gmail.com>
49559
49560         [BZ #15734], [BZ #15735]
49561         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
49562         all uses of ieee875 long double macros and unions.  Simplify test
49563         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
49564         ldbl_extract_mantissa value for ix,iy exponents.  Properly
49565         normalize after ldbl_extract_mantissa, and don't add hidden bit
49566         already handled.  Don't treat low word of ieee854 mantissa like
49567         low word of IBM long double and mask off bit when testing for
49568         zero.
49569         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
49570         all uses of ieee875 long double macros and unions.  Simplify tests
49571         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
49572         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
49573         two1022, instead use their values.  Recognise that tests for large
49574         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
49575         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
49576         Rewrite all uses of ieee875 long double macros and unions.  Simplify
49577         test for 0.0L and nan.  Correct negation.
49578         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
49579         ieee875 long double macros and unions.  Correct output for large
49580         magnitude x.  Correct absolute value calculation.
49581         (__erfcl): Likewise.
49582         * math/libm-test.inc: Add tests for errors discovered in IBM long
49583         double versions of fmodl, remainderl, erfl and erfcl.
49584
49585 2013-10-04  Alan Modra  <amodra@gmail.com>
49586
49587         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
49588         all uses of ieee854 long double macros and unions.  Simplify tests
49589         for long doubles that are fully specified by the high double.
49590         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
49591         Likewise.
49592         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
49593         Remove dead code too.
49594         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
49595         (__ieee754_ynl): Likewise.
49596         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
49597         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
49598         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
49599         Remove dead code too.
49600         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
49601         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
49602         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
49603         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
49604         Simplify.
49605         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
49606         Simplify.
49607         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
49608         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
49609         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
49610         Comment on variable precision.
49611         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
49612         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
49613         Likewise.
49614         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
49615         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
49616         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
49617         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
49618         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
49619
49620 2013-10-04  Alan Modra  <amodra@gmail.com>
49621
49622         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
49623         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
49624         all uses of ieee854 long double macros and unions.
49625         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
49626         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
49627         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
49628         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
49629         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
49630         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
49631         Likewise.
49632         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
49633         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
49634         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
49635         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
49636         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
49637         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
49638         Simplify sign and nan test too.
49639         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
49640         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
49641         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
49642         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
49643         Likewise.
49644         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
49645         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
49646         Likewise.
49647         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
49648         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
49649         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
49650         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
49651         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
49652         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
49653
49654 2013-10-04  Alan Modra  <amodra@gmail.com>
49655
49656         * stdio-common/printf_size.c (__printf_size): Don't use
49657         union ieee854_long_double in fpnum union.
49658         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
49659         signbit macro to retrieve sign from long double.
49660         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
49661         retrieve sign from long double.
49662         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
49663         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
49664         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
49665         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
49666         * math/test-misc.c (main): Don't use union ieee854_long_double.
49667
49668 2013-10-04  Alan Modra  <amodra@gmail.com>
49669
49670         [BZ #15680]
49671         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
49672         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
49673         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
49674         calculation.  Remove unnecessary test for denormal exponent.
49675         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
49676         Correct handling of denormals.  Avoid undefined shift behaviour.
49677         Correct normalisation of low mantissa when low double is denormal.
49678         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
49679         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
49680         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
49681         Correct normalisation of low mantissa.  Test for overflow of high
49682         mantissa and normalise.
49683         (ldbl_nearbyint): Use more readable constant for two52.
49684         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
49685         (__mpn_construct_long_double): Fix test for overflow of high
49686         mantissa and correct normalisation.  Avoid undefined shift.
49687
49688 2013-10-04  Alan Modra  <amodra@gmail.com>
49689
49690         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
49691         (union ibm_extended_long_double): Define as an array of ieee754_double.
49692         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
49693         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
49694         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
49695         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
49696         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
49697         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
49698         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
49699         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
49700         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
49701         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
49702         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
49703
49704 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
49705
49706         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
49707         page size instead of calling getpagesize.
49708
49709         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
49710         (LOCFILE_ALIGN_MASK): Likewise.
49711         (LOCFILE_ALIGN_UP): Likewise.
49712         (LOCFILE_ALIGNED_P): Likewise.
49713         * locale/programs/ld-collate.c (collate_output): Use the new
49714         macros instead of __alignof__ (int32_t).
49715         * locale/weight.h (findidx): Likewise.
49716
49717 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
49718
49719         [BZ #431]
49720         * manual/string.texi: Fix strncat and wcsncat.
49721
49722 2013-10-03  Brooks Moses  <bmoses@google.com>
49723
49724         [BZ #15915]
49725         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
49726         * Makerules: ...here, and adjust associated comments.
49727
49728 2013-10-02  Will Newton  <will.newton@linaro.org>
49729
49730         * malloc/Makefile: Add tst-pvalloc.
49731         * malloc/tst-pvalloc.c: New file.
49732
49733 2013-10-02  Will Newton  <will.newton@linaro.org>
49734
49735         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
49736         improve test coverage.
49737
49738 2013-10-02  Will Newton  <will.newton@linaro.org>
49739
49740         * malloc/Makefile: Add tst-posix_memalign.
49741         * malloc/tst-posix_memalign.c: New file.
49742
49743 2013-10-01  Eric Blake  <eblake@redhat.com>
49744
49745         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
49746         Use __THROWNL rather than __THROW on static functions.
49747
49748 2013-09-30  Petr Machata  <pmachata@redhat.com>
49749
49750         * elf/elf.h (R_AARCH64_ABS16): New macro.
49751         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
49752         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
49753         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
49754         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
49755         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
49756         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
49757         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
49758         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
49759         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
49760         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
49761         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
49762         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
49763         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
49764         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
49765         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
49766         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
49767         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
49768         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
49769         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
49770         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
49771         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
49772         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
49773         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
49774         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
49775         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
49776         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
49777         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
49778         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
49779         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
49780         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
49781         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
49782         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
49783         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
49784         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
49785         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
49786         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
49787         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
49788         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
49789         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
49790         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
49791         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
49792         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
49793         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
49794         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
49795         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
49796         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
49797         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
49798         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
49799         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
49800         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
49801         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
49802         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
49803         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
49804         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
49805         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
49806         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
49807         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
49808         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
49809         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
49810         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
49811         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
49812         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
49813         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
49814         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
49815         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
49816         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
49817         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
49818         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
49819         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
49820         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
49821         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
49822         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
49823         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
49824         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
49825         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
49826         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
49827         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
49828         (R_AARCH64_TLSDESC_LDR): Likewise.
49829         (R_AARCH64_TLSDESC_ADD): Likewise.
49830         (R_AARCH64_TLSDESC_CALL): Likewise.
49831
49832 2013-09-30  Andreas Schwab  <schwab@suse.de>
49833
49834         [BZ #15048]
49835         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
49836         the nss database lookup.
49837         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49838         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
49839
49840 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
49841
49842         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
49843
49844 2013-09-28  P. J. McDermott  <pj@pehjota.net>
49845
49846         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
49847         ${Bash-specific parameter/pattern/string} parameter expansion.
49848         * sysdeps/unix/make-syscalls.sh: Likewise.
49849
49850 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
49851
49852         * sysdeps/sh/stackguard-macros.h: New file.
49853
49854 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
49855
49856         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
49857         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
49858         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
49859         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
49860         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
49861         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
49862
49863 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49864
49865         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
49866         Fix thread ID register.
49867
49868 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
49869
49870         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
49871         [POSIX || UNIX98]: Require rather than permitting all symbols from
49872         <time.h>.
49873         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
49874         element of struct sched_param.
49875         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
49876         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
49877         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
49878         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
49879         constant.
49880
49881 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
49882
49883         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
49884         argument calculation.
49885
49886 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
49887
49888         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
49889         Expect macro.
49890         [POSIX] (pthread_attr_t): Do not require type.
49891         [POSIX] (pthread_cond_t): Likewise.
49892         [POSIX] (pthread_condattr_t): Likewise.
49893         [POSIX] (pthread_key_t): Likewise.
49894         [POSIX] (pthread_mutex_t): Likewise.
49895         [POSIX] (pthread_mutexattr_t): Likewise.
49896         [POSIX] (pthread_once_t): Likewise.
49897         [POSIX] (pthread_t): Likewise.
49898         [POSIX-based standards] (pthread_atfork): Expect function.
49899
49900 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
49901             Richard Sandiford  <richard@codesourcery.com>
49902
49903         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
49904         (swap_endianness_p): New extern variable.
49905         (set_big_endian): New inline function.
49906         (maybe_swap_uint32): Likewise.
49907         (maybe_swap_uint32_array): Likewise.
49908         (maybe_swap_uint32_obstack): Likewise.
49909         * locale/programs/locfile.c: Include <stdbool.h>.
49910         (swap_endianness_p): New variable.
49911         (add_locale_uint32): Call maybe_swap_uint32.
49912         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
49913         (write_locale_data): Call maybe_swap_uint32_array.
49914         * locale/programs/ld-collate.c (obstack_int32_grow): Call
49915         maybe_swap_uint32.
49916         (obstack_int32_grow_fast): Likewise.
49917         (output_weightwc): Call maybe_swap_uint32_obstack.
49918         (collate_output): Likewise.
49919         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
49920         (OPT_LITTLE_ENDIAN): Likewise.
49921         (options): Add --little-endian and --big-endian options.
49922         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
49923         * locale/programs/locarchive.c: Include "locfile.h".
49924         (GET): New macro.
49925         (SET): Likewise.
49926         (INC): Likewise.
49927         (create_archive): Use the new macros to access fields of
49928         structures directly mapped from or written to locale archives.
49929         (oldlocrecentcmp): Likewise.
49930         (enlarge_archive): Likewise.
49931         (insert_name): Likewise.
49932         (add_alias): Likewise.
49933         (add_locale): Likewise.
49934         (delete_locales_from_archive): Likewise.
49935         (show_archive_content): Likewise.
49936         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
49937         locale data.
49938
49939 2013-09-24  Roland McGrath  <roland@hack.frob.com>
49940
49941         * manual/freemanuals.texi: Updated from (newly) canonical copy at
49942         http://www.gnu.org/doc/freemanuals.texi.
49943         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
49944
49945 2013-09-24  Will Newton  <will.newton@linaro.org>
49946
49947         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
49948         macro.
49949
49950 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
49951
49952         * locale/hashval.h (compute_hashval): Interpret bytes of key as
49953         unsigned char.
49954
49955 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
49956
49957         * manual/threads.texi (POSIX Threads): Fix a typo.
49958
49959 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49960
49961         [BZ #14547]
49962         * string/tst-strcoll-overflow.c: New test case.
49963         * string/Makefile (xtests): Add tst-strcoll-overflow.
49964         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
49965         cache if string sizes may cause integer overflow.
49966
49967         [BZ #14547]
49968         * string/strcoll_l.c (coll_seq): New members rule, idx,
49969         save_idx and back_us.
49970         (get_next_seq_nocache): New function.
49971         (do_compare_nocache): New function.
49972         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
49973         when malloc fails.
49974
49975 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
49976
49977         [BZ #15754]
49978         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
49979         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
49980         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
49981
49982         [BZ #15754]
49983         * elf/Makefile (tests): Add tst-ptrguard1.
49984         (tests-static): Add tst-ptrguard1-static.
49985         (tst-ptrguard1-ARGS): Define.
49986         (tst-ptrguard1-static-ARGS): Define.
49987         * elf/tst-ptrguard1.c: New file.
49988         * elf/tst-ptrguard1-static.c: New file.
49989         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
49990         * sysdeps/i386/stackguard-macros.h: Likewise.
49991         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
49992         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
49993         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
49994         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
49995         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
49996         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
49997
49998 2013-09-23  Hector Marco  <hecmargi@upv.es>
49999             Ismael Ripoll  <iripoll@disca.upv.es>
50000             Carlos O'Donell  <carlos@redhat.com>
50001
50002         [BZ #15754]
50003         * sysdeps/generic/stackguard-macros.h: Define
50004         __pointer_chk_guard_local and POINTER_CHK_GUARD.
50005         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
50006         Define __pointer_chk_guard_local.
50007         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
50008         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
50009
50010 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
50011
50012         [BZ #15859]
50013         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
50014
50015 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
50016
50017         * include/string.h (__ffs): Declare as hidden.
50018         * string/ffs.c (__ffs): Define as hidden.
50019         * sysdeps/i386/ffs.c (__ffs): Likewise.
50020         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
50021         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
50022         * sysdeps/s390/ffs.c (__ffs): Likewise.
50023         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
50024
50025 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
50026
50027         * NEWS: Mention malloc probes.
50028
50029         * malloc/arena.c (new_heap): New memory_heap_new probe.
50030         (grow_heap): New memory_heap_more probe.
50031         (shrink_heap): New memory_heap_less probe.
50032         (heap_trim): New memory_heap_free probe.
50033         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
50034         (systrim): New memory_sbrk_less probe.
50035         * manual/probes.texi: Document them.
50036
50037         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
50038         * manual/probes.texi: Document it.
50039
50040         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
50041         (__libc_realloc): Add memory_realloc_retry probe.
50042         (__libc_memalign): Add memory_memalign_retry probe.
50043         (__libc_valloc): Add memory_valloc_retry probe.
50044         (__libc_pvalloc): Add memory_pvalloc_retry probe.
50045         (__libc_calloc): Add memory_calloc_retry probe.
50046         * manual/probes.texi: Document them.
50047
50048         * malloc/arena.c (get_free_list): Add probe
50049         memory_arena_reuse_free_list.
50050         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
50051         and memory_arena_reuse.
50052         (arena_get2) [!PER_THREAD]: Likewise.
50053         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
50054         memory_arena_reuse_realloc.
50055         * manual/probes.texi: Document them.
50056
50057         * malloc/malloc.c (__libc_free): Add
50058         memory_mallopt_free_dyn_thresholds probe.
50059         (__libc_mallopt): Add multiple memory_mallopt probes.
50060         * manual/probes.texi: Document them.
50061
50062         * malloc/malloc.c: Include stap-probe.h.
50063         (__libc_mallopt): Add memory_mallopt probe.
50064         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
50065         * manual/probes.texi: New.
50066         * manual/Makefile (chapters): Add probes.
50067         * manual/threads.texi: Set next node.
50068
50069 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
50070
50071         [BZ #15963, #13985]
50072         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
50073         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
50074         Add `Chinese' to `nan' entry name.
50075
50076 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50077
50078         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
50079         (POLYNOMIAL): Likewise.
50080         (TAYLOR_SINCOS): Likewise.
50081         (TAYLOR_SLOW): Likewise.
50082         (__sin): Use TAYLOR_SINCOS.
50083         (__cos): Likewise.
50084         (slow): Use TAYLOR_SLOW.
50085         (sloww): Likewise.
50086         (bsloww): Likewise.
50087         (csloww): Likewise.
50088
50089 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50090
50091         * stdlib/strtod_l.c: Fix buffer overrun.
50092
50093 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50094
50095         * benchtests/Makefile (bench): Add sincos.
50096         * benchtests/bench-sincos.c: New file.
50097
50098         * math/libm-test.inc (cos_test_data): New test inputs.
50099         (sin_test_data): Likewise.
50100
50101         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
50102         macro.
50103         (__sin): Use it.
50104         (__cos): Likewise.
50105         (slow1): Likewise.
50106         (slow2): Likewise.
50107         (sloww1): Likewise.
50108         (sloww2): Likewise.
50109         (bsloww1): Likewise.
50110         (bsloww2): Likewise.
50111         (cslow2): Likewise.
50112         (csloww1): Likewise.
50113         (csloww2): Likewise.
50114
50115         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
50116         function.
50117         (__sin): Use it.
50118         (__cos): Likewise.
50119
50120         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
50121         gotos.
50122         (__cos): Likewise.
50123
50124 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
50125
50126         * config.h.in (HAVE_MIPS_NAN2008): New macro.
50127         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
50128         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
50129         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
50130         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
50131         * elf/cache.c (print_entry): Handle the new cache flags.
50132
50133 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50134             Aldy Hernandez  <aldyh@redhat.com>
50135
50136         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
50137         Change condition to [_SOFT_FLOAT].
50138         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
50139         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
50140         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
50141         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
50142         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
50143         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
50144         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
50145         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
50146         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
50147         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
50148         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
50149         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
50150         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
50151         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
50152         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
50153         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
50154         declaration.
50155
50156 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50157
50158         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
50159         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50160         (__longjmp): Use LOAD_GP to load saved GPRs.
50161         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
50162         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50163         (__sigsetjmp): Use SAVE_GP to save GPRs.
50164
50165         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
50166         Do not append -msoft-float.
50167         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
50168
50169 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
50170
50171         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
50172
50173 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
50174
50175         [BZ #15966]
50176         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
50177         (_FPU_GETCW): Use initial "__" on variable and field names but not
50178         on macro parameter name.
50179         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
50180         parentheses around reference to macro parameter.
50181
50182 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
50183
50184         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
50185         prototype.
50186         (ctype_startup): Use uint32_t in cast and sizeof for
50187         ctype->charnames.
50188
50189 2013-09-11  Jia Liu  <proljc@gmail.com>
50190
50191         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
50192         __daddr_t_defined.
50193         [__FreeBSD__]: Likewise.
50194
50195 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
50196
50197         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
50198         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
50199         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
50200         (strchr): Remove __strchr_sse42 ifunc selection.
50201         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
50202         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
50203
50204 2013-09-11  Will Newton  <will.newton@linaro.org>
50205
50206         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
50207         parameter to RES. Remove hardcoded 1000 value.
50208         * benchtests/bench-skeleton.c (main): Pass RES parameter
50209         to TIMING_INIT and multiply result by 1000.
50210
50211 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50212
50213         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50214
50215 2013-09-11  Andreas Schwab  <schwab@suse.de>
50216
50217         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
50218         if not defined.
50219         (O_TMPFILE) [__USE_GNU]: Define.
50220         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
50221         Define.
50222
50223 2013-09-11  Will Newton  <will.newton@linaro.org>
50224
50225         [BZ #15857]
50226         * malloc/malloc.c (__libc_memalign): Check the value of bytes
50227         does not overflow.
50228
50229 2013-09-11  Will Newton  <will.newton@linaro.org>
50230
50231         [BZ #15856]
50232         * malloc/malloc.c (__libc_valloc): Check the value of bytes
50233         does not overflow.
50234
50235 2013-09-11  Will Newton  <will.newton@linaro.org>
50236
50237         [BZ #15855]
50238         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
50239         does not overflow.
50240
50241 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
50242
50243         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
50244         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
50245         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
50246         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
50247         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
50248
50249 2013-09-10  Allan McRae  <allan@archlinux.org>
50250
50251         [BZ #15748]
50252         * manual/arith.texi (Parsing of Floats): Clarify
50253         cross-reference.
50254
50255         [BZ #15849]
50256         * manual/install.texi (Running make install): Mention
50257         --enable-pt-chown.
50258         * INSTALL: Regenerated.
50259
50260 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
50261
50262         * csu/init-first.c (_init): Remove the !SHARED condition around
50263         FPU control word initialization.
50264         * elf/dl-support.c (_dl_fpu_control): New variable.
50265         (_dl_aux_init) <AT_FPUCW>: Initialize it.
50266         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
50267         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
50268         * math/test-fpucw-static.c: New file.
50269         * math/test-fpucw-ieee.c: New file.
50270         * math/test-fpucw-ieee-static.c: New file.
50271         * math/Makefile (tests): Add `test-fpucw-ieee' and
50272         `$(tests-static)'.
50273         (tests-static): New variable.
50274         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
50275         dependency to...
50276         [($(build-shared),yes)]
50277         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
50278         ... this.
50279         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
50280         New dependency.
50281
50282 2013-09-09  Allan McRae  <allan@archlinux.org>
50283
50284         [BZ #15939]
50285         * manual/string.texi (Collation Functions): Fix typo in
50286         strcoll example.
50287         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
50288
50289         [BZ #15893]
50290         * stdlib/isomac.c (get_null_defines): Fix memory leak.
50291
50292         [BZ #15892]
50293         * libio/memstream.c (open_memstream): Fix memory leak.
50294         * libio/wmemstream.c (open_wmemstream): Likewise.
50295
50296         [BZ #15895]
50297         * nscd/netgroupcache.c: Fix nesting of ifdefs.
50298
50299 2013-09-09  Will Newton  <will.newton@linaro.org>
50300
50301         * malloc/Makefile: Add tst-realloc to tests.
50302         * malloc/tst-realloc.c: New file.
50303
50304 2013-09-09  Allan McRae  <allan@archlinux.org>
50305
50306         [BZ #15844]
50307         * COPYING: Update from GNU website to fix FSF address.
50308         * COPYING.LIB: Likewise.
50309
50310 2013-09-06  David S. Miller  <davem@davemloft.net>
50311
50312         * po/zh_TW.po: Update Chinese (traditional) translation from
50313         translation project.
50314
50315 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
50316             Joseph Myers  <joseph@codesourcery.com>
50317
50318         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
50319         "localeinfo.h".
50320         (obstack_chunk_alloc): New macro.
50321         (obstack_chunk_free): Likewise.
50322         (record_offset): New function.
50323         (init_locale_data): Likewise.
50324         (align_locale_data): Likewise.
50325         (add_locale_empty): Likewise.
50326         (add_locale_raw_data): Likewise.
50327         (add_locale_raw_obstack): Likewise.
50328         (add_locale_string): Likewise.
50329         (add_locale_wstring): Likewise.
50330         (add_locale_uint32): Likewise.
50331         (add_locale_uint32_array): Likewise.
50332         (add_locale_char): Likewise.
50333         (start_locale_structure): Likewise.
50334         (end_locale_structure): Likewise.
50335         (start_locale_prelude): Likewise.
50336         (end_locale_prelude): Likewise.
50337         (write_locale_data): Take locale_file structure rather than an
50338         iovec.
50339         * locale/programs/locfile.h: Include "obstack.h".
50340         (struct locale_file): Change to store locale file contents instead
50341         of header.
50342         (init_locale_data): New prototype.
50343         (align_locale_data): Likewise.
50344         (add_locale_empty): Likewise.
50345         (add_locale_raw_data): Likewise.
50346         (add_locale_raw_obstack): Likewise.
50347         (add_locale_string): Likewise.
50348         (add_locale_wstring): Likewise.
50349         (add_locale_uint32): Likewise.
50350         (add_locale_uint32_array): Likewise.
50351         (add_locale_char): Likewise.
50352         (start_locale_structure): Likewise.
50353         (end_locale_structure): Likewise.
50354         (start_locale_prelude): Likewise.
50355         (end_locale_prelude): Likewise.
50356         (write_locale_data): Update prototype.
50357         * locale/programs/3level.h (struct TABLE): Remove result field.
50358         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
50359         Use new locale_file interface.
50360         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
50361         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
50362         * locale/programs/ld-address.c (address_output): Use new
50363         locale_file interface.
50364         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
50365         NO_ADD_LOCALE.
50366         (collate_finish): Don't call collseq_table_finalize.
50367         (collate_output): Use new locale_file interface.
50368         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
50369         in file.
50370         (NO_FINALIZE): Change to NO_ADD_LOCALE.
50371         (TABLE): Move defines earlier in file.
50372         (ELEMENT): Likewise.
50373         (DEFAULT): Likewise.
50374         (wctrans_table_add): Move macro and inline function earlier in
50375         file.
50376         (struct wctype_table): Move type earlier in file.
50377         (add_locale_wctype_table): New static prototype.
50378         (struct locale_ctype_t): Use logical types instead of struct iovec
50379         pointers for members.
50380         (ctype_output): Use new locale_file interface.
50381         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
50382         new locale_file interface.
50383         (allocate_arrays): Update for use of new locale_file interface.
50384         * locale/programs/ld-identification.c (identification_output): Use
50385         new locale_file interface.
50386         * locale/programs/ld-measurement.c (measurement_output): Likewise.
50387         * locale/programs/ld-messages.c (messages_output): Likewise.
50388         * locale/programs/ld-monetary.c (monetary_output): Likewise.
50389         * locale/programs/ld-name.c (name_output): Likewise.
50390         * locale/programs/ld-numeric.c (numeric_output): Likewise.
50391         * locale/programs/ld-paper.c (paper_output): Likewise.
50392         * locale/programs/ld-telephone.c (telephone_output): Likewise.
50393         * locale/programs/ld-time.c (time_output): Likewise.
50394
50395 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50396
50397         * benchtests/Makefile: Add memrchr benchmark.
50398         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
50399         benchmark as memrchr.
50400         * benchtests/bench-memrchr-ifunc.c: New file.
50401         * benchtests/bench-memrchr.c: New file.
50402
50403 2013-09-06   Will Newton  <will.newton@linaro.org>
50404
50405         * benchtests/Makefile (string-bench): Add memcpy.
50406
50407 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
50408             Cong Wang  <amwang@redhat.com>
50409
50410         [BZ #15850]
50411         * sysdeps/unix/sysv/linux/bits/in.h
50412         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
50413         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
50414         before __USE_KERNEL_IPV6_DEFS uses.
50415         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
50416         IPPROTO_BEETPH.
50417         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
50418         sockaddr_in6, or ipv6_mreq.
50419
50420 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50421
50422         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
50423         memory access for final bytes in some large inputs.
50424         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
50425
50426 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50427
50428         * string/test-memrchr.c: New file.
50429         * string/test-memrchr-ifunc.c: New file.
50430         * string/Makefile: Add new memrchr testcase.
50431
50432 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
50433
50434         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
50435         fanotify_init returns EPERM.
50436
50437 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50438
50439         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
50440         errors.
50441         (top level): Treat second token from macro or constant entries for
50442         allowed headers as allowed.
50443         * include/complex.h: Condition internal declarations on
50444         [!_ISOMAC].
50445         * include/fenv.h: Condition include of <stdbool.h> and internal
50446         declarations on [!_ISOMAC].
50447
50448 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
50449
50450         [BZ #15923]
50451         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
50452
50453 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50454
50455         * configure.in (--enable-versioning): Remove configure option.
50456         (libc_cv_asm_symver_directive): Remove configure test.
50457         (libc_cv_ld_version_script_option): Likewise.
50458         (VERSIONING): Remove variable and AC_SUBST.
50459         (DO_VERSIONING): Remove AC_DEFINE.
50460         * configure: Regenerated.
50461         * config.h.in (DO_VERSIONING): Remove macro.
50462         * Makerules [$(versioning) = yes]: Change conditionals to
50463         [$(build-shared) = yes].
50464         * config.make.in (versioning): Remove variable.
50465         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
50466         [$(build-shared) = yes].
50467         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
50468         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
50469         * elf/Makefile [$(versioning) = yes]: Change conditionals to
50470         [$(build-shared) = yes].
50471         * extra-lib.mk [$(versioning) = yes]: Likewise.
50472         * hurd/Makefile [$(versioning) = yes]: Likewise.
50473         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
50474         [SHARED].
50475         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
50476         [SHARED].
50477         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50478         [SHARED && !NO_HIDDEN].
50479         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
50480         [SHARED].
50481         [SHARED && DO_VERSIONING]: Likewise..
50482         * libio/Makefile [$(versioning) = yes]: Change conditionals to
50483         [$(build-shared) = yes].
50484         * manual/install.texi (--disable-versioning): Remove
50485         documentation.
50486         * INSTALL: Regenerated.
50487         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
50488         to [SHARED].
50489         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
50490         [$(build-shared) = yes].
50491         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
50492         * sysdeps/i386/i686/multiarch/strstr-c.c
50493         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50494         [SHARED && !NO_HIDDEN].
50495         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
50496         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
50497         * sysdeps/powerpc/powerpc32/dl-machine.c
50498         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
50499         * sysdeps/powerpc/powerpc32/sysdep.h
50500         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
50501         to [SHARED && PIC && !NO_HIDDEN].
50502         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
50503         conditional to [SHARED].
50504
50505 2013-09-04   Will Newton  <will.newton@linaro.org>
50506
50507         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
50508         * benchtests/bench-string.h: Include bench-timing.h instead
50509         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
50510         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
50511         call to HP_TIMING_DIFF_INIT.
50512         * benchtests/bench-memccpy.c: Use bench-timing.h macros
50513         instead of hp-timing.h macros.
50514         * benchtests/bench-memchr.c: Likewise.
50515         * benchtests/bench-memcmp.c: Likewise.
50516         * benchtests/bench-memcpy.c: Likewise.
50517         * benchtests/bench-memmem.c: Likewise.
50518         * benchtests/bench-memmove.c: Likewise.
50519         * benchtests/bench-memset.c: Likewise.
50520         * benchtests/bench-rawmemchr.c: Likewise.
50521         * benchtests/bench-strcasecmp.c: Likewise.
50522         * benchtests/bench-strcasestr.c: Likewise.
50523         * benchtests/bench-strcat.c: Likewise.
50524         * benchtests/bench-strchr.c: Likewise.
50525         * benchtests/bench-strcmp.c: Likewise.
50526         * benchtests/bench-strcpy.c: Likewise.
50527         * benchtests/bench-strcpy_chk.c: Likewise.
50528         * benchtests/bench-strlen.c: Likewise.
50529         * benchtests/bench-strncasecmp.c: Likewise.
50530         * benchtests/bench-strncat.c: Likewise.
50531         * benchtests/bench-strncmp.c: Likewise.
50532         * benchtests/bench-strncpy.c: Likewise.
50533         * benchtests/bench-strnlen.c: Likewise.
50534         * benchtests/bench-strpbrk.c: Likewise.
50535         * benchtests/bench-strrchr.c: Likewise.
50536         * benchtests/bench-strspn.c: Likewise.
50537         * benchtests/bench-strstr.c: Likewise.
50538
50539 2013-09-04  Will Newton  <will.newton@linaro.org>
50540
50541         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
50542
50543 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
50544
50545         [BZ #15427]
50546         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
50547         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
50548         * math/libm-test.inc (lgamma_test_data): Add more tests.
50549         * sysdeps/i386/fpu/libm-test-ulps: Update.
50550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50551
50552 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
50553
50554         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
50555         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50556         Add ifunc.
50557         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50558         Add strcmp-sse2-unaligned
50559         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
50560
50561 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50562
50563         * Versions.def (libc): Add GLIBC_2.19.
50564
50565 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50566
50567         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
50568         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
50569
50570 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
50571
50572         [BZ #14155]
50573         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
50574         intermediate calculations in recurrence.
50575         (__ieee754_ynf): Likewise.
50576         * math/libm-test.inc (jn_test_data): Do not allow spurious
50577         underflow exception.  Add more tests.
50578         (yn_test_data): Add more tests.
50579         * sysdeps/i386/fpu/libm-test-ulps: Update.
50580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50581
50582 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
50583
50584         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
50585
50586 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50587
50588         * csu/init-first.c: Fix then/than typos.
50589         * locale/programs/ld-collate.c: Likewise.
50590         * locale/programs/linereader.h: Likewise.
50591         * manual/charset.texi: Likewise.
50592         * manual/filesys.texi: Likewise.
50593         * manual/stdio.texi: Likewise.
50594         * manual/string.texi: Likewise.
50595         * stdlib/fmtmsg.c: Likewise.
50596         * sysdeps/i386/stpncpy.S: Likewise.
50597         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
50598         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
50599         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
50600         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
50601
50602 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50603
50604         * elf/dl-open.c: Fix typos.
50605         * iconvdata/gbbig5.c: Likewise.
50606         * iconvdata/iso-2022-jp.c: Likewise.
50607         * iconv/gconv_int.h: Likewise.
50608         * iconv/loop.c: Likewise.
50609         * nis/rpcsvc/nis.h: Likewise.
50610         * resolv/ns_name.c: Likewise.
50611         * stdio-common/vfscanf.c: Likewise.
50612         * streams/stropts.h: Likewise.
50613         * sunrpc/rpc_thread.c: Likewise.
50614         * sysdeps/i386/strpbrk.S: Likewise.
50615         * sysdeps/ieee754/k_standard.c: Likewise.
50616         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
50617         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
50618         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
50619         * sysdeps/mach/hurd/profil.c: Likewise.
50620         * sysdeps/s390/dl-procinfo.h: Likewise.
50621         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
50622         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
50623         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
50624         * sysdeps/x86_64/dl-trampoline.S: Likewise.
50625         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
50626
50627 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
50628
50629         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
50630         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
50631
50632 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
50633
50634         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
50635         aix specific files.
50636         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
50637         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
50638         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
50639         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
50640         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
50641         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
50642         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
50643         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
50644
50645 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
50646             Roland McGrath  <roland@hack.frob.com>
50647
50648         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
50649         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
50650
50651 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
50652
50653         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
50654         __executable_start symbol instead of _start.
50655
50656 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
50657
50658         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
50659         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
50660         Move macros to...
50661         * sysdeps/gnu/ldsodefs.h: ... this new file.
50662
50663         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
50664         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
50665         instead of ELFOSABI_LINUX.
50666
50667         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
50668         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
50669         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
50670         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
50671         Likewise.
50672         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
50673         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
50674         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
50675         Likewise.
50676         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
50677         (ibm_extended_long_double): Add ieee_nan member.
50678         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
50679         (do_test): New function.
50680
50681         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
50682         TEST_TRUNC.
50683         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
50684         functions, renamed from truncdfsf_test, trunctfsf_test,
50685         trunctfdf_test.
50686         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
50687         functions.
50688         (do_test): Run all these.
50689
50690 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
50691
50692         * argp/argp-help.c: Fix typos.
50693         * argp/argp-parse.c: Likewise.
50694         * debug/backtracesyms.c: Likewise.
50695         * elf/elf.h: Likewise.
50696         * malloc/malloc.c: Likewise.
50697         * nis/nis_print.c: Likewise.
50698         * resolv/res_comp.c: Likewise.
50699         * stdlib/stdlib.h: Likewise.
50700         * sunrpc/clnt_tcp.c: Likewise.
50701         * sunrpc/clnt_udp.c: Likewise.
50702         * sunrpc/clnt_unix.c: Likewise.
50703         * sysdeps/unix/bsd/ptsname.c: Likewise.
50704         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
50705         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
50706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
50707         Likewise.
50708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
50709         Likewise.
50710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
50711         Likewise.
50712         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
50713
50714 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50715
50716         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
50717         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
50718
50719 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
50720
50721         [BZ #15897]
50722         * dlfcn/Makefile (tests): Add bug-dl-leaf.
50723         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
50724         ($(objpfx)bug-dl-leaf): New rule.
50725         ($(objpfx)bug-dl-leaf.so): Likewise.
50726         ($(objpfx)bug-dl-leaf.out): Likewise.
50727         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
50728         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
50729         * dlfcn/bug-dl-leaf.c: New test.
50730         * dlfcn/bug-dl-leaf-lib.c: Likewise.
50731         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
50732         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
50733         (dlclose): Likewise.
50734         (dlmopen): Likewise.
50735
50736 2013-08-27  Roland McGrath  <roland@hack.frob.com>
50737
50738         * include/netdb.h [!_ISOMAC]:
50739         Don't include <tls.h>.
50740         (h_errno, __libc_h_errno): Move declaration and macros out of
50741         [_LIBC_REENTRANT].
50742
50743         * include/resolv.h [_RESOLV_H_]:
50744         Don't include <tls.h>.
50745         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
50746         * resolv/res_libc.c: Don't include <tls.h>.
50747         (_res): Use __attribute__ ((nocommon)) in place of
50748         __attribute__ ((section (".bss"))).
50749
50750         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
50751         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
50752
50753         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
50754
50755         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
50756         only under [SIOCGIFCONF && SIOCGIFNETMASK].
50757
50758         * resolv/res_mkquery.c: Include <sys/time.h>.
50759
50760         * inet/ifreq.c: Moved to ...
50761         * sysdeps/unix/ifreq.c: ... here.
50762         * inet/ifreq.c: New file, true stub version.
50763
50764         * socket/sa_len.c: New file.
50765         * socket/Makefile (aux): Add it.
50766         * sysdeps/unix/sysv/linux/Makefile
50767         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
50768         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
50769         and #include <socket/sa_len.c>.
50770         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
50771         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
50772
50773         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
50774         * bits/socket.h: ... here.
50775
50776         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
50777         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
50778         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
50779
50780 2013-08-27  Andreas Schwab  <schwab@suse.de>
50781
50782         [BZ #15736]
50783         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
50784         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
50785         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
50786         * string/test-strcasecmp.c (test_main): Run tests in several
50787         locales.
50788         * string/test-strncasecmp.c (test_main): Likewise.
50789
50790         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
50791         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
50792         to __strcasecmp_nonascii and __strncasecmp_nonascii.
50793         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
50794         (__strncasecmp_ssse3) [PIC]: Likewise.
50795
50796 2013-08-26  Roland McGrath  <roland@hack.frob.com>
50797
50798         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
50799
50800         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
50801         instead of explicitly declaring xdecrypt.
50802         * nis/nss_nis/nis-publickey.c: Likewise.
50803
50804 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50805
50806         [BZ #15890]
50807         * nscd/aicache.c: Include res_hconf.h.
50808         (addhstaiX): Initialize res_hconf.
50809
50810 2013-08-26  Andreas Schwab  <schwab@suse.de>
50811
50812         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
50813         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
50814
50815 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50816
50817         * nscd/aicache.c (addhstaiX): Fix indentation.
50818
50819 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
50820
50821         * configure.ac: Quote $build_pt_chown test.
50822         * configure: Regenerated.
50823
50824 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
50825
50826         [BZ #15532]
50827         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
50828         * math/s_cexpf.c (__cexpf): Likewise.
50829         * math/s_cexpl.c (__cexpl): Likewise.
50830         * math/libm-test.inc (cexp_test_data): Correct expected return
50831         value for NaN + i0.  Add another test.
50832
50833 2013-08-22  David S. Miller  <davem@davemloft.net>
50834
50835         * po/ca.po: Update Catalan translation from translation project.
50836         * po/uk.po: Add Ukrainian translations from translation project.
50837
50838 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
50839
50840         [BZ #15797]
50841         * math/s_fdim.c (__fdim): Check for infinite arguments if result
50842         is infinite, not alongside NaN test.
50843         * math/s_fdimf.c (__fdimf): Likewise.
50844         * math/s_fdiml.c (__fdiml): Likewise.
50845         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
50846         errno is unchanged.
50847
50848 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
50849
50850         * argp/argp-help.c: Fix typos.
50851         * crypt/speeds.c: Likewise.
50852         * csu/check_fds.c: Likewise.
50853         * elf/dl-load.c: Likewise.
50854         * elf/dl-open.c: Likewise.
50855         * elf/reldep3.c: Likewise.
50856         * elf/reldep.c: Likewise.
50857         * elf/sprof.c: Likewise.
50858         * iconv/iconv_charmap.c: Likewise.
50859         * iconv/skeleton.c: Likewise.
50860         * iconv/strtab.c: Likewise.
50861         * io/lockf64.c: Likewise.
50862         * libio/libioP.h: Likewise.
50863         * resolv/gai_notify.c: Likewise.
50864         * resolv/ns_name.c: Likewise.
50865         * resolv/ns_samedomain.c: Likewise.
50866         * resolv/res_send.c: Likewise.
50867         * stdlib/random.c: Likewise.
50868         * sunrpc/rpc/xdr.h: Likewise.
50869         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
50870         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
50871         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
50872         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
50873         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
50874         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
50875         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
50876         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
50877         * sysdeps/mach/hurd/check_fds.c: Likewise.
50878         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
50879         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
50880         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
50881         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
50882         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
50883         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
50884         * sysdeps/pthread/aio_notify.c: Likewise.
50885         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
50886         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
50887         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
50888         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
50889         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
50890
50891 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50892
50893         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
50894         version if bit_Slow_SSE4_2 is set.
50895         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
50896         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
50897
50898 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50899
50900         [BZ #15867]
50901         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
50902         trampoline stack frame information.
50903         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
50904         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
50905         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
50906         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
50907         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
50908         * sysdeps/unix/sysv/linux/powerpc/init-first.c
50909         (_libc_vdso_platform_setup): Initialize the signal trampolines.
50910         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
50911         sa_flags value.
50912         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
50913         interrupting a syscall and set with option SA_SIGINFO.
50914
50915 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
50916
50917         [BZ #15531]
50918         * math/s_cproj.c (__cproj): Only return an infinity if one part of
50919         argument is infinite.
50920         * math/s_cprojf.c (__cprojf): Likewise.
50921         * math/s_cprojl.c (__cprojl): Likewise.
50922         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
50923         * math/libm-test.inc (cproj_test_data): Add more tests.
50924
50925         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
50926
50927         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
50928         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
50929         size.  Use __ffs to determine corresponding shift.
50930
50931 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
50932             Roland McGrath  <roland@hack.frob.com>
50933
50934         * Makefile (INSTALL): Remove trailing blank lines from output of
50935         makeinfo.
50936
50937 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50938
50939         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
50940         Align 32 bit compat elf_greg to 8 bytes.
50941
50942 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
50943
50944         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
50945
50946 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
50947
50948         * string/strcoll_l.c (coll_seq): New structure.
50949         (get_next_seq_cached): New function.
50950         (get_next_seq): New function.
50951         (do_compare): New function.
50952         (STRCOLL): Use GNU style definition.  Simplify implementation
50953         by using get_next_seq, get_next_seq_cached and do_compare.
50954
50955 2013-08-16  Florian Weimer  <fweimer@redhat.com>
50956
50957         [BZ #14699]
50958         CVE-2013-4237
50959         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
50960         member.
50961         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
50962         member.
50963         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
50964         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
50965         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
50966         conditional.
50967         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
50968         GETDENTS_64BIT_ALIGNED.
50969         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
50970         * manual/filesys.texi (Reading/Closing Directory): Document
50971         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
50972         strongly.
50973         * manual/conf.texi (Limits for Files): Add portability note to
50974         NAME_MAX, PATH_MAX.
50975         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
50976
50977 2013-08-13  Andreas Schwab  <schwab@suse.de>
50978
50979         [BZ #15749]
50980         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
50981         of fabs.
50982         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
50983         LDBL_MAX_EXP >= 16384]: Add tests for it.
50984
50985 2013-08-12  David S. Miller  <davem@davemloft.net>
50986
50987         * version.h (RELEASE): Set to "development".
50988         (VERSION): Set to "2.18.90".
50989         * NEWS: Add 2.19 section.
50990
50991 2013-08-03  David S. Miller  <davem@davemloft.net>
50992
50993         * po/ko.po: Update Korean translation from translation project.
50994
50995 2013-08-01  David S. Miller  <davem@davemloft.net>
50996
50997         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
50998         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
50999         Bilka.
51000
51001 2013-07-30  David S. Miller  <davem@davemloft.net>
51002
51003         * po/fr.po: Update French translation from translation project.
51004
51005 2013-07-28  David S. Miller  <davem@davemloft.net>
51006
51007         * po/cs.po: Update Czech translation from translation project.
51008
51009         * po/sv.po: Update Swedish translation from translation project.
51010
51011 2013-07-27  David S. Miller  <davem@davemloft.net>
51012
51013         * po/eo.po: Update Esperanto translation from translation project.
51014
51015         * po/vi.po: Update Vietnamese translation from translation project.
51016
51017         * po/de.po: Update German translation from translation project.
51018
51019 2013-07-26  David S. Miller  <davem@davemloft.net>
51020
51021         * po/bg.po: Update Bulgarian translation from translation project.
51022
51023         * po/nl.po: Update Dutch translation from translation project.
51024         * po/pl.po: Update Polish translation from translation project.
51025         * po/ru.po: Update Russian translation from translation project.
51026
51027 2013-07-24  David S. Miller  <davem@davemloft.net>
51028
51029         * po/libc.pot: Update.
51030
51031 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51032
51033         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
51034         variable page size.
51035         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
51036         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
51037         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
51038
51039 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51040
51041         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
51042
51043 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51044             Andreas Schwab  <schwab@suse.de>
51045             Roland McGrath  <roland@hack.frob.com>
51046             Joseph Myers  <joseph@codesourcery.com>
51047             Carlos O'Donell  <carlos@redhat.com>
51048
51049         [BZ #15755]
51050         * config.h.in: Define HAVE_PT_CHOWN.
51051         * config.make.in (build-pt-chown): New variable.
51052         * configure.in (--enable-pt_chown): New configure option.
51053         * configure: Regenerate.
51054         * login/Makefile: Include Makeconfig.  Build pt_chown only if
51055         build-pt-chown is enabled.
51056         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
51057         pt_chown to fix pty ownership.
51058         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
51059         CLOSE_ALL_FDS.
51060         * manual/install.texi (Configuring and compiling): Mention
51061         --enable-pt_chown. Add @findex for grantpt.
51062         * INSTALL: Regenerate.
51063
51064 2013-07-20  David S. Miller  <davem@davemloft.net>
51065
51066         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
51067         difference between 32-bit and 64-bit.
51068
51069 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
51070
51071         [BZ #15711]
51072         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
51073         Avoid system header dependency with -ffreestanding.
51074         ($(objpfx)bits/syscall%d): Likewise.
51075
51076 2013-07-13  David S. Miller  <davem@davemloft.net>
51077
51078         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
51079         underflows from atanl/atan2l due to bug 15319.
51080         (casinh_test_data): Likewise.
51081
51082 2013-07-07  David S. Miller  <davem@davemloft.net>
51083
51084         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
51085
51086 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
51087
51088         * sysdeps/i386/fpu/libm-test-ulps: Update.
51089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51090
51091 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
51092
51093         * configure.in (--enable-lock-elision): Fix message text.
51094         * INSTALL: Regenerate.
51095         * configure: Regenerate.
51096
51097 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51098
51099         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51100
51101 2013-07-03  Andreas Jaeger  <aj@suse.de>
51102
51103         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
51104         define.
51105         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
51106         (ptrace_peeksiginfo_args): Add.
51107         (__ptrace_peeksiginfo_flags): Add.
51108         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
51109         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
51110         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
51111
51112 2013-07-03  Allan McRae  <allan@archlinux.org>
51113
51114         * sysdeps/i386/fpu/libm-test-ulps: Update.
51115
51116 2013-07-02  David S. Miller  <davem@davemloft.net>
51117
51118         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51119
51120 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
51121
51122         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51123
51124 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51125
51126         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
51127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51128
51129 2013-07-02  Andi Kleen <ak@linux.intel.com>
51130
51131         * config.h.in (ENABLE_LOCK_ELISION): Add.
51132         * configure.in (--enable-lock-elision): Add option.
51133         * manual/install.texi: Document --enable lock elision.
51134         * configure: Regenerate
51135         * INSTALL: Regenerate.
51136
51137 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
51138
51139         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
51140         SSE4.2 strcasecmp for libc.a.
51141         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
51142
51143 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51144
51145         [BZ #13304]
51146         * soft-fp/op-common.h (_FP_FMA): New macro.
51147         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
51148         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
51149         (_FP_MUL_MEAT_1_imm): ... here.
51150         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
51151         (_FP_MUL_MEAT_1_wide): ... here.
51152         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
51153         (_FP_MUL_MEAT_1_hard): ... here.
51154         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
51155         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
51156         (_FP_MUL_MEAT_2_wide): ... here.
51157         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
51158         (_FP_MUL_MEAT_2_wide_3mul): ... here.
51159         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
51160         (_FP_MUL_MEAT_2_gmp): ... here.
51161         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
51162         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
51163         (_FP_MUL_MEAT_4_wide): ... here.
51164         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
51165         (_FP_MUL_MEAT_4_gmp): ... here.
51166         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
51167         (_FP_WFRACBITS_DW_S): Likewise.
51168         (_FP_WFRACXBITS_DW_S): Likewise.
51169         (_FP_HIGHBIT_DW_S): Likewise.
51170         (FP_FMA_S): Likewise.
51171         (_FP_FRAC_HIGH_DW_S): Likewise.
51172         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
51173         (_FP_WFRACBITS_DW_D): Likewise.
51174         (_FP_WFRACXBITS_DW_D): Likewise.
51175         (_FP_HIGHBIT_DW_D): Likewise.
51176         (FP_FMA_D): Likewise.
51177         (_FP_FRAC_HIGH_DW_D): Likewise.
51178         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
51179         (_FP_WFRACBITS_DW_E): Likewise.
51180         (_FP_WFRACXBITS_DW_E): Likewise.
51181         (_FP_HIGHBIT_DW_E): Likewise.
51182         (FP_FMA_E): Likewise.
51183         (_FP_FRAC_HIGH_DW_E): Likewise.
51184         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
51185         (_FP_WFRACBITS_DW_Q): Likewise.
51186         (_FP_WFRACXBITS_DW_Q): Likewise.
51187         (_FP_HIGHBIT_DW_Q): Likewise.
51188         (FP_FMA_Q): Likewise.
51189         (_FP_FRAC_HIGH_DW_Q): Likewise.
51190         * soft-fp/fmasf4.c: New file.
51191         * soft-fp/fmadf4.c: Likewise.
51192         * soft-fp/fmatf4.c: Likewise.
51193
51194 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51195
51196         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
51197         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
51198         Silvermont.
51199         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
51200         macro.
51201         (index_Slow_SSE4_2): Likewise.
51202         (index_Prefer_PMINUB_for_stringop): Likewise.
51203         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
51204         bit_Slow_SSE4_2 is set.
51205         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
51206         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
51207
51208 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51209
51210         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
51211         rtld_global._dl_hwcap2.
51212         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
51213         POWER8.
51214         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
51215         POWER8 feature descriptions defined in _dl_hwcap2.
51216         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
51217         string handling for POWER8 feature bits.
51218         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
51219         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
51220         _dl_powerpc_cap_flags.
51221         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
51222         * sysdeps/powerpc/rtld-global-offsets.sym
51223         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
51224         _dl_hwcap2 in the rtld_global_ro structure.
51225
51226 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51227
51228         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
51229         hardware capabilities in support of AT_HWCAP2.
51230         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
51231         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
51232         GLRO(dl_hwcap2).
51233         (_dl_show_auxv): Add support for calling _dl_procinfo to display
51234         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
51235         explicitly the unknown a_type display mechanism is used.
51236         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
51237         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
51238         struct member.
51239         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
51240         to macro prototype for AT_HWCAP2 support.
51241         * sysdeps/i386/dl-procinfo.h: Likewise.
51242         * sysdeps/s390/dl-procinfo.h: Likewise.
51243         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
51244         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
51245         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
51246         return -1 for unknown a_type display fallback.
51247         * sysdeps/sparc/dl-procinfo.h: Likewise.
51248         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
51249         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
51250
51251 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
51252
51253         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
51254         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
51255
51256 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
51257
51258         [BZ #12492]
51259         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
51260         mprotect making __stack_prot writable.
51261
51262 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
51263             Joseph Myers  <joseph@codesourcery.com>
51264
51265         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
51266         as being properly aligned.
51267
51268 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
51269
51270         * dlfcn/modstatic5.c: New file.
51271         * dlfcn/tststatic5.c: New file.
51272         * dlfcn/Makefile (tests): Add tststatic5.
51273         (tests-static): Likewise.
51274         (modules-names): Add modstatic5.
51275         (tststatic5-ENV): New variable.
51276         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
51277
51278         [BZ #15022]
51279         * elf/dl-support.c (_dl_main_map): New variable.
51280         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
51281         (_dl_nns, _dl_load_adds): Set to 1.
51282         (_dl_initial_searchlist): Refer to _dl_main_map.
51283         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
51284         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
51285         call to _dl_get_origin.
51286         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
51287         around call_map.
51288         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
51289         * dlfcn/modstatic3.c: New file.
51290         * dlfcn/tststatic3.c: New file.
51291         * dlfcn/tststatic4.c: New file.
51292         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
51293         (tests-static): Likewise.
51294         (modules-names): Add modstatic3.
51295         (tststatic3-ENV, tststatic4-ENV): New variables.
51296         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
51297         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
51298
51299 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
51300
51301         * configure.in (CC): Require GCC version 4.4 or later.
51302         * configure: Regenerated.
51303         * manual/install.texi (Tools for Compilation): Update GCC version
51304         requirement.
51305         * INSTALL: Regenerated.
51306
51307 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51308
51309         [BZ #15674]
51310         * string/test-memcmp.c (check2): New.
51311         (main): Call check2.
51312
51313         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
51314
51315 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
51316
51317         [BZ #15022]
51318         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
51319         over to...
51320         (dl_open_worker) [!SHARED]: ... here.
51321
51322 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51323
51324         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
51325
51326 2013-06-25  Richard Henderson  <rth@redhat.com>
51327
51328         * locale/programs/locarchive.c: Include <libc-internal.h>
51329
51330 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
51331
51332         * manual/texinfo.tex: Update to version 2013-06-21.17, with
51333         trailing whitespace removed.
51334
51335 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51336
51337         [BZ #10283]
51338         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
51339         * locale/programs/locarchive.c: Include libc-mmap.h.
51340         (prepare_address_space): Take two new outputs (the mmap base and len).
51341         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
51342         values.
51343         (create_archive): Declare new mmap base and len values for
51344         prepare_address_space, and store the result in ah.
51345         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
51346         (enlarge_archive): If ah->mmap_base is not NULL, use that and
51347         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51348         Declare new mmap base and len values for
51349         prepare_address_space, and store the result in new_ah.
51350         (open_archive): Declare new mmap base and len values for
51351         prepare_address_space, and store the result in ah.
51352         (close_archive): If ah->mmap_base is not NULL, use that and
51353         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51354         * sysdeps/generic/libc-mmap.h: New file.
51355
51356 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51357
51358         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
51359         (ALIGN_UP): Likewise.
51360         (PTR_ALIGN_DOWN): Likewise.
51361         (PTR_ALIGN_UP): Likewise.
51362
51363 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51364
51365         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
51366         entry mapped to PPC_PLATFORM_POWER8.
51367         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
51368         POWER8.
51369         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
51370         (_dl_string_platform): Add case for exporting platform position for
51371         POWER8.
51372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
51373         search path to sysdeps/powerpc/powerpc32/power8 directory.
51374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
51375         search path to sysdeps/powerpc/powerpc64/power8 directory.
51376         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
51377         power7 directories.
51378         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
51379         power7 directories.
51380
51381 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
51382
51383         * INSTALL: Regenerate.
51384
51385         * nscd/connections.c (nscd_init): Fix comment.
51386
51387 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
51388
51389         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
51390
51391         [BZ #15667]
51392         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
51393         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
51394
51395 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51396
51397         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
51398         DL_DST_REQ_STATIC.
51399         (DL_DST_REQ_STATIC): Remove macro.
51400
51401 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
51402
51403         [BZ #7006]
51404         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
51405         with a shift of 0 bits.
51406
51407 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51408
51409         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
51410         $(tststatic-ENV).
51411
51412 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51413
51414         [BZ #15655]
51415         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
51416
51417 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51418
51419         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
51420         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
51421         accepts -fno-tree-loop-distribute-patterns.
51422         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
51423         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
51424         recursive call.
51425         * string/memset.c (memset): Likewise.
51426         * string/test-memmove.c (simple_memmove): Disable loop transformation
51427         to library calls.
51428         * string/test-memset.c (simple_memset): Likewise.
51429         * benchtests/bench-memmove.c (simple_memmove): Likewise.
51430         * benchtests/bench-memset.c (simple_memset): Likewise.
51431         * configure: Regenerated.
51432
51433 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
51434
51435         * math/test-misc.c (main): Ignore fesetround failure when failures
51436         of subsequent rounding tests would be ignored.
51437
51438         [BZ #15654]
51439         * math/fedisblxcpt.c (fedisableexcept): Return 0.
51440         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
51441         * math/fegetenv.c (__fegetenv): Return 0.
51442         * math/fegetexcept.c (fegetexcept): Return 0.
51443         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
51444         FE_TONEAREST.
51445         * math/feholdexcpt.c (feholdexcept): Return 0.
51446         * math/fesetenv.c (__fesetenv): Return 0.
51447         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
51448         argument FE_TONEAREST.
51449         * math/feupdateenv.c (__feupdateenv): Return 0.
51450         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
51451
51452 2013-06-18  Roland McGrath  <roland@hack.frob.com>
51453
51454         * elf/rtld-Rules (rtld-compile-command.S): New variable.
51455         (rtld-compile-command.s, rtld-compile-command.c): New variables.
51456         ($(objpfx)rtld-%.os rules): Use them.
51457
51458 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51459
51460         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
51461         fields.
51462
51463 2013-06-17  Roland McGrath  <roland@hack.frob.com>
51464
51465         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
51466         length of target pattern, then descending length of dependency pattern.
51467         * configure.in (AWK): Require gawk 3.1.2 or newer.
51468         * manual/install.texi (Tools for Compilation): Say that we do.
51469         * configure: Regenerated.
51470
51471         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
51472         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
51473         * scripts/sysd-rules.awk: ... this new script.
51474         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
51475         than a glob-style pattern.
51476
51477 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
51478
51479         * math/test-misc.c (main): Do not treat incorrectly rounded
51480         conversions as failure unless ROUNDING_TESTS passes.
51481
51482 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
51483
51484         [BZ #15631]
51485         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
51486         restore exception state around main square root computation, then
51487         check for inexactness explicitly.
51488
51489         * math/libm-test.inc (fma_test_data): Add another test.
51490
51491 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51492
51493         * manual/threads.texi (Non-POSIX Extensions): New document
51494         node.  Document pthread_getattr_default_np and
51495         pthread_setattr_default_np.
51496
51497         * Versions.def (libpthread): Add GLIBC_2.18.
51498         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
51499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
51500         Likewise.
51501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
51502         Likewise.
51503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
51504         Likewise.
51505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
51506         Likewise.
51507         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
51508         Likewise.
51509         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
51510         Likewise.
51511         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
51512         Likewise.
51513         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
51514         Likewise.
51515         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
51516         Likewise.
51517
51518 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51519
51520         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
51521         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
51522
51523 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51524             H.J. Lu  <hjl.tools@gmail.com>
51525
51526         [BZ #15627]
51527         * sysdeps/x86_64/rtld-memset.c: Remove file.
51528         * sysdeps/x86_64/rtld-memset.S: New file.
51529
51530 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
51531
51532         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
51533         (test_in_one_mode): Take arguments for whether the rounding mode
51534         is supported for each floating-point type.
51535         (do_test): Pass new arguments to test_in_one_mode using
51536         ROUNDING_TESTS.
51537
51538 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51539
51540         * posix/tst-waitid.c (do_test): Distinguish different instances of
51541         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
51542         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
51543         before entering the kernel for waitpid.
51544
51545 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51546
51547         * NEWS: Fix note on clock function precision.  Text by Roland
51548         McGrath.
51549
51550 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51551
51552         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
51553         it into place only when and if the sanity check passes.
51554
51555 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
51556
51557         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
51558         output for whether conversion result is exact.  Take argument
51559         indicating whether type is IBM long double.
51560         (round_for_all): Change need_exact field to ibm_ld.
51561         * stdlib/tst-strtod-round.c (struct exactness): New type.
51562         (struct test): Change bool ld_ok field to struct exactness exact.
51563         (TEST): Update all definitions for change to field.
51564         (tests): Regenerate array contents.
51565         (test_in_one_mode): Take pointer to new field instead of old ld_ok
51566         field value.  Check for IBM long double here.
51567         (do_test): Update calls to test_in_one_mode.
51568
51569 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51570
51571         [BZ #12515]
51572         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
51573         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
51574
51575 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51576
51577         [BZ #15605]
51578         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
51579         generated by the compiler on loop optimizations.
51580         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
51581         general definitions.
51582
51583 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
51584
51585         * math/bug-nextafter.c: Include <math-tests.h>.
51586         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51587         the relevant type.
51588         * math/bug-nexttoward.c: Include <math-tests.h>.
51589         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51590         the relevant type.
51591         * math/test-misc.c: Include <math-tests.h>.
51592         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51593         the relevant type.
51594
51595 2013-06-12  Andreas Jaeger  <aj@suse.de>
51596
51597         * po/ia.po: Update Interlingua translation from translation
51598         project.
51599
51600 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
51601
51602         * include/fenv.h: Include stdbool.h.
51603         (struct rm_ctx): New structure.
51604         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
51605         Define macro.
51606         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
51607         (SET_RESTORE_ROUNDF): Likewise.
51608         (SET_RESTORE_ROUNDL): Likewise.
51609         (SET_RESTORE_ROUND_NOEX): Likewise.
51610         (SET_RESTORE_ROUND_NOEXF): Likewise.
51611         (SET_RESTORE_ROUND_NOEXL): Likewise.
51612         (SET_RESTORE_ROUND_53BIT): Likewise.
51613         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
51614         (libc_feresetround_noexf_ctx): Likewise.
51615         (libc_feresetround_noexl_ctx): Likewise.
51616         (libc_feholdsetround_53bit_ctx): Likewise.
51617         (libc_feresetround_53bit_ctx): Likewise.
51618         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
51619         (libc_feholdexcept_setround_sse_ctx): New function.
51620         (libc_fesetenv_sse_ctx): Likewise.
51621         (libc_feupdateenv_sse_ctx): Likewise.
51622         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
51623         (libc_feholdexcept_setround_387_ctx): Likewise.
51624         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
51625         (libc_feholdsetround_387_prec_ctx): Likewise.
51626         (libc_feholdsetround_387_ctx): Likewise.
51627         (libc_feholdsetround_387_53bit_ctx): Likewise.
51628         (libc_feholdsetround_sse_ctx): Likewise.
51629         (libc_feresetround_sse_ctx): Likewise.
51630         (libc_feresetround_387_ctx): Likewise.
51631         (libc_feupdateenv_387_ctx): Likewise.
51632         (libc_feholdexcept_setroundf_ctx): Define macro.
51633         (libc_fesetenvf_ctx): Likewise.
51634         (libc_feupdateenvf_ctx): Likewise.
51635         (libc_feholdsetroundf_ctx): Likewise.
51636         (libc_feresetroundf_ctx): Likewise.
51637         (libc_feholdexcept_setround_ctx): Likewise.
51638         (libc_fesetenv_ctx): Likewise.
51639         (libc_feupdateenv_ctx): Likewise.
51640         (libc_feholdsetround_ctx): Likewise.
51641         (libc_feresetround_ctx): Likewise.
51642         (libc_feholdexcept_setroundl_ctx): Likewise.
51643         (libc_feupdateenvl_ctx): Likewise.
51644         (libc_feholdsetroundl_ctx): Likewise.
51645         (libc_feresetroundl_ctx): Likewise.
51646         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
51647         (libc_feresetround_53bit_ctx): Likewise.
51648
51649 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51650
51651         * locale/iso-639.def: Convert to UTF-8.
51652
51653 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
51654
51655         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
51656         (EXCEPTION_TESTS_double): Likewise.
51657         (EXCEPTION_TESTS_long_double): Likewise.
51658         (EXCEPTION_TESTS): Likewise.
51659         * math/libm-test.inc (test_exceptions): Only test exceptions if
51660         EXCEPTION_TESTS (FLOAT).
51661
51662 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51663
51664         * benchtests/Makefile (string-bench): Add strcpy_chk and
51665         stpcpy_chk.
51666         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
51667         * benchtests/bench-stpcpy_chk.c: New file.
51668         * benchtests/bench-strcpy_chk-ifunc.c: New file.
51669         * benchtests/bench-strcpy_chk.c: New file.
51670         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
51671         code.
51672         (do_test): Likewise.
51673
51674 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51675
51676         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
51677         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
51678         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
51679         with tabs where appropriate.
51680         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
51681         dl-procinfo.h.
51682         [PPC_PLATFORM_PPC440]: Likewise.
51683         [PPC_PLATFORM_PPC464]: Likewise.
51684         [PPC_PLATFORM_PPC476]: Likewise.
51685         (_dl_string_platform): Add support for detecting ppc405, ppc440,
51686         ppc464, and ppc476 platform strings merging from ports/
51687         dl-procinfo.h.
51688
51689 2013-06-11  Andreas Schwab  <schwab@suse.de>
51690
51691         [BZ #14991]
51692         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
51693         (from_ucs4_idx): Regenerate.
51694         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
51695         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
51696         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
51697         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
51698         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
51699         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
51700         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
51701         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
51702         from FROM_LOOP and TO_LOOP specific macros.
51703         (BODY): Handle combining characters.
51704         * iconvdata/BIG5HKSCS.irreversible: Update.
51705         * iconvdata/BIG5HKSCS.precomposed: New file.
51706         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
51707         characters.
51708         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
51709
51710 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51711
51712         * include/sys/time.h: Fix indentation and add copyright header.
51713
51714         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
51715         (do_test): Likewise.
51716         * string/test-memchr.c (do_one_test): Likewise.
51717         (do_test): Likewise.
51718         * string/test-memcmp.c (do_one_test): Likewise.
51719         (do_test): Likewise.
51720         * string/test-memcpy.c (do_one_test): Likewise.
51721         (do_test): Likewise.
51722         * string/test-memmem.c (do_one_test): Likewise.
51723         (do_test): Likewise.
51724         (do_random_tests): Likewise.
51725         * string/test-memmove.c (do_one_test): Likewise.
51726         (do_test): Likewise.
51727         * string/test-memset.c (do_one_test): Likewise.
51728         (do_test): Likewise.
51729         * string/test-rawmemchr.c (do_one_test): Likewise.
51730         (do_test): Likewise.
51731         * string/test-strcasecmp.c (do_one_test): Likewise.
51732         (do_test): Likewise.
51733         * string/test-strcasestr.c (do_one_test): Likewise.
51734         (do_test): Likewise.
51735         * string/test-strcat.c (do_one_test): Likewise.
51736         (do_test): Likewise.
51737         * string/test-strchr.c (do_one_test): Likewise.
51738         (do_test): Likewise.
51739         * string/test-strcmp.c (do_one_test): Likewise.
51740         (do_test): Likewise.
51741         * string/test-strcpy.c (do_one_test): Likewise.
51742         (do_test): Likewise.
51743         * string/test-string.h: Likewise.
51744         (test_init): Likewise.
51745         * string/test-strlen.c (do_one_test): Likewise.
51746         (do_test): Likewise.
51747         * string/test-strncasecmp.c (do_one_test): Likewise.
51748         (do_test): Likewise.
51749         * string/test-strncat.c (do_one_test): Likewise.
51750         (do_test): Likewise.
51751         * string/test-strncmp.c (do_one_test): Likewise.
51752         (do_test_limit): Likewise.
51753         (do_test): Likewise.
51754         * string/test-strncpy.c (do_one_test): Likewise.
51755         (do_test): Likewise.
51756         * string/test-strnlen.c (do_one_test): Likewise.
51757         (do_test): Likewise.
51758         * string/test-strpbrk.c (do_one_test): Likewise.
51759         (do_test): Likewise.
51760         * string/test-strrchr.c (do_one_test): Likewise.
51761         (do_test): Likewise.
51762         * string/test-strspn.c (do_one_test): Likewise.
51763         (do_test): Likewise.
51764         * string/test-strstr.c (do_one_test): Likewise.
51765         (do_test): Likewise.
51766
51767         * benchtests/Makefile (string-bench): Add string benchmarks.
51768         * benchtests/bench-bcopy-ifunc.c: New file.
51769         * benchtests/bench-bcopy.c: New file.
51770         * benchtests/bench-bzero-ifunc.c: New file.
51771         * benchtests/bench-bzero.c: New file.
51772         * benchtests/bench-memccpy-ifunc.c: New file.
51773         * benchtests/bench-memccpy.c: New file.
51774         * benchtests/bench-memchr-ifunc.c: New file.
51775         * benchtests/bench-memchr.c: New file.
51776         * benchtests/bench-memcmp-ifunc.c: New file.
51777         * benchtests/bench-memcmp.c: New file.
51778         * benchtests/bench-memmem-ifunc.c: New file.
51779         * benchtests/bench-memmem.c: New file.
51780         * benchtests/bench-memmove-ifunc.c: New file.
51781         * benchtests/bench-memmove.c: New file.
51782         * benchtests/bench-mempcpy-ifunc.c: New file.
51783         * benchtests/bench-mempcpy.c: New file.
51784         * benchtests/bench-memset-ifunc.c: New file.
51785         * benchtests/bench-memset.c: New file.
51786         * benchtests/bench-rawmemchr-ifunc.c: New file.
51787         * benchtests/bench-rawmemchr.c: New file.
51788         * benchtests/bench-stpcpy-ifunc.c: New file.
51789         * benchtests/bench-stpcpy.c: New file.
51790         * benchtests/bench-stpncpy-ifunc.c: New file.
51791         * benchtests/bench-stpncpy.c: New file.
51792         * benchtests/bench-strcasecmp-ifunc.c: New file.
51793         * benchtests/bench-strcasecmp.c: New file.
51794         * benchtests/bench-strcasestr-ifunc.c: New file.
51795         * benchtests/bench-strcasestr.c: New file.
51796         * benchtests/bench-strcat-ifunc.c: New file.
51797         * benchtests/bench-strcat.c: New file.
51798         * benchtests/bench-strchr-ifunc.c: New file.
51799         * benchtests/bench-strchr.c: New file.
51800         * benchtests/bench-strchrnul-ifunc.c: New file.
51801         * benchtests/bench-strchrnul.c: New file.
51802         * benchtests/bench-strcmp-ifunc.c: New file.
51803         * benchtests/bench-strcmp.c: New file.
51804         * benchtests/bench-strcpy-ifunc.c: New file.
51805         * benchtests/bench-strcpy.c: New file.
51806         * benchtests/bench-strcspn-ifunc.c: New file.
51807         * benchtests/bench-strcspn.c: New file.
51808         * benchtests/bench-strlen-ifunc.c: New file.
51809         * benchtests/bench-strlen.c: New file.
51810         * benchtests/bench-strncasecmp-ifunc.c: New file.
51811         * benchtests/bench-strncasecmp.c: New file.
51812         * benchtests/bench-strncat-ifunc.c: New file.
51813         * benchtests/bench-strncat.c: New file.
51814         * benchtests/bench-strncmp-ifunc.c: New file.
51815         * benchtests/bench-strncmp.c: New file.
51816         * benchtests/bench-strncpy-ifunc.c: New file.
51817         * benchtests/bench-strncpy.c: New file.
51818         * benchtests/bench-strnlen-ifunc.c: New file.
51819         * benchtests/bench-strnlen.c: New file.
51820         * benchtests/bench-strpbrk-ifunc.c: New file.
51821         * benchtests/bench-strpbrk.c: New file.
51822         * benchtests/bench-strrchr-ifunc.c: New file.
51823         * benchtests/bench-strrchr.c: New file.
51824         * benchtests/bench-strspn-ifunc.c: New file.
51825         * benchtests/bench-strspn.c: New file.
51826         * benchtests/bench-strstr-ifunc.c: New file.
51827         * benchtests/bench-strstr.c: New file.
51828
51829         * benchtests/Makefile: Disable parallel execution of targets.
51830         (string-bench): Add memcpy.
51831         (benchset): New variable to store a list of benchmark sets.
51832         (bench-func): Renamed from bench.
51833         (bench-set): New target.
51834         (bench): Depend on bench-func and bench-set.
51835         * benchtests/README: Add section on benchmark sets.
51836         * benchtests/bench-memcpy-ifunc.c: New file.
51837         * benchtests/bench-memcpy.c: New file.
51838         * benchtests/bench-string.h: New file.
51839
51840 2013-06-11  Andreas Schwab  <schwab@suse.de>
51841
51842         [BZ #15577]
51843         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
51844         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
51845         values in the triple.
51846         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
51847         terminator in the group key.
51848
51849 2013-06-11  Andreas Jaeger  <aj@suse.de>
51850
51851         * po/zh_TW.po: Update Chinese (traditional) translation from
51852         translation project.
51853
51854 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51855
51856         * include/time.h (__clock_gettime): Add libc_hidden_proto.
51857         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
51858         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
51859         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
51860         (clock_getcpuclockid): Likewise.
51861         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
51862         Add weak_alias and libc_hidden_def.
51863         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
51864         * rt/clock_gettime.c (clock_gettime): Rename to
51865         __clock_gettime.  Add weak_alias and libc_hidden_def.
51866         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
51867         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
51868         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
51869         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
51870         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
51871         Likewise.
51872         * rt/clock_settime.c (clock_settime): Rename to
51873         __clock_settime.  Add weak_alias and libc_hidden_def.
51874         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
51875
51876 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
51877
51878         * mach/err_boot.sub: Remove trailing whitespace.
51879         * mach/err_ipc.sub: Likewise.
51880         * mach/err_mach.sub: Likewise.
51881
51882         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
51883         (ROUNDING_TESTS_double): Likewise.
51884         (ROUNDING_TESTS_long_double): Likewise.
51885         (ROUNDING_TESTS): Likewise.
51886         * math/libm-test.inc: Include <math-tests.h>.
51887         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
51888         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
51889         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
51890         (IF_ROUND_INIT_FE_UPWARD): Likewise.
51891
51892 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
51893
51894         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
51895         of assigning.
51896
51897 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
51898
51899         * sysdeps/gnu/errlist.awk: Do not generate space at end of
51900         otherwise empty TRANS lines.
51901         * sysdeps/gnu/errlist.c: Regenerated.
51902
51903         * catgets/gencat.c (error_print): Use (void) in function
51904         definition.
51905         * crypt/crypt_util.c (__init_des): Likewise.
51906         * crypt/speeds.c (Stop): Likewise.
51907         (main): Likewise.
51908         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
51909         * inet/ruserpass.c (token): Likewise.
51910         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
51911         * intl/localealias.c (extend_alias_table): Likewise.
51912         * intl/plural-exp.c (init_germanic_plural): Likewise.
51913         * libio/fcloseall.c (__fcloseall): Likewise.
51914         * libio/genops.c (_IO_flush_all): Likewise.
51915         (_IO_flush_all_linebuffered): Likewise.
51916         (_IO_cleanup): Likewise.
51917         (_IO_iter_begin): Likewise.
51918         (_IO_iter_end): Likewise.
51919         (_IO_list_lock): Likewise.
51920         (_IO_list_unlock): Likewise.
51921         (_IO_list_resetlock): Likewise.
51922         * libio/getchar.c (getchar): Likewise.
51923         * libio/getchar_u.c (getchar_unlocked): Likewise.
51924         * libio/getwchar.c (getwchar): Likewise.
51925         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
51926         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
51927         * login/getpt.c (__getpt): Likewise.
51928         * login/tst-utmp.c (main): Likewise.
51929         * malloc/hooks.c (__malloc_check_init): Likewise.
51930         * malloc/malloc.c (__malloc_stats): Likewise.
51931         * malloc/mtrace.c (tr_break): Likewise.
51932         (mtrace): Likewise.
51933         (muntrace): Likewise.
51934         * misc/fstab.c (endfsent): Likewise.
51935         * misc/getclktck.c (__getclktck): Likewise.
51936         * misc/getdtsz.c (__getdtablesize): Likewise.
51937         * misc/gethostid.c (gethostid): Likewise.
51938         * misc/getpagesize.c (__getpagesize): Likewise.
51939         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
51940         (__get_nprocs): Likewise.
51941         (__get_phys_pages): Likewise.
51942         (__get_avphys_pages): Likewise.
51943         * misc/getttyent.c (getttyent): Likewise.
51944         (setttyent): Likewise.
51945         (endttyent): Likewise.
51946         * misc/getusershell.c (getusershell): Likewise.
51947         (endusershell): Likewise.
51948         (setusershell): Likewise.
51949         (initshells): Likewise.
51950         * misc/hsearch.c (__hdestroy): Likewise.
51951         * misc/sync.c (sync): Likewise.
51952         * misc/syslog.c (closelog_internal): Likewise.
51953         (closelog): Likewise.
51954         * misc/ttyslot.c (ttyslot): Likewise.
51955         * misc/vhangup.c (vhangup): Likewise.
51956         * posix/fork.c (__fork): Likewise.
51957         * posix/getegid.c (__getegid): Likewise.
51958         * posix/geteuid.c (__geteuid): Likewise.
51959         * posix/getgid.c (__getgid): Likewise.
51960         * posix/getpid.c (__getpid): Likewise.
51961         * posix/getppid.c (__getppid): Likewise.
51962         * posix/getuid.c (__getuid): Likewise.
51963         * posix/pause.c (pause): Likewise.
51964         * posix/setpgrp.c (setpgrp): Likewise.
51965         * posix/setsid.c (__setsid): Likewise.
51966         * posix/test-vfork.c (noop): Likewise.
51967         * resolv/gethnamaddr.c (_endhtent): Likewise.
51968         (_gethtent): Likewise.
51969         (ht_endhostent): Likewise.
51970         (gethostent): Likewise.
51971         (dns_service): Likewise.
51972         * stdlib/drand48.c (drand48): Likewise.
51973         * stdlib/lrand48.c (lrand48): Likewise.
51974         * stdlib/mrand48.c (mrand48): Likewise.
51975         * stdlib/rand.c (rand): Likewise.
51976         * stdlib/random.c (__random): Likewise.
51977         * stdlib/setenv.c (clearenv): Likewise.
51978         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
51979         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
51980         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
51981         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
51982         (__get_nprocs): Likewise.
51983         (__get_phys_pages): Likewise.
51984         (__get_avphys_pages): Likewise.
51985         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
51986         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
51987         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
51988         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
51989         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
51990         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
51991         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
51992         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
51993         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
51994         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
51995         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
51996         * sysdeps/mach/hurd/sync.c (sync): Likewise.
51997         * sysdeps/posix/clock.c (clock): Likewise.
51998         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
51999         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
52000         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
52001         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
52002         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
52003         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
52004         (__get_nprocs_conf): Likewise.
52005         (__get_phys_pages): Likewise.
52006         (__get_avphys_pages): Likewise.
52007         * time/clock.c (clock): Likewise.
52008         * time/tzset.c (__tzname_max): Likewise.
52009
52010 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
52011
52012         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
52013         (__bswap_32): Do not use "register".
52014         * crypt/crypt.c (_ufc_doit_r): Likewise.
52015         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
52016         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
52017         * gmon/gmon.c (__monstartup): Likewise.
52018         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
52019         * hurd/hurdmalloc.c (more_memory): Likewise.
52020         (malloc): Likewise.
52021         (free): Likewise.
52022         (realloc): Likewise.
52023         (malloc_fork_prepare): Likewise.
52024         (malloc_fork_parent): Likewise.
52025         (malloc_fork_child): Likewise.
52026         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
52027         (_svcauth_des): Likewise.
52028         * inet/inet_lnaof.c (inet_lnaof): Likewise.
52029         * inet/inet_net.c (inet_network): Likewise.
52030         * inet/inet_netof.c (inet_netof): Likewise.
52031         * inet/rcmd.c (__validuser2_sa): Likewise.
52032         * io/fts.c (fts_open): Likewise.
52033         (fts_load): Likewise.
52034         (fts_close): Likewise.
52035         (fts_read): Likewise.
52036         (fts_children): Likewise.
52037         (fts_build): Likewise.
52038         (fts_stat): Likewise.
52039         (fts_sort): Likewise.
52040         (fts_alloc): Likewise.
52041         (fts_lfree): Likewise.
52042         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
52043         (_IO_file_xsgetn): Likewise.
52044         (_IO_file_xsgetn_mmap): Likewise.
52045         * libio/iofopncook.c (_IO_cookie_read): Likewise.
52046         (_IO_cookie_write): Likewise.
52047         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
52048         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
52049         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
52050         * malloc/obstack.c (_obstack_begin): Likewise.
52051         (_obstack_begin_1): Likewise.
52052         (_obstack_newchunk): Likewise.
52053         (_obstack_allocated_p): Likewise.
52054         (obstack_free): Likewise.
52055         (_obstack_memory_used): Likewise.
52056         * misc/getttyent.c (getttynam): Likewise.
52057         (getttyent): Likewise.
52058         (skip): Likewise.
52059         (value): Likewise.
52060         * misc/getusershell.c (initshells): Likewise.
52061         * misc/syslog.c (__vsyslog_chk): Likewise.
52062         * misc/ttyslot.c (ttyslot): Likewise.
52063         * nis/nis_hash.c (__nis_hash): Likewise.
52064         * posix/fnmatch_loop.c (FCT): Likewise.
52065         * posix/getconf.c (print_all): Likewise.
52066         (main): Likewise.
52067         * posix/getopt.c (exchange): Likewise.
52068         * posix/glob.c (globfree): Likewise.
52069         (prefix_array): Likewise.
52070         (__glob_pattern_type): Likewise.
52071         * resolv/arpa/nameser.h (NS_GET16): Likewise.
52072         (NS_GET32): Likewise.
52073         (NS_PUT16): Likewise.
52074         (NS_PUT32): Likewise.
52075         * resolv/gethnamaddr.c (getanswer): Likewise.
52076         (gethostbyname2): Likewise.
52077         (gethostbyaddr): Likewise.
52078         (_gethtent): Likewise.
52079         (_gethtbyname2): Likewise.
52080         (_gethtbyaddr): Likewise.
52081         * resolv/ns_print.c (dst_s_get_int16): Likewise.
52082         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
52083         * resolv/res_init.c (__res_vinit): Likewise.
52084         (net_mask): Likewise.
52085         * resolv/res_mkquery.c (outchar): Likewise.
52086         (PRINT): Likewise.
52087         * stdio-common/printf_fp.c (outchar): Likewise.
52088         (PRINT): Likewise.
52089         * stdio-common/printf_fphex.c (outchar): Likewise.
52090         (PRINT): Likewise.
52091         * stdio-common/printf_size.c (outchar): Likewise.
52092         (PRINT): Likewise.
52093         * stdio-common/test_rdwr.c (main): Likewise.
52094         * stdio-common/tfformat.c (matches): Likewise.
52095         * stdio-common/vfprintf.c (outchar): Likewise.
52096         (printf_unknown): Likewise.
52097         (buffered_vfprintf): Likewise.
52098         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
52099         * stdio-common/xbug.c (AppendToBuffer): Likewise.
52100         (ReadFile): Likewise.
52101         * stdlib/qsort.c (SWAP): Likewise.
52102         (_quicksort): Likewise.
52103         * stdlib/setenv.c (__add_to_environ): Likewise.
52104         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
52105         * stdlib/strtol_l.c (__strtol_l): Likewise.
52106         * stdlib/tst-strtod.c (main): Likewise.
52107         * stdlib/tst-strtol.c (main): Likewise.
52108         * stdlib/tst-strtoll.c (main): Likewise.
52109         * string/bits/string2.h (__strcmp_cc): Likewise.
52110         (__strcmp_cg): Likewise.
52111         (__strcspn_c1): Likewise.
52112         (__strcspn_c2): Likewise.
52113         (__strcspn_c3): Likewise.
52114         (__strspn_c1): Likewise.
52115         (__strspn_c2): Likewise.
52116         (__strspn_c3): Likewise.
52117         (__strsep_1c): Likewise.
52118         (__strsep_2c): Likewise.
52119         (__strsep_3c): Likewise.
52120         * string/memccpy.c (__memccpy): Likewise.
52121         * string/stpcpy.c (__stpcpy): Likewise.
52122         * string/strcmp.c (strcmp): Likewise.
52123         * string/strrchr.c (strrchr): Likewise.
52124         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
52125         Likewise.
52126         * sysdeps/mach/hurd/getcwd.c
52127         (_hurd_canonicalize_directory_name_internal): Likewise.
52128         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
52129         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
52130         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
52131         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
52132         Likewise, in both definitions.
52133         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
52134         definitions.
52135         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
52136         64] (__bswap_64): Likewise.
52137         * time/test_time.c (main): Likewise.
52138         * time/tzfile.c (__tzfile_read): Likewise.
52139         (__tzfile_compute): Likewise.
52140         * time/tzset.c (__tzset_parse_tz): Likewise.
52141         (tzset_internal): Likewise.
52142         (compute_change): Likewise.
52143         * wcsmbs/wcscat.c (__wcscat): Likewise.
52144         * wcsmbs/wcschr.c (wcschr): Likewise.
52145         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
52146         * wcsmbs/wcscspn.c (wcscspn): Likewise.
52147         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
52148         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
52149         * wcsmbs/wcsspn.c (wcsspn): Likewise.
52150         * wcsmbs/wcsstr.c (wcsstr): Likewise.
52151         * wcsmbs/wmemchr.c (wmemchr): Likewise.
52152         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
52153         * wcsmbs/wmemset.c (wmemset): Likewise.
52154
52155 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
52156
52157         * scripts/config.guess: Update to version 2013-05-16.
52158         * scripts/config.sub: Update to version 2013-04-24.
52159         * scripts/install-sh: Update to version 2011-11-20.07.
52160         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
52161         * scripts/move-if-change: Update to version 2012-01-06 07:23.
52162
52163 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
52164
52165         * debug/fgetws_u_chk.c: Fix leading whitespaces.
52166         * elf/sln.c: Likewise.
52167         * hurd/hurd/ioctl.h: Likewise.
52168         * hurd/hurdmalloc.c: Likewise.
52169         * hurd/xattr.c: Likewise.
52170         * include/shlib-compat.h: Likewise.
52171         * inet/ruserpass.c: Likewise.
52172         * libio/iofgets_u.c: Likewise.
52173         * libio/iofgetws_u.c: Likewise.
52174         * locale/programs/ld-identification.c: Likewise.
52175         * locale/programs/ld-time.c: Likewise.
52176         * mach/msg-destroy.c: Likewise.
52177         * nss/nss_files/files-netgrp.c: Likewise.
52178         * resolv/res_data.c: Likewise.
52179         * soft-fp/op-1.h: Likewise.
52180         * soft-fp/op-2.h: Likewise.
52181         * soft-fp/op-4.h: Likewise.
52182         * soft-fp/op-common.h: Likewise.
52183         * stdio-common/printf_fphex.c: Likewise.
52184         * stdlib/strtod_l.c: Likewise.
52185         * sunrpc/rpc/clnt.h: Likewise.
52186         * sysdeps/generic/framestate.c: Likewise.
52187         * sysdeps/i386/bsd-_setjmp.S: Likewise.
52188         * sysdeps/i386/bsd-setjmp.S: Likewise.
52189         * sysdeps/i386/__longjmp.S: Likewise.
52190         * sysdeps/i386/setjmp.S: Likewise.
52191         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
52192         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
52193         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52194         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
52195         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
52196         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
52197         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
52198         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
52199         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
52200         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
52201         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
52202         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
52203         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
52204         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
52205         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
52206         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
52207         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
52208         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
52209         * sysdeps/ieee754/support.c: Likewise.
52210         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52211         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
52212         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
52213         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
52214         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
52215         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
52216         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
52217         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
52218         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
52219         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
52220         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
52221         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
52222         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
52223         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
52224         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
52225         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
52226         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
52227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
52228
52229 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
52230
52231         * posix/transbug.c: Remove executable mode.
52232
52233 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
52234
52235         * crypt/speeds.c: Remove trailing whitespace.
52236         * dlfcn/default.c: Likewise.
52237         * elf/ifuncdep2.c: Likewise.
52238         * elf/ifuncmain1.c: Likewise.
52239         * elf/ifuncmain1vis.c: Likewise.
52240         * elf/testobj.h: Likewise.
52241         * elf/tst-stackguard1.c: Likewise.
52242         * gmon/sys/gmon.h: Likewise.
52243         * hurd/hurdmsg.c: Likewise.
52244         * hurd/new-fd.c: Likewise.
52245         * hurd/ports-get.c: Likewise.
52246         * iconvdata/ibm1008_420.c: Likewise.
52247         * inet/tst-getni1.c: Likewise.
52248         * inet/tst-getni2.c: Likewise.
52249         * libio/ioungetc.c: Likewise.
52250         * libio/wfiledoalloc.c: Likewise.
52251         * manual/libm-err-tab.pl: Likewise.
52252         * math/w_dremf.c: Likewise.
52253         * misc/ftruncate.c: Likewise.
52254         * posix/bug-glob2.c: Likewise.
52255         * posix/tst-pcre.c: Likewise.
52256         * posix/wait4.c: Likewise.
52257         * resolv/README: Likewise.
52258         * resolv/res_debug.h: Likewise.
52259         * resolv/tst-inet_ntop.c: Likewise.
52260         * setjmp/bug269-setjmp.c: Likewise.
52261         * soft-fp/extended.h: Likewise.
52262         * soft-fp/op-1.h: Likewise.
52263         * soft-fp/op-2.h: Likewise.
52264         * soft-fp/op-4.h: Likewise.
52265         * soft-fp/op-8.h: Likewise.
52266         * soft-fp/testit.c: Likewise.
52267         * stdio-common/bug16.c: Likewise.
52268         * stdlib/random.c: Likewise.
52269         * sunrpc/rpcsvc/rquota.x: Likewise.
52270         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
52271         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
52272         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52273         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
52274         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
52275         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
52276         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
52277         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
52278         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
52279         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
52280         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
52281         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
52282         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
52283         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
52284         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
52285         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
52286         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
52287         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
52288         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
52289         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
52290         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
52291         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
52292         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
52293         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
52294         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
52295         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
52296         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
52297         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
52298         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
52299         * sysdeps/ieee754/s_lib_version.c: Likewise.
52300         * sysdeps/mach/hurd/check_fds.c: Likewise.
52301         * sysdeps/mach/hurd/getsockname.c: Likewise.
52302         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
52303         * sysdeps/mach/hurd/recvfrom.c: Likewise.
52304         * sysdeps/powerpc/bits/link.h: Likewise.
52305         * sysdeps/powerpc/dl-procinfo.c: Likewise.
52306         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
52307         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
52308         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
52309         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52310         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
52311         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
52312         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52313         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
52314         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
52315         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
52316         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
52317         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
52318         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
52319         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
52320         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
52321         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
52322         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
52323         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
52324         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52325         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52326         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
52327         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52328         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
52329         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
52330         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
52331         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
52332         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52333         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52334         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
52335         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
52336         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
52337         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52338         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
52339         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
52340         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52341         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
52342         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
52343         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
52344         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
52345         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
52346         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
52347         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
52348         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
52349         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
52350         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
52351         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
52352         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
52353         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
52354         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
52355         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
52356         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
52357         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52358         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52359         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
52360         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
52361         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
52362         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52363         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
52364         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
52365         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
52366         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
52367         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
52368         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52369         * sysdeps/powerpc/sysdep.h: Likewise.
52370         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
52371         * sysdeps/s390/s390-64/sub_n.S: Likewise.
52372         * sysdeps/sh/dl-trampoline.S: Likewise.
52373         * sysdeps/sh/memset.S: Likewise.
52374         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
52375         * sysdeps/sh/strlen.S: Likewise.
52376         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
52377         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
52378         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
52379         * sysdeps/sparc/sparc32/rem.S: Likewise.
52380         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
52381         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
52382         * sysdeps/sparc/sparc32/strchr.S: Likewise.
52383         * sysdeps/sparc/sparc32/udiv.S: Likewise.
52384         * sysdeps/sparc/sparc32/urem.S: Likewise.
52385         * sysdeps/sparc/sparc64/add_n.S: Likewise.
52386         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
52387         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
52388         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
52389         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
52390         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
52391         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
52392         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
52393         * sysdeps/unix/bsd/times.c: Likewise.
52394         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
52395         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
52396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
52397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
52398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
52399         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
52400         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
52401         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
52402         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
52403         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
52404         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
52405         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
52406         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
52407         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
52408         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
52409         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
52410         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
52411         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
52412         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
52413         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
52414         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
52415         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
52416         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
52417         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
52418         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
52419         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
52420         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
52421         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
52422         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
52423         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
52424         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
52425         * sysdeps/x86_64/strcspn.S: Likewise.
52426
52427 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52428
52429         * locale/C-translit.h: Revert #include <stdint.h> because this is a
52430         generated file.  Regenerate properly from gen-translit.pl.
52431         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
52432         locale/C-translit.h.
52433
52434 2013-06-05  Andreas Schwab  <schwab@suse.de>
52435
52436         [BZ #15100]
52437         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
52438         week as 6 instead of -1.
52439         * time/tst-strptime.c (day_tests): Add test case.
52440
52441 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52442
52443         * sysdeps/generic/math_private.h
52444         (libc_feholdexcept_setround_53bit): Replace with
52445         libc_feholdsetround_53bit.
52446         (libc_feupdateenv_53bit): Replace with
52447         libc_feresetround_53bit.
52448         (SET_RESTORE_ROUND_53BIT): Adjust.
52449
52450 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
52451
52452         * string/test-strchrnul.c: Add copyright header.
52453
52454         * posix/tst-getaddrinfo4.c: Increase test timeout.
52455
52456 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
52457
52458         [BZ #15536]
52459         * math/libm-test.inc (MAX_EXP): Remove
52460         (MIN_EXP): Define.
52461         (ulp): Use MIN_EXP - MANT_DIG.
52462         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
52463
52464 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
52465
52466         * po/be.po: Revert last change.
52467         * po/zh_CN.po: Likewise.
52468         * po/header.pot: Likewise.
52469
52470 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
52471
52472         * Makefile ($(common-objpfx)linkobj/libc.so): Define
52473         link-libc-deps to empty as target-specific variable.
52474         * Makerules (link-libc-args): New variable.
52475         (libc-for-link): Likewise.
52476         (link-libc-deps): Likewise.
52477         (lib%.so): Depend on $(link-libc-deps).  Link with
52478         $(link-libc-args).
52479         (build-module): Link with $(link-libc-args).
52480         (build-module-asneeded): Likewise.
52481         (build-module-helper-objlist): Filter out $(link-libc-deps) from
52482         list of objects.
52483         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
52484         target-specific variable.
52485         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
52486         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
52487         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
52488         libc.
52489         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
52490         libc and ld.so.
52491         ($(objpfx)libpcprofile.so): Likewise.
52492         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
52493         libc_nonshared.a.
52494         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
52495         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
52496         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
52497         $(link-libc-deps).
52498         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
52499         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
52500         * login/Makefile ($(objpfx)libutil.so): Likewise.
52501         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
52502         * math/Makefile ($(objpfx)libm.so): Likewise.
52503         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
52504         $(objpfx)libnsl.so): Define libc-for-link as target-specific
52505         variable instead of depending directly on libc.
52506         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
52507         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
52508         $(link-libc-deps).
52509         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
52510         libc.
52511         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
52512         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
52513         ($(objpfx)libanl.so): Likewise.
52514         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
52515         ld.so.
52516         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
52517         $(link-libc-deps).
52518         * sysdeps/i386/fpu/Makefile: Remove file.
52519         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
52520         ($(objpfx)libm.so): Remove dependency on ld.so.
52521
52522 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
52523
52524         [BZ # 15553]
52525         * nis/yp_xdr.c (XDRMAXNAME): Define.
52526         (XDRMAXRECORD): Define.
52527         (xdr_domainname): Use XDRMAXNAME.
52528         (xdr_mapname): Likewise.
52529         (xdr_peername): Likewise.
52530         (xdr_keydat): Use XDRMAXRECORD.
52531         (xdr_valdat): Likewise.
52532
52533 2013-05-30  Jeff Law  <law@redhat.com>
52534
52535         [BZ #14256]
52536         * manual/errno.texi (ESTALE): Update to account for more than
52537         just NFS file systems.
52538         * sysdeps/gnu/errlist.c: Regenerated.
52539
52540 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
52541
52542         [BZ #15465]
52543         * elf/Makefile (tests): Add tst-null-argv.
52544         (modules-names):  Add tst-null-argv-lib.
52545         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
52546         (tst-null-argv-ENV): Set environment for tst-null-argv.
52547         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
52548         (RTLD_PROGNAME): New macro.
52549         * elf/tst-null-argv.c: New test case.
52550         * elf/tst-null-argv-lib.c: Library for test case.
52551         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
52552         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
52553         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
52554         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
52555         * elf/dl-init.c (call_init): Likewise.
52556         (_dl_init): Likewise.
52557         * elf/dl-load.c (print_search_path): Likewise.
52558         (_dl_map_object): Likewise.
52559         * elf/dl-lookup.c (do_lookup_x): Likewise.
52560         (add_dependency): Likewise.
52561         (_dl_lookup_symbol_x): Likewise.
52562         (_dl_debug_bindings): Likewise.
52563         * elf/dl-open.c (_dl_show_scope): Likewise.
52564         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
52565         * elf/dl-version.c (match_symbol): Likewise.
52566         (_dl_check_map_versions): Likewise.
52567         * elf/rtld.c (dl_main): Likewise.
52568         (print_unresolved): Use RTLD_PROGNAME.
52569         (print_missing_version): Likewise.
52570         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
52571         (elf_machine_rela): Likewise.
52572         * sysdeps/powerpc/powerpc32/dl-machine.c
52573         (__process_machine_rela): Likewise.
52574         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
52575         Likewise.
52576         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
52577         Likewise.
52578         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
52579         Likewise.
52580         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
52581         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
52582         Likewise.
52583         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
52584         Likewise.
52585         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
52586
52587 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
52588
52589         * po/be.po: Add descriptive title.
52590         * po/zh_CN.po: Likewise.
52591         * po/header.pot: Likewise.
52592
52593 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
52594
52595         * locale/programs/locarchive.c (create_archive): Inlucde fname in
52596         error message.
52597         (enlarge_archive): Likewise.
52598
52599 2013-05-28  Ben North  <ben@redfrontdoor.org>
52600
52601         * manual/arith.texi (frexp): It is the magnitude of the return
52602         value which lies in [0.5, 1), not the return value itself.
52603
52604 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52605
52606         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52607
52608 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
52609
52610         * stdio-common/bug26.c (main): Correct fscanf template.
52611
52612         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
52613         declare _dl_skip_args.
52614
52615         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
52616         Don't declare.
52617
52618         * manual/platform.texi: Add missing @end deftypefun.
52619
52620 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
52621
52622         [BZ #15529]
52623         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
52624         bit of mantissa of 2^16382.
52625         * math/libm-test.inc (hypot_test_data): Add more tests.
52626
52627         * math/libm-test.inc: Add drem and pow10 to list of tested
52628         functions.
52629         (pow10_test): New function.
52630         (drem_test): Likewise.
52631         (drem_test_tonearest): Likewise.
52632         (drem_test_towardzero): Likewise.
52633         (drem_test_downward): Likewise.
52634         (drem_test_upward): Likewise.
52635         (main): Call the new functions.
52636
52637         * math/libm-test.inc (finite_test_data): Remove.
52638         (finite_test): Run tests from isfinite_test_data.
52639         (gamma_test_data): Remove.
52640         (gamma_test): Run tests from lgamma_test_data.
52641         * sysdeps/i386/fpu/libm-test-ulps: Update.
52642         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52643
52644 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52645
52646         * manual/platform.texi: Add PowerPC PPR function set documentation.
52647         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
52648         implementation.
52649
52650 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
52651
52652         * math/libm-test.inc (MAX_EXP): Define.
52653         (ULPDIFF): Define.
52654         (ulp): New function.
52655         (check_float_internal): Use ULPDIFF.
52656         (cpow_test): Disable failing test.
52657         (check_ulp): Test ulp() implemetnation.
52658         (main): Call check_ulp before starting tests.
52659
52660 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
52661
52662         * math/gen-libm-test.pl (generate_testfile): Do not handle
52663         START_DATA and END_DATA.
52664         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
52665         END_DATA.
52666         (acos_tonearest_test_data): Likewise.
52667         (acos_towardzero_test_data): Likewise.
52668         (acos_downward_test_data): Likewise.
52669         (acos_upward_test_data): Likewise.
52670         (acosh_test_data): Likewise.
52671         (asin_test_data): Likewise.
52672         (asin_tonearest_test_data): Likewise.
52673         (asin_towardzero_test_data): Likewise.
52674         (asin_downward_test_data): Likewise.
52675         (asin_upward_test_data): Likewise.
52676         (asinh_test_data): Likewise.
52677         (atan_test_data): Likewise.
52678         (atanh_test_data): Likewise.
52679         (atan2_test_data): Likewise.
52680         (cabs_test_data): Likewise.
52681         (cacos_test_data): Likewise.
52682         (cacosh_test_data): Likewise.
52683         (carg_test_data): Likewise.
52684         (casin_test_data): Likewise.
52685         (casinh_test_data): Likewise.
52686         (catan_test_data): Likewise.
52687         (catanh_test_data): Likewise.
52688         (cbrt_test_data): Likewise.
52689         (ccos_test_data): Likewise.
52690         (ccosh_test_data): Likewise.
52691         (ceil_test_data): Likewise.
52692         (cexp_test_data): Likewise.
52693         (cimag_test_data): Likewise.
52694         (clog_test_data): Likewise.
52695         (clog10_test_data): Likewise.
52696         (conj_test_data): Likewise.
52697         (copysign_test_data): Likewise.
52698         (cos_test_data): Likewise.
52699         (cos_tonearest_test_data): Likewise.
52700         (cos_towardzero_test_data): Likewise.
52701         (cos_downward_test_data): Likewise.
52702         (cos_upward_test_data): Likewise.
52703         (cosh_test_data): Likewise.
52704         (cosh_tonearest_test_data): Likewise.
52705         (cosh_towardzero_test_data): Likewise.
52706         (cosh_downward_test_data): Likewise.
52707         (cosh_upward_test_data): Likewise.
52708         (cpow_test_data): Likewise.
52709         (cproj_test_data): Likewise.
52710         (creal_test_data): Likewise.
52711         (csin_test_data): Likewise.
52712         (csinh_test_data): Likewise.
52713         (csqrt_test_data): Likewise.
52714         (ctan_test_data): Likewise.
52715         (ctan_tonearest_test_data): Likewise.
52716         (ctan_towardzero_test_data): Likewise.
52717         (ctan_downward_test_data): Likewise.
52718         (ctan_upward_test_data): Likewise.
52719         (ctanh_test_data): Likewise.
52720         (ctanh_tonearest_test_data): Likewise.
52721         (ctanh_towardzero_test_data): Likewise.
52722         (ctanh_downward_test_data): Likewise.
52723         (ctanh_upward_test_data): Likewise.
52724         (erf_test_data): Likewise.
52725         (erfc_test_data): Likewise.
52726         (exp_test_data): Likewise.
52727         (exp_tonearest_test_data): Likewise.
52728         (exp_towardzero_test_data): Likewise.
52729         (exp_downward_test_data): Likewise.
52730         (exp_upward_test_data): Likewise.
52731         (exp10_test_data): Likewise.
52732         (exp2_test_data): Likewise.
52733         (expm1_test_data): Likewise.
52734         (fabs_test_data): Likewise.
52735         (fdim_test_data): Likewise.
52736         (finite_test_data): Likewise.
52737         (floor_test_data): Likewise.
52738         (fma_test_data): Likewise.
52739         (fma_towardzero_test_data): Likewise.
52740         (fma_downward_test_data): Likewise.
52741         (fma_upward_test_data): Likewise.
52742         (fmax_test_data): Likewise.
52743         (fmin_test_data): Likewise.
52744         (fmod_test_data): Likewise.
52745         (fpclassify_test_data): Likewise.
52746         (frexp_test_data): Likewise.
52747         (gamma_test_data): Likewise.
52748         (hypot_test_data): Likewise.
52749         (ilogb_test_data): Likewise.
52750         (isfinite_test_data): Likewise.
52751         (isgreater_test_data): Likewise.
52752         (isgreaterequal_test_data): Likewise.
52753         (isinf_test_data): Likewise.
52754         (isless_test_data): Likewise.
52755         (islessequal_test_data): Likewise.
52756         (islessgreater_test_data): Likewise.
52757         (isnan_test_data): Likewise.
52758         (isnormal_test_data): Likewise.
52759         (issignaling_test_data): Likewise.
52760         (isunordered_test_data): Likewise.
52761         (j0_test_data): Likewise.
52762         (j1_test_data): Likewise.
52763         (jn_test_data): Likewise.
52764         (ldexp_test_data): Likewise.
52765         (lgamma_test_data): Likewise.
52766         (lrint_test_data): Likewise.
52767         (lrint_tonearest_test_data): Likewise.
52768         (lrint_towardzero_test_data): Likewise.
52769         (lrint_downward_test_data): Likewise.
52770         (lrint_upward_test_data): Likewise.
52771         (llrint_test_data): Likewise.
52772         (llrint_tonearest_test_data): Likewise.
52773         (llrint_towardzero_test_data): Likewise.
52774         (llrint_downward_test_data): Likewise.
52775         (llrint_upward_test_data): Likewise.
52776         (log_test_data): Likewise.
52777         (log10_test_data): Likewise.
52778         (log1p_test_data): Likewise.
52779         (log2_test_data): Likewise.
52780         (logb_test_data): Likewise.
52781         (logb_downward_test_data): Likewise.
52782         (lround_test_data): Likewise.
52783         (llround_test_data): Likewise.
52784         (modf_test_data): Likewise.
52785         (nearbyint_test_data): Likewise.
52786         (nextafter_test_data): Likewise.
52787         (nexttoward_test_data): Likewise.
52788         (pow_test_data): Likewise.
52789         (pow_tonearest_test_data): Likewise.
52790         (pow_towardzero_test_data): Likewise.
52791         (pow_downward_test_data): Likewise.
52792         (pow_upward_test_data): Likewise.
52793         (remainder_test_data): Likewise.
52794         (remainder_tonearest_test_data): Likewise.
52795         (remainder_towardzero_test_data): Likewise.
52796         (remainder_downward_test_data): Likewise.
52797         (remainder_upward_test_data): Likewise.
52798         (remquo_test_data): Likewise.
52799         (rint_test_data): Likewise.
52800         (rint_tonearest_test_data): Likewise.
52801         (rint_towardzero_test_data): Likewise.
52802         (rint_downward_test_data): Likewise.
52803         (rint_upward_test_data): Likewise.
52804         (round_test_data): Likewise.
52805         (scalb_test_data): Likewise.
52806         (scalbn_test_data): Likewise.
52807         (scalbln_test_data): Likewise.
52808         (signbit_test_data): Likewise.
52809         (sin_test_data): Likewise.
52810         (sin_tonearest_test_data): Likewise.
52811         (sin_towardzero_test_data): Likewise.
52812         (sin_downward_test_data): Likewise.
52813         (sin_upward_test_data): Likewise.
52814         (sincos_test_data): Likewise.
52815         (sinh_test_data): Likewise.
52816         (sinh_tonearest_test_data): Likewise.
52817         (sinh_towardzero_test_data): Likewise.
52818         (sinh_downward_test_data): Likewise.
52819         (sinh_upward_test_data): Likewise.
52820         (sqrt_test_data): Likewise.
52821         (tan_test_data): Likewise.
52822         (tan_tonearest_test_data): Likewise.
52823         (tan_towardzero_test_data): Likewise.
52824         (tan_downward_test_data): Likewise.
52825         (tan_upward_test_data): Likewise.
52826         (tanh_test_data): Likewise.
52827         (tgamma_test_data): Likewise.
52828         (trunc_test_data): Likewise.
52829         (y0_test_data): Likewise.
52830         (y1_test_data): Likewise.
52831         (yn_test_data): Likewise.
52832         (significand_test_data): Likewise.
52833
52834         * math/gen-libm-test.pl (@functions): Remove variable.
52835         (generate_testfile): Don't handle START and END lines.
52836         * math/libm-test.inc (START): New macro.
52837         (END): Likewise.
52838         (END_COMPLEX): Likewise.
52839         (acos_test): Use END macro without arguments.
52840         (acos_test_tonearest): Likewise.
52841         (acos_test_towardzero): Likewise.
52842         (acos_test_downward): Likewise.
52843         (acos_test_upward): Likewise.
52844         (acosh_test): Likewise.
52845         (asin_test): Likewise.
52846         (asin_test_tonearest): Likewise.
52847         (asin_test_towardzero): Likewise.
52848         (asin_test_downward): Likewise.
52849         (asin_test_upward): Likewise.
52850         (asinh_test): Likewise.
52851         (atan_test): Likewise.
52852         (atanh_test): Likewise.
52853         (atan2_test): Likewise.
52854         (cabs_test): Likewise.
52855         (cacos_test): Use END_COMPLEX macro without arguments.
52856         (cacosh_test): Likewise.
52857         (carg_test): Use END macro without arguments.
52858         (casin_test): Use END_COMPLEX macro without arguments.
52859         (casinh_test): Likewise.
52860         (catan_test): Likewise.
52861         (catanh_test): Likewise.
52862         (cbrt_test): Use END macro without arguments.
52863         (ccos_test): Use END_COMPLEX macro without arguments.
52864         (ccosh_test): Likewise.
52865         (ceil_test): Use END macro without arguments.
52866         (cexp_test): Use END_COMPLEX macro without arguments.
52867         (cimag_test): Use END macro without arguments.
52868         (clog_test): Use END_COMPLEX macro without arguments.
52869         (clog10_test): Likewise.
52870         (conj_test): Likewise.
52871         (copysign_test): Use END macro without arguments.
52872         (cos_test): Likewise.
52873         (cos_test_tonearest): Likewise.
52874         (cos_test_towardzero): Likewise.
52875         (cos_test_downward): Likewise.
52876         (cos_test_upward): Likewise.
52877         (cosh_test): Likewise.
52878         (cosh_test_tonearest): Likewise.
52879         (cosh_test_towardzero): Likewise.
52880         (cosh_test_downward): Likewise.
52881         (cosh_test_upward): Likewise.
52882         (cpow_test): Use END_COMPLEX macro without arguments.
52883         (cproj_test): Likewise.
52884         (creal_test): Use END macro without arguments.
52885         (csin_test): Use END_COMPLEX macro without arguments.
52886         (csinh_test): Likewise.
52887         (csqrt_test): Likewise.
52888         (ctan_test): Likewise.
52889         (ctan_test_tonearest): Likewise.
52890         (ctan_test_towardzero): Likewise.
52891         (ctan_test_downward): Likewise.
52892         (ctan_test_upward): Likewise.
52893         (ctanh_test): Likewise.
52894         (ctanh_test_tonearest): Likewise.
52895         (ctanh_test_towardzero): Likewise.
52896         (ctanh_test_downward): Likewise.
52897         (ctanh_test_upward): Likewise.
52898         (erf_test): Use END macro without arguments.
52899         (erfc_test): Likewise.
52900         (exp_test): Likewise.
52901         (exp_test_tonearest): Likewise.
52902         (exp_test_towardzero): Likewise.
52903         (exp_test_downward): Likewise.
52904         (exp_test_upward): Likewise.
52905         (exp10_test): Likewise.
52906         (exp2_test): Likewise.
52907         (expm1_test): Likewise.
52908         (fabs_test): Likewise.
52909         (fdim_test): Likewise.
52910         (finite_test): Likewise.
52911         (floor_test): Likewise.
52912         (fma_test): Likewise.
52913         (fma_test_towardzero): Likewise.
52914         (fma_test_downward): Likewise.
52915         (fma_test_upward): Likewise.
52916         (fmax_test): Likewise.
52917         (fmin_test): Likewise.
52918         (fmod_test): Likewise.
52919         (fpclassify_test): Likewise.
52920         (frexp_test): Likewise.
52921         (gamma_test): Likewise.
52922         (hypot_test): Likewise.
52923         (ilogb_test): Likewise.
52924         (isfinite_test): Likewise.
52925         (isgreater_test): Likewise.
52926         (isgreaterequal_test): Likewise.
52927         (isinf_test): Likewise.
52928         (isless_test): Likewise.
52929         (islessequal_test): Likewise.
52930         (islessgreater_test): Likewise.
52931         (isnan_test): Likewise.
52932         (isnormal_test): Likewise.
52933         (issignaling_test): Likewise.
52934         (isunordered_test): Likewise.
52935         (j0_test): Likewise.
52936         (j1_test): Likewise.
52937         (jn_test): Likewise.
52938         (ldexp_test): Likewise.
52939         (lgamma_test): Likewise.
52940         (lrint_test): Likewise.
52941         (lrint_test_tonearest): Likewise.
52942         (lrint_test_towardzero): Likewise.
52943         (lrint_test_downward): Likewise.
52944         (lrint_test_upward): Likewise.
52945         (llrint_test): Likewise.
52946         (llrint_test_tonearest): Likewise.
52947         (llrint_test_towardzero): Likewise.
52948         (llrint_test_downward): Likewise.
52949         (llrint_test_upward): Likewise.
52950         (log_test): Likewise.
52951         (log10_test): Likewise.
52952         (log1p_test): Likewise.
52953         (log2_test): Likewise.
52954         (logb_test): Likewise.
52955         (logb_test_downward): Likewise.
52956         (lround_test): Likewise.
52957         (llround_test): Likewise.
52958         (modf_test): Likewise.
52959         (nearbyint_test): Likewise.
52960         (nextafter_test): Likewise.
52961         (nexttoward_test): Likewise.
52962         (pow_test): Likewise.
52963         (pow_test_tonearest): Likewise.
52964         (pow_test_towardzero): Likewise.
52965         (pow_test_downward): Likewise.
52966         (pow_test_upward): Likewise.
52967         (remainder_test): Likewise.
52968         (remainder_test_tonearest): Likewise.
52969         (remainder_test_towardzero): Likewise.
52970         (remainder_test_downward): Likewise.
52971         (remainder_test_upward): Likewise.
52972         (remquo_test): Likewise.
52973         (rint_test): Likewise.
52974         (rint_test_tonearest): Likewise.
52975         (rint_test_towardzero): Likewise.
52976         (rint_test_downward): Likewise.
52977         (rint_test_upward): Likewise.
52978         (round_test): Likewise.
52979         (scalb_test): Likewise.
52980         (scalbn_test): Likewise.
52981         (scalbln_test): Likewise.
52982         (signbit_test): Likewise.
52983         (sin_test): Likewise.
52984         (sin_test_tonearest): Likewise.
52985         (sin_test_towardzero): Likewise.
52986         (sin_test_downward): Likewise.
52987         (sin_test_upward): Likewise.
52988         (sincos_test): Likewise.
52989         (sinh_test): Likewise.
52990         (sinh_test_tonearest): Likewise.
52991         (sinh_test_towardzero): Likewise.
52992         (sinh_test_downward): Likewise.
52993         (sinh_test_upward): Likewise.
52994         (sqrt_test): Likewise.
52995         (tan_test): Likewise.
52996         (tan_test_tonearest): Likewise.
52997         (tan_test_towardzero): Likewise.
52998         (tan_test_downward): Likewise.
52999         (tan_test_upward): Likewise.
53000         (tanh_test): Likewise.
53001         (tgamma_test): Likewise.
53002         (trunc_test): Likewise.
53003         (y0_test): Likewise.
53004         (y1_test): Likewise.
53005         (yn_test): Likewise.
53006         (significand_test): Likewise.
53007
53008 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
53009
53010         [BZ #15381]
53011         * libio/genops.c (_IO_no_init): Initialize wide struct info.
53012
53013 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
53014
53015         [BZ #14894]
53016         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
53017         __ppc_mdoio and __ppc_mdoom.
53018         * manual/platform.texi: Document new functions __ppc_yield,
53019         __ppc_mdoio and __ppc_mdoom.
53020
53021 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
53022
53023         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
53024         (main): Mention "tls" pseudo-hwcap is legacy.
53025         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
53026
53027 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53028
53029         * math/gen-libm-test.pl (parse_args): Output only string of
53030         arguments as text for test name, not full call or descriptions of
53031         tests for extra outputs.
53032         (generate_testfile): Do not pass function name to parse_args.
53033         Generate this_func variable from START.
53034         * math/libm-test.inc (struct test_f_f_data): Rename test_name
53035         field to arg_str.
53036         (struct test_ff_f_data): Likewise.
53037         (test_ff_f_data_nexttoward): Likewise.
53038         (struct test_fi_f_data): Likewise.
53039         (struct test_fl_f_data): Likewise.
53040         (struct test_if_f_data): Likewise.
53041         (struct test_fff_f_data): Likewise.
53042         (struct test_c_f_data): Likewise.
53043         (struct test_f_f1_data): Likewise.  Remove field extra_name.
53044         (struct test_fF_f1_data): Likewise.
53045         (struct test_ffI_f1_data): Likewise.
53046         (struct test_c_c_data): Rename test_name field to arg_str.
53047         (struct test_cc_c_data): Likewise.
53048         (struct test_f_i_data): Likewise.
53049         (struct test_ff_i_data): Likewise.
53050         (struct test_f_l_data): Likewise.
53051         (struct test_f_L_data): Likewise.
53052         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
53053         and extra2_name.
53054         (COMMON_TEST_SETUP): New macro.
53055         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
53056         (COMMON_TEST_CLEANUP): Likewise.
53057         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
53058         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
53059         macros.
53060         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
53061         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
53062         macros.
53063         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
53064         (RUN_TEST_fff_f): Take argument string.  Call new setup and
53065         cleanup macros.
53066         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
53067         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
53068         macros.
53069         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
53070         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
53071         macros.
53072         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53073         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
53074         cleanup macros.
53075         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53076         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
53077         cleanup macros.
53078         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53079         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
53080         cleanup macros.
53081         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53082         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
53083         macros.
53084         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
53085         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
53086         macros.
53087         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
53088         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
53089         macros.
53090         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
53091         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
53092         cleanup macros.
53093         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
53094         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
53095         cleanup macros.
53096         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
53097         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
53098         macros.
53099         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
53100         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
53101         cleanup macros.
53102         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
53103         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
53104         macros.
53105         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
53106         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
53107         macros.
53108         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
53109         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
53110         cleanup macros.
53111         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
53112
53113 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
53114
53115         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
53116         to _sifields.sigfault.
53117         (si_addr_lsb): Define new macro.
53118         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
53119         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
53120         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
53121
53122 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
53123
53124         [BZ #15441]
53125         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
53126         returns -1.
53127         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
53128         null return -1.
53129         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
53130         loading the domain.
53131
53132 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53133
53134         * math/gen-libm-test.pl (parse_args): Do not include expected
53135         result in test name.
53136         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
53137         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53138         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53139         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53140         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53142
53143 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
53144
53145         * benchtests/Makefile: Sort function entries.
53146
53147         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
53148         tanh, asinh, acosh, atanh.
53149         * benchtests/acos-inputs: New file.
53150         * benchtests/acosh-inputs: New file.
53151         * benchtests/asin-inputs: New file.
53152         * benchtests/asinh-inputs: New file.
53153         * benchtests/atanh-inputs: New file.
53154         * benchtests/cosh-inputs: New file.
53155         * benchtests/log-inputs: New file.
53156         * benchtests/sinh-inputs: New file.
53157         * benchtests/tanh-inputs: New file.
53158
53159 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
53160
53161         [BZ #15339]
53162         * posix/tst-getaddrinfo4.c: New test.
53163         * posix/Makefile (tests): Add it.
53164
53165 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53166
53167         [BZ #15339]
53168         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
53169         when no services were used.
53170         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
53171         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
53172
53173 2013-05-21  Andreas Schwab  <schwab@suse.de>
53174
53175         [BZ #15014]
53176         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
53177         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
53178         successful.
53179         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
53180         redundant variable declarations and reallocation of buffer when
53181         parsing as IPv6 address.  Always set NSS status when called from
53182         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
53183         buffer too small.  Correct computation of needed size.
53184         * nss/Makefile (tests): Add test-digits-dots.
53185         * nss/test-digits-dots.c: New test.
53186
53187 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53188
53189         * benchtests/Makefile: Remove instructions for adding
53190         benchmark tests.
53191         * benchtests/README: New file to explain how to execute and
53192         enhance the benchmark tests.
53193
53194 2013-05-21  Andreas Schwab  <schwab@suse.de>
53195
53196         [BZ #15493]
53197         * setjmp/Makefile (tests): Add tst-sigsetjmp.
53198         * setjmp/tst-sigsetjmp.c: New test.
53199
53200 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53201
53202         * sysdeps/x86_64/memset.S (memset): New implementation.
53203         (__bzero): Likewise.
53204         (__memset_tail): New function.
53205
53206 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53207
53208         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
53209         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
53210         __memcpy_sse2_unaligned ifunc selection.
53211         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
53212         Add memcpy-sse2-unaligned.S.
53213         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
53214         Add: __memcpy_sse2_unaligned.
53215
53216 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
53217
53218         [BZ #15490]
53219         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53220         math_force_eval before restoring floating-point envrionment.
53221         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
53222         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
53223         Likewise.
53224         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
53225         <math_private.h>.
53226         (__nearbyintl): Use math_force_eval before restoring
53227         floating-point environment.
53228         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
53229
53230         * math/gen-libm-test.pl (special_functions): Remove.
53231         (parse_args): Don't handle TEST_extra.  Handle functions with no
53232         return value.
53233         * math/libm-test.inc (struct test_sincos_data): Replace with
53234         struct test_fFF_11_data.
53235         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
53236         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
53237         (sincos_test_data): Change element type to struct
53238         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
53239         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
53240         RUN_TEST_LOOP_sincos.
53241         * math/README.libm-test: Don't mention special handling of
53242         individual functions.
53243         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
53244         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53245         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53246         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53247         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53249
53250         * math/gen-libm-test.pl (get_variable): Remove function.
53251         (parse_args): Don't show pointer parameters to call in test
53252         names.  Use "extra output N" in test names for extra outputs
53253         rather than naming variables.
53254
53255 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
53256
53257         [BZ #15488]
53258         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
53259         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
53260         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
53261         double tests.
53262         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
53263         disable.
53264         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
53265         check_long_double.
53266
53267         * math/gen-libm-test.pl (@tests): Remove variable.
53268         ($count): Likewise.
53269         (new_test): Remove function.
53270         (show_exceptions): New function.
53271         (special_functions): Use show_exceptions instead of new_test.
53272         (parse_args): Likewise.
53273         (generate_testfile): Pass only function name in generated call to
53274         print_max_error or print_complex_max_error.
53275         (get_ulps): Do not handle complex tests specially.
53276         (output_test): Rename to ...
53277         (get_all_ulps_for_test): ... this.  Return a string rather than
53278         printing to a file.  Require ulps to be present.
53279         (output_ulps): Generate arrays rather than #defines.
53280         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
53281         (struct ulp_data): New type.
53282         (BUILD_COMPLEX_ULP): Remove macro.
53283         (compare_ulp_data): New function.
53284         (find_ulps): Likewise.
53285         (find_test_ulps): Likewise.
53286         (find_function_ulps): Likewise.
53287         (find_complex_function_ulps): Likewise.
53288         (print_max_error): Determine allowed ulps using
53289         find_function_ulps.
53290         (print_complex_max_error): Determine allowed ulps using
53291         find_complex_function_ulps.
53292         (check_float_internal): Determine max ulps using find_test_ulps.
53293         (check_float): Do not take max_ulp parameter.  Update call to
53294         check_float_internal.
53295         (check_complex): Likewise.
53296         (check_int): Do not take max_ulp parameter.
53297         (check_long): Likewise.
53298         (check_bool): Likewise.
53299         (check_longlong): Likewise.
53300         (struct test_f_f_data): Remove max_ulp field.
53301         (struct test_ff_f_data): Likewise.
53302         (struct test_ff_f_data_nexttoward): Likewise.
53303         (struct test_fi_f_data): Likewise.
53304         (struct test_fl_f_data): Likewise.
53305         (struct test_if_f_data): Likewise.
53306         (struct test_fff_f_data): Likewise.
53307         (struct test_c_f_data): Likewise.
53308         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
53309         (struct test_fF_f1_data): Likewise.
53310         (struct test_ffI_f1_data): Likewise.
53311         (struct test_c_c_data): Remove max_ulp field.
53312         (struct test_cc_c_data): Likewise.
53313         (struct test_f_i_data): Likewise.
53314         (struct test_ff_i_data): Likewise.
53315         (struct test_f_l_data): Likewise.
53316         (struct test_f_L_data): Likewise.
53317         (struct test_sincos_data): Likewise.
53318         (RUN_TEST_f_f): Do not handle ulps.
53319         (RUN_TEST_LOOP_f_f): Likewise.
53320         (RUN_TEST_2_f): Likewise.
53321         (RUN_TEST_LOOP_2_f): Likewise.
53322         (RUN_TEST_fff_f): Likewise.
53323         (RUN_TEST_LOOP_fff_f): Likewise.
53324         (RUN_TEST_c_f): Likewise.
53325         (RUN_TEST_LOOP_c_f): Likewise.
53326         (RUN_TEST_f_f1): Likewise.
53327         (RUN_TEST_LOOP_f_f1): Likewise.
53328         (RUN_TEST_fF_f1): Likewise.
53329         (RUN_TEST_LOOP_fF_f1): Likewise.
53330         (RUN_TEST_fI_f1): Likewise.
53331         (RUN_TEST_LOOP_fI_f1): Likewise.
53332         (RUN_TEST_ffI_f1): Likewise.
53333         (RUN_TEST_LOOP_ffI_f1): Likewise.
53334         (RUN_TEST_c_c): Likewise.
53335         (RUN_TEST_LOOP_c_c): Likewise.
53336         (RUN_TEST_cc_c): Likewise.
53337         (RUN_TEST_LOOP_cc_c): Likewise.
53338         (RUN_TEST_f_i): Likewise.
53339         (RUN_TEST_LOOP_f_i): Likewise.
53340         (RUN_TEST_f_i_tg): Likewise.
53341         (RUN_TEST_LOOP_f_i_tg): Likewise.
53342         (RUN_TEST_ff_i_tg): Likewise.
53343         (RUN_TEST_LOOP_ff_i_tg): Likewise.
53344         (RUN_TEST_f_b): Likewise.
53345         (RUN_TEST_LOOP_f_b): Likewise.
53346         (RUN_TEST_f_b_tg): Likewise.
53347         (RUN_TEST_LOOP_f_b_tg): Likewise.
53348         (RUN_TEST_f_l): Likewise.
53349         (RUN_TEST_LOOP_f_l): Likewise.
53350         (RUN_TEST_f_L): Likewise.
53351         (RUN_TEST_LOOP_f_L): Likewise.
53352         (RUN_TEST_sincos): Likewise.
53353         (RUN_TEST_LOOP_sincos): Likewise.
53354
53355 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
53356
53357         [BZ #15480]
53358         [BZ #15485]
53359         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
53360         main case of finite arguments, set rounding mode to FE_TONEAREST
53361         and discard exceptions.
53362         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
53363         exceptions.
53364         (remainder_tonearest_test_data): New variable.
53365         (remainder_test_tonearest): New function.
53366         (remainder_towardzero_test_data): New variable.
53367         (remainder_test_towardzero): New function.
53368         (remainder_downward_test_data): New variable.
53369         (remainder_test_downward): New function.
53370         (remainder_upward_test_data): New variable.
53371         (remainder_test_upward): New function.
53372         (main): Call the new test functions.
53373
53374         * math/libm-test.inc (struct test_f_f1_data): Remove field
53375         extra_init.
53376         (struct test_fF_f1_data): Likewise.
53377         (struct test_ffI_f1_data): Likewise.
53378         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
53379         based on value of EXTRA_EXPECTED.
53380         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53381         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
53382         EXTRA_VAR based on value of EXTRA_EXPECTED.
53383         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53384         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
53385         EXTRA_VAR based on value of EXTRA_EXPECTED.
53386         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53387         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
53388         EXTRA_VAR based on value of EXTRA_EXPECTED.
53389         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53390         * math/gen-libm-test.pl (parse_args): Don't output initializers
53391         for extra output values.
53392
53393         * math/libm-test.inc (check_int): Expect result to be exactly
53394         equal to expected value and do not handle ulps.
53395         (check_long): Likewise.
53396         (check_longlong): Likewise.
53397
53398         * math/libm-test.inc (ceil_test_data): Test for "inexact"
53399         exceptions.
53400         (cimag_test_data): Likewise.
53401         (conj_test_data): Likewise.
53402         (copysign_test_data): Likewise.
53403         (cproj_test_data): Likewise.
53404         (creal_test_data): Likewise.
53405         (fabs_test_data): Likewise.
53406         (fdim_test_data): Likewise.
53407         (finite_test_data): Likewise.
53408         (floor_test_data): Likewise.
53409         (fmax_test_data): Likewise.
53410         (fmin_test_data): Likewise.
53411         (fmod_test_data): Likewise.
53412         (fpclassify_test_data): Likewise.
53413         (frexp_test_data): Likewise.
53414         (ilogb_test_data): Likewise.
53415         (isfinite_test_data): Likewise.
53416         (isgreater_test_data): Likewise.
53417         (isgreaterequal_test_data): Likewise.
53418         (isinf_test_data): Likewise.
53419         (isless_test_data): Likewise.
53420         (islessequal_test_data): Likewise.
53421         (islessgreater_test_data): Likewise.
53422         (isnan_test_data): Likewise.
53423         (isnormal_test_data): Likewise.
53424         (issignaling_test_data): Likewise.
53425         (isunordered_test_data): Likewise.
53426         (ldexp_test_data): Likewise.
53427         (lrint_test_data): Likewise.
53428         (lrint_test_data) [TEST_FLOAT]: Disable one test.
53429         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
53430         (lrint_tonearest_test_data): Test for "inexact" exceptions.
53431         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53432         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
53433         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53434         test input.
53435         (lrint_towardzero_test_data): Test for "inexact" exceptions.
53436         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53437         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
53438         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
53439         that test input.
53440         (lrint_downward_test_data): Test for "inexact" exceptions.
53441         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53442         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
53443         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53444         test input.
53445         (lrint_upward_test_data): Test for "inexact" exceptions.
53446         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
53447         test input.
53448         (llrint_test_data): Test for "inexact" exceptions.
53449         (llrint_test_data) [TEST_FLOAT]: Disable one test.
53450         (llrint_tonearest_test_data): Test for "inexact" exceptions.
53451         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53452         (llrint_towardzero_test_data): Test for "inexact" exceptions.
53453         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53454         (llrint_downward_test_data): Test for "inexact" exceptions.
53455         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53456         (llrint_upward_test_data): Test for "inexact" exceptions.
53457         (logb_test_data): Likewise.
53458         (logb_downward_test_data): Likewise.
53459         (nextafter_test_data): Likewise.
53460         (nexttoward_test_data): Likewise.
53461         (remainder_test_data): Likewise.
53462         (remquo_test_data): Likewise.
53463         (scalbn_test_data): Likewise.
53464         (scalbln_test_data): Likewise.
53465         (signbit_test_data): Likewise.
53466         (sqrt_test_data): Likewise.
53467         (significand_test_data): Likewise.
53468
53469 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53470
53471         [BZ #15424]
53472         * benchtests/bench-modf.c (struct args): Mark arg0 as
53473         volatile.
53474         * scripts/bench.pl: Mark members of struct args as volatile.
53475
53476 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53477
53478         [BZ # 15497]
53479         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
53480         negative infinity on POWER6 or lower.
53481         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
53482
53483 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
53484
53485         [BZ #15442]
53486         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
53487         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
53488         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
53489         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
53490         (_FP_SETQNAN): New macro.
53491         (_FP_SETQNAN_SEMIRAW): Likewise.
53492         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
53493         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
53494         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
53495         (FP_EXTEND): Use _FP_FRAC_SNANP.
53496         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
53497         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
53498         into account.
53499         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53500         New macro.
53501         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53502         Likewise.
53503
53504 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
53505
53506         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
53507         with DIVIDE_BY_ZERO_EXCEPTION.
53508         (gamma_test_data): Likewise.
53509         (lgamma_test_data): Likewise.
53510         (log_test_data): Likewise.
53511         (log10_test_data): Likewise.
53512         (log2_test_data): Likewise.
53513         (tgamma_test_data): Likewise.
53514
53515         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
53516         (acos_test_tonearest): Likewise.
53517         (acos_test_towardzero): Likewise.
53518         (acos_test_downward): Likewise.
53519         (acos_test_upward): Likewise.
53520         (acosh_test): Likewise.
53521         (asin_test): Likewise.
53522         (asin_test_tonearest): Likewise.
53523         (asin_test_towardzero): Likewise.
53524         (asin_test_downward): Likewise.
53525         (asin_test_upward): Likewise.
53526         (asinh_test): Likewise.
53527         (atan_test): Likewise.
53528         (atanh_test): Likewise.
53529         (atan2_test): Likewise.
53530         (cabs_test): Likewise.
53531         (cacos_test): Likewise.
53532         (cacosh_test): Likewise.
53533         (casin_test): Likewise.
53534         (casinh_test): Likewise.
53535         (catan_test): Likewise.
53536         (catanh_test): Likewise.
53537         (cbrt_test): Likewise.
53538         (ccos_test): Likewise.
53539         (ccosh_test): Likewise.
53540         (cexp_test): Likewise.
53541         (clog_test): Likewise.
53542         (clog10_test): Likewise.
53543         (cos_test): Likewise.
53544         (cos_test_tonearest): Likewise.
53545         (cos_test_towardzero): Likewise.
53546         (cos_test_downward): Likewise.
53547         (cos_test_upward): Likewise.
53548         (cosh_test): Likewise.
53549         (cosh_test_tonearest): Likewise.
53550         (cosh_test_towardzero): Likewise.
53551         (cosh_test_downward): Likewise.
53552         (cosh_test_upward): Likewise.
53553         (cpow_test): Likewise.
53554         (csin_test): Likewise.
53555         (csinh_test): Likewise.
53556         (csqrt_test): Likewise.
53557         (ctan_test): Likewise.
53558         (ctan_test_tonearest): Likewise.
53559         (ctan_test_towardzero): Likewise.
53560         (ctan_test_downward): Likewise.
53561         (ctan_test_upward): Likewise.
53562         (ctanh_test): Likewise.
53563         (ctanh_test_tonearest): Likewise.
53564         (ctanh_test_towardzero): Likewise.
53565         (ctanh_test_downward): Likewise.
53566         (ctanh_test_upward): Likewise.
53567         (erf_test): Likewise.
53568         (erfc_test): Likewise.
53569         (exp_test): Likewise.
53570         (exp_test_tonearest): Likewise.
53571         (exp_test_towardzero): Likewise.
53572         (exp_test_downward): Likewise.
53573         (exp_test_upward): Likewise.
53574         (exp10_test): Likewise.
53575         (exp2_test): Likewise.
53576         (expm1_test): Likewise.
53577         (fmod_test): Likewise.
53578         (gamma_test): Likewise.
53579         (hypot_test): Likewise.
53580         (j0_test): Likewise.
53581         (j1_test): Likewise.
53582         (jn_test): Likewise.
53583         (lgamma_test): Likewise.
53584         (log_test): Likewise.
53585         (log10_test): Likewise.
53586         (log1p_test): Likewise.
53587         (log2_test): Likewise.
53588         (logb_test_downward): Likewise.
53589         (pow_test): Likewise.
53590         (pow_test_tonearest): Likewise.
53591         (pow_test_towardzero): Likewise.
53592         (pow_test_downward): Likewise.
53593         (pow_test_upward): Likewise.
53594         (remainder_test): Likewise.
53595         (remquo_test): Likewise.
53596         (sin_test): Likewise.
53597         (sin_test_tonearest): Likewise.
53598         (sin_test_towardzero): Likewise.
53599         (sin_test_downward): Likewise.
53600         (sin_test_upward): Likewise.
53601         (sincos_test): Likewise.
53602         (sinh_test): Likewise.
53603         (sinh_test_tonearest): Likewise.
53604         (sinh_test_towardzero): Likewise.
53605         (sinh_test_downward): Likewise.
53606         (sinh_test_upward): Likewise.
53607         (sqrt_test): Likewise.
53608         (tan_test): Likewise.
53609         (tan_test_tonearest): Likewise.
53610         (tan_test_towardzero): Likewise.
53611         (tan_test_downward): Likewise.
53612         (tan_test_upward): Likewise.
53613         (tanh_test): Likewise.
53614         (tgamma_test): Likewise.
53615         (y0_test): Likewise.
53616         (y1_test): Likewise.
53617         (yn_test): Likewise.
53618
53619         * math/gen-libm-test.pl (adjust_arg): Remove function.
53620         (special_function): Remove argument $in_func.  Only handle
53621         generating output for tables of tests, not inside functions.
53622         (parse_args): Likewise.
53623         (generate_testfile): Remove variable $in_func.  Update call to
53624         parse_args.
53625         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
53626         (MINUS_ZERO_INIT): Rename macro to minus_zero.
53627         (PLUS_INFTY_INIT): Rename macro to plus_infty.
53628         (MINUS_INFTY_INIT): Rename macro to minus_infty.
53629         (QNAN_VALUE_INIT): Rename macro to qnan_value.
53630         (MAX_VALUE_INIT): Rename macro to max_value.
53631         (MIN_VALUE_INIT): Rename macro to min_value.
53632         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
53633         (plus_zero): Remove variable.
53634         (minus_zero): Likewise.
53635         (plus_infty): Likewise.
53636         (minus_infty): Likewise.
53637         (qnan_value): Likewise.
53638         (max_value): Likewise.
53639         (min_value): Likewise.
53640         (min_subnorm_value): Likewise.
53641
53642 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
53643
53644         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
53645         uint64_t or uint32_t usage.
53646         * crypt/sha256-block.c: Likewise.
53647         * crypt/sha256-crypt.c: Likewise.
53648         * crypt/sha256.c: Likewise.
53649         * crypt/sha512-block.c: Likewise.
53650         * crypt/sha512-crypt.c: Likewise.
53651         * crypt/sha512.c: Likewise.
53652         * debug/backtrace-tst.c: Likewise.
53653         * debug/pcprofiledump.c: Likewise.
53654         * elf/cache.c: Likewise.
53655         * elf/dl-cache.c: Likewise.
53656         * elf/dl-misc.c: Likewise.
53657         * elf/dl-profile.c: Likewise.
53658         * elf/dl-support.c: Likewise.
53659         * elf/ldconfig.c: Likewise.
53660         * elf/sprof.c: Likewise.
53661         * iconv/dummy-repertoire.c: Likewise.
53662         * iconv/iconv_charmap.c: Likewise.
53663         * iconv/skeleton.c: Likewise.
53664         * iconvdata/8bit-generic.c: Likewise.
53665         * iconvdata/cp737.h: Likewise.
53666         * iconvdata/cp775.h: Likewise.
53667         * iconvdata/ibm1008.h: Likewise.
53668         * iconvdata/ibm1025.h: Likewise.
53669         * iconvdata/ibm1046.h: Likewise.
53670         * iconvdata/ibm1097.h: Likewise.
53671         * iconvdata/ibm1112.h: Likewise.
53672         * iconvdata/ibm1122.h: Likewise.
53673         * iconvdata/ibm1123.h: Likewise.
53674         * iconvdata/ibm1124.h: Likewise.
53675         * iconvdata/ibm1129.h: Likewise.
53676         * iconvdata/ibm1130.h: Likewise.
53677         * iconvdata/ibm1132.h: Likewise.
53678         * iconvdata/ibm1133.h: Likewise.
53679         * iconvdata/ibm1137.h: Likewise.
53680         * iconvdata/ibm1140.h: Likewise.
53681         * iconvdata/ibm1141.h: Likewise.
53682         * iconvdata/ibm1142.h: Likewise.
53683         * iconvdata/ibm1143.h: Likewise.
53684         * iconvdata/ibm1144.h: Likewise.
53685         * iconvdata/ibm1145.h: Likewise.
53686         * iconvdata/ibm1146.h: Likewise.
53687         * iconvdata/ibm1147.h: Likewise.
53688         * iconvdata/ibm1148.h: Likewise.
53689         * iconvdata/ibm1149.h: Likewise.
53690         * iconvdata/ibm1153.h: Likewise.
53691         * iconvdata/ibm1154.h: Likewise.
53692         * iconvdata/ibm1155.h: Likewise.
53693         * iconvdata/ibm1156.h: Likewise.
53694         * iconvdata/ibm1157.h: Likewise.
53695         * iconvdata/ibm1158.h: Likewise.
53696         * iconvdata/ibm1160.h: Likewise.
53697         * iconvdata/ibm1161.h: Likewise.
53698         * iconvdata/ibm1162.h: Likewise.
53699         * iconvdata/ibm1163.h: Likewise.
53700         * iconvdata/ibm1164.h: Likewise.
53701         * iconvdata/ibm1166.h: Likewise.
53702         * iconvdata/ibm1167.h: Likewise.
53703         * iconvdata/ibm12712.h: Likewise.
53704         * iconvdata/ibm1390.h: Likewise.
53705         * iconvdata/ibm1399.h: Likewise.
53706         * iconvdata/ibm16804.h: Likewise.
53707         * iconvdata/ibm4517.h: Likewise.
53708         * iconvdata/ibm4899.h: Likewise.
53709         * iconvdata/ibm4909.h: Likewise.
53710         * iconvdata/ibm4971.h: Likewise.
53711         * iconvdata/ibm5347.h: Likewise.
53712         * iconvdata/ibm803.h: Likewise.
53713         * iconvdata/ibm856.h: Likewise.
53714         * iconvdata/ibm901.h: Likewise.
53715         * iconvdata/ibm902.h: Likewise.
53716         * iconvdata/ibm9030.h: Likewise.
53717         * iconvdata/ibm9066.h: Likewise.
53718         * iconvdata/ibm921.h: Likewise.
53719         * iconvdata/ibm922.h: Likewise.
53720         * iconvdata/ibm9448.h: Likewise.
53721         * iconvdata/isiri-3342.h: Likewise.
53722         * iconvdata/jis0201.h: Likewise.
53723         * include/link.h: Likewise.
53724         * include/netdb.h: Likewise.
53725         * inet/check_native.c: Likewise.
53726         * inet/check_pf.c: Likewise.
53727         * inet/getipv4sourcefilter.c: Likewise.
53728         * inet/getnameinfo.c: Likewise.
53729         * inet/getsourcefilter.c: Likewise.
53730         * inet/htonl.c: Likewise.
53731         * inet/setipv4sourcefilter.c: Likewise.
53732         * inet/setsourcefilter.c: Likewise.
53733         * inet/test-inet6_opt.c: Likewise.
53734         * inet/tst-network.c: Likewise.
53735         * locale/C-collate.c: Likewise.
53736         * locale/C-ctype.c: Likewise.
53737         * locale/C-time.c: Likewise.
53738         * locale/C-translit.h: Likewise.
53739         * locale/loadarchive.c: Likewise.
53740         * locale/programs/3level.h: Likewise.
53741         * locale/programs/charmap.c: Likewise.
53742         * locale/programs/charmap.h: Likewise.
53743         * locale/programs/ld-address.c: Likewise.
53744         * locale/programs/ld-collate.c: Likewise.
53745         * locale/programs/ld-ctype.c: Likewise.
53746         * locale/programs/ld-identification.c: Likewise.
53747         * locale/programs/ld-measurement.c: Likewise.
53748         * locale/programs/ld-messages.c: Likewise.
53749         * locale/programs/ld-monetary.c: Likewise.
53750         * locale/programs/ld-name.c: Likewise.
53751         * locale/programs/ld-numeric.c: Likewise.
53752         * locale/programs/ld-paper.c: Likewise.
53753         * locale/programs/ld-telephone.c: Likewise.
53754         * locale/programs/ld-time.c: Likewise.
53755         * locale/programs/linereader.c: Likewise.
53756         * locale/programs/locale.c: Likewise.
53757         * locale/programs/locarchive.c: Likewise.
53758         * locale/programs/locfile.h: Likewise.
53759         * locale/programs/repertoire.c: Likewise.
53760         * locale/programs/simple-hash.c: Likewise.
53761         * locale/programs/simple-hash.h: Likewise.
53762         * malloc/memusage.c: Likewise.
53763         * malloc/memusagestat.c: Likewise.
53764         * nis/nis_defaults.c: Likewise.
53765         * nis/nis_hash.c: Likewise.
53766         * nis/nis_print.c: Likewise.
53767         * nis/nis_xdr.c: Likewise.
53768         * nscd/connections.c: Likewise.
53769         * nscd/hstcache.c: Likewise.
53770         * nscd/nscd_gethst_r.c: Likewise.
53771         * nscd/nscd_getserv_r.c: Likewise.
53772         * nscd/nscd_helper.c: Likewise.
53773         * nscd/servicescache.c: Likewise.
53774         * nss/makedb.c: Likewise.
53775         * nss/nss_db/db-XXX.c: Likewise.
53776         * nss/nss_db/db-initgroups.c: Likewise.
53777         * nss/nss_db/db-netgrp.c: Likewise.
53778         * nss/nss_files/files-network.c: Likewise.
53779         * nss/nss_files/files-parse.c: Likewise.
53780         * posix/bug-regex5.c: Likewise.
53781         * posix/fnmatch_loop.c: Likewise.
53782         * posix/regcomp.c: Likewise.
53783         * posix/regexec.c: Likewise.
53784         * posix/tst-rfc3484-2.c: Likewise.
53785         * posix/tst-rfc3484-3.c: Likewise.
53786         * posix/tst-rfc3484.c: Likewise.
53787         * resolv/nss_dns/dns-canon.c: Likewise.
53788         * resolv/nss_dns/dns-network.c: Likewise.
53789         * resolv/res_init.c: Likewise.
53790         * resolv/res_mkquery.c: Likewise.
53791         * resolv/tst-aton.c: Likewise.
53792         * stdlib/cxa_atexit.c: Likewise.
53793         * stdlib/cxa_finalize.c: Likewise.
53794         * stdlib/gen-fpioconst.c: Likewise.
53795         * stdlib/strtol_l.c: Likewise.
53796         * string/tst-endian.c: Likewise.
53797         * sunrpc/auth_des.c: Likewise.
53798         * sunrpc/clnt_udp.c: Likewise.
53799         * sunrpc/rtime.c: Likewise.
53800         * sunrpc/svcauth_des.c: Likewise.
53801         * sunrpc/xdr.c: Likewise.
53802         * sunrpc/xdr_intXX_t.c: Likewise.
53803         * sunrpc/xdr_rec.c: Likewise.
53804         * sysdeps/generic/ldconfig.h: Likewise.
53805         * sysdeps/generic/ldsodefs.h: Likewise.
53806         * sysdeps/generic/memusage.h: Likewise.
53807         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
53808         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
53809         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
53810         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
53811         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
53812         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
53813         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
53814         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
53815         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
53816         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
53817         * sysdeps/posix/getaddrinfo.c: Likewise.
53818         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
53819         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
53820         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
53821         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
53822         * sysdeps/powerpc/test-gettimebase.c: Likewise.
53823         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
53824         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
53825         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
53826         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
53827         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
53828         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
53829         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
53830         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
53831         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
53832         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
53833         * sysdeps/x86_64/dl-tls.h: Likewise.
53834         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
53835         * time/alt_digit.c: Likewise.
53836         * time/era.c: Likewise.
53837         * wcsmbs/tst-c16c32-1.c: Likewise.
53838
53839 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
53840
53841         * math/libm-test.inc (struct test_sincos_data): New type.
53842         (RUN_TEST_LOOP_sincos): New macro.
53843         (sincos_test_data): New variable.
53844         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
53845
53846 2013-05-16  Richard Henderson  <rth@redhat.com>
53847
53848         * math/atest-exp2.c (LIMB64): New macro.
53849         (CONSTSZ): New macro.
53850         (mp_exp1, mp_exp_m1, mp_log2): New variables.
53851         (hexdig): Move ...
53852         (print_mpn_fp): ... to function scope.
53853         (read_mpn_hex): Remove.
53854         (get_log2): Remove.
53855         (exp2_mpn): Use mp_log2.
53856         (main): Use mp_exp1.
53857
53858 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
53859
53860         * math/libm-test.inc: Remove comment about not testing "inexact"
53861         exceptions.
53862         (INEXACT_EXCEPTION): New macro.
53863         (NO_INEXACT_EXCEPTION): Likewise.
53864         (INVALID_EXCEPTION_OK): Update value.
53865         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
53866         (OVERFLOW_EXCEPTION_OK): Likewise.
53867         (UNDERFLOW_EXCEPTION_OK): Likewise.
53868         (IGNORE_ZERO_INF_SIGN): Likewise.
53869         (ERRNO_UNCHANGED): Likewise.
53870         (ERRNO_EDOM): Likewise.
53871         (ERRNO_ERANGE): Likewise.
53872         (test_exceptions): Handle testing "inexact" exceptions.
53873         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
53874         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
53875         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
53876         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
53877         INEXACT_EXCEPTION.
53878         (rint_towardzero_test_data): Likewise.
53879         (rint_downward_test_data): Likewise.
53880         (rint_upward_test_data): Likewise.
53881
53882         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
53883         with OVERFLOW_EXCEPTION.
53884         (exp10_test_data): Likewise.
53885         (exp2_test_data): Likewise.
53886         (expm1_test_data): Likewise.
53887         (lgamma_test_data): Likewise.
53888         (pow_test_data): Likewise.
53889         (tgamma_test_data): Likewise.
53890         (yn_test_data): Remove duplicate test of overflow.
53891
53892         * math/libm-test.inc (struct test_cc_c_data): New type.
53893         (RUN_TEST_LOOP_cc_c): New macro.
53894         (cpow_test_data): New variable.
53895         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
53896
53897         * math/libm-test.inc (struct test_f_L_data): New type.
53898         (RUN_TEST_LOOP_f_L): New macro.
53899         (llrint_test_data): New variable.
53900         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
53901         (llrint_tonearest_test_data): New variable.
53902         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
53903         (llrint_towardzero_test_data): New variable.
53904         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
53905         (llrint_downward_test_data): New variable.
53906         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
53907         (llrint_upward_test_data): New variable.
53908         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
53909         (llround_test_data): New variable.
53910         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
53911
53912 2013-05-13  Peter Collingbourne  <pcc@google.com>
53913
53914         * math/atest-exp2.c (get_log2): Remove const attribute.
53915
53916 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
53917
53918         * math/libm-test.inc (struct test_f_l_data): New type.
53919         (RUN_TEST_LOOP_f_l): New macro.
53920         (lrint_test_data): New variable.
53921         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
53922         (lrint_tonearest_test_data): New variable.
53923         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
53924         (lrint_towardzero_test_data): New variable.
53925         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
53926         (lrint_downward_test_data): New variable.
53927         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
53928         (lrint_upward_test_data): New variable.
53929         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
53930         (lround_test_data): New variable.
53931         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
53932
53933 2013-05-15  Peter Collingbourne  <pcc@google.com>
53934
53935         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
53936         (EXTRACT_WORDS64) Use where appropriate.
53937         (INSERT_WORDS64) Likewise.
53938
53939         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
53940         constraints with x constraints.
53941         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
53942
53943         * malloc/obstack.c (_obstack_compat): Add initializer.
53944
53945 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
53946
53947         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
53948         si_trapno and add si_addr_lsb to _sifields.sigfault.
53949         (si_trapno): Remove macro.
53950         (si_addr_lsb): Define new macro.
53951         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
53952
53953 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
53954
53955         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
53956         instead of TEST_f_l.
53957         (llrint_test_tonearest): Likewise.
53958         (llrint_test_towardzero): Likewise.
53959         (llrint_test_downward): Likewise.
53960         (llrint_test_upward): Likewise.
53961         (llround_test): Likewise.
53962
53963         * math/libm-test.inc (struct test_f_i_data): Add comment.
53964         (RUN_TEST_LOOP_f_b): New macro.
53965         (RUN_TEST_LOOP_f_b_tg): Likewise.
53966         (finite_test_data): New variable.
53967         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
53968         (isfinite_test_data): New variable.
53969         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
53970         (isinf_test_data): New variable.
53971         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
53972         (isnan_test_data): New variable.
53973         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
53974         (isnormal_test_data): New variable.
53975         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
53976         (issignaling_test_data): New variable.
53977         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
53978         (signbit_test_data): New variable.
53979         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
53980
53981         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
53982         with INVALID_EXCEPTION.
53983         (acosh_test_data): Likewise.
53984         (asin_test_data): Likewise.
53985         (atanh_test_data): Likewise.
53986         (fmod_test_data): Likewise.
53987         (log_test_data): Likewise.
53988         (log10_test_data): Likewise.
53989         (log2_test_data): Likewise.
53990         (pow_test_data): Likewise.
53991         (sqrt_test_data): Likewise.
53992         (y0_test_data): Likewise.
53993         (y1_test_data): Likewise.
53994         (yn_test_data): Likewise.
53995
53996         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
53997         function contents.
53998
53999         * math/libm-test.inc (struct test_ff_i_data): New type.
54000         (RUN_TEST_LOOP_ff_i_tg): New macro.
54001         (isgreater_test_data): New variable.
54002         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54003         (isgreaterequal_test_data): New variable.
54004         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54005         (isless_test_data): New variable.
54006         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54007         (islessequal_test_data): New variable.
54008         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54009         (islessgreater_test_data): New variable.
54010         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54011         (isunordered_test_data): New variable.
54012         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54013
54014 2013-05-14  David S. Miller  <davem@davemloft.net>
54015
54016         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54017
54018 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
54019
54020         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
54021
54022         * math/libm-test.inc (struct test_fF_f1_data): Change type of
54023         extra_test to int.
54024         (struct test_f_i_data): Change type of max_ulp to int.
54025
54026         * math/libm-test.inc (test_ffI_f1_data): New type.
54027         (RUN_TEST_LOOP_ffI_f1): New macro.
54028         (remquo_test_data): New variable.
54029         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
54030
54031         * setjmp/tst-setjmp-fp.c: New file.
54032         * setjmp/Makefile (tests): Add tst-setjmp-fp.
54033         (link-libm): New variable.
54034         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
54035
54036         * math/libm-test.inc (struct test_f_i_data): New type.
54037         (RUN_TEST_LOOP_f_i): New macro.
54038         (RUN_TEST_LOOP_f_i_tg): Likewise.
54039         (fpclassify_test_data): New variable.
54040         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
54041         (ilogb_test_data): New variable.
54042         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
54043
54044         * math/libm-test.inc (scalbln_test): Correct function name in END
54045         call.
54046
54047         * math/libm-test.inc (struct test_f_f1_data): Add comment.
54048         (RUN_TEST_LOOP_fI_f1): New macro.
54049         (frexp_test_data): New variable.
54050         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
54051
54052         * math/libm-test.inc (struct test_fF_f1_data): New type.
54053         (RUN_TEST_LOOP_fF_f1): New macro.
54054         (modf_test_data): New variable.
54055         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
54056
54057         * math/libm-test.inc (struct test_f_f1_data): New type.
54058         (RUN_TEST_LOOP_f_f1): New macro.
54059         (gamma_test_data): New variable.
54060         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54061         (lgamma_test_data): New variable.
54062         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54063
54064 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
54065
54066         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
54067         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
54068         (main): Comment "tls" pseudo-hwcap.
54069
54070 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
54071
54072         * math/libm-test.inc (struct test_fl_f_data): New type.
54073         (RUN_TEST_LOOP_fl_f): New variable.
54074         (scalbln_test_data): New variable.
54075         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
54076
54077         * math/libm-test.inc (struct test_fi_f_data): New type.
54078         (RUN_TEST_LOOP_fi_f): New macro.
54079         (ldexp_test_data): New variable.
54080         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
54081         (scalbn_test_data): New variable.
54082         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
54083
54084         * math/libm-test.inc (struct test_c_f_data): New type.
54085         (RUN_TEST_LOOP_c_f): New macro.
54086         (cabs_test_data): New variable.
54087         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
54088         (carg_test_data): New variable.
54089         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
54090         (cimag_test_data): New variable.
54091         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
54092         (creal_test_data): New variable.
54093         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
54094
54095         * math/libm-test.inc (struct test_if_f_data): New type.
54096         (RUN_TEST_LOOP_if_f): New macro.
54097         (jn_test_data): New variable.
54098         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
54099         (yn_test_data): New variable.
54100         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
54101
54102         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
54103
54104 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54105
54106         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
54107         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
54108
54109 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
54110
54111         * benchtests/Makefile (CPPFLAGS-nonlib): Add
54112         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
54113         (bench-deps): Add bench-timing.h.
54114         * benchtests-bench-skeleton.c: Include bench-timing.h.
54115         (main): Use TIMING_* macros instead of clock_gettime.
54116         * benchtests/bench-timing.h: New file.
54117
54118         [BZ #14582]
54119         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
54120         Renamed from _LIB_VERSION.
54121         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
54122
54123 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
54124
54125         * math/libm-test.inc (struct test_fff_f_data): New type.
54126         (RUN_TEST_LOOP_fff_f): New macro.
54127         (fma_test_data): New variable.
54128         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
54129         (fma_towardzero_test_data): New variable.
54130         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
54131         (fma_downward_test_data): New variable.
54132         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
54133         (fma_upward_test_data): New variable.
54134         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
54135
54136         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
54137         (struct test_c_c_data): New type.
54138         (RUN_TEST_LOOP_c_c): New macro.
54139         (cacos_test_data): New variable.
54140         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
54141         (cacosh_test_data): New variable.
54142         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
54143         (casin_test_data): New variable.
54144         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
54145         (casinh_test_data): New variable.
54146         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
54147         (catan_test_data): New variable.
54148         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
54149         (catanh_test_data): New variable.
54150         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
54151         (ccos_test_data): New variable.
54152         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
54153         (ccosh_test_data): New variable.
54154         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
54155         (cexp_test_data): New variable.
54156         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
54157         (clog_test_data): New variable.
54158         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
54159         (clog10_test_data): New variable.
54160         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
54161         (conj_test_data): New variable.
54162         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
54163         (cproj_test_data): New variable.
54164         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
54165         (csin_test_data): New variable.
54166         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
54167         (csinh_test_data): New variable.
54168         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
54169         (csqrt_test_data): New variable.
54170         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
54171         (ctan_test_data): New variable.
54172         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
54173         (ctan_tonearest_test_data): New variable.
54174         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54175         (ctan_towardzero_test_data): New variable.
54176         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54177         (ctan_downward_test_data): New variable.
54178         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54179         (ctan_upward_test_data): New variable.
54180         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54181         (ctanh_test_data): New variable.
54182         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
54183         (ctanh_tonearest_test_data): New variable.
54184         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54185         (ctanh_towardzero_test_data): New variable.
54186         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54187         (ctanh_downward_test_data): New variable.
54188         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54189         (ctanh_upward_test_data): New variable.
54190         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54191         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
54192         of BUILD_COMPLEX.
54193
54194         * math/libm-test.inc (struct test_ff_f_data): New type.
54195         (struct test_ff_f_data_nexttoward): Likewise.
54196         (RUN_TEST_LOOP_2_f): New macro.
54197         (RUN_TEST_LOOP_ff_f): Likewise.
54198         (atan2_test_data): New variable.
54199         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
54200         (copysign_test_data): New variable.
54201         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
54202         (fdim_test_data): New variable.
54203         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
54204         (fmax_test_data): New variable.
54205         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
54206         (fmin_test_data): New variable.
54207         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
54208         (fmod_test_data): New variable.
54209         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
54210         (hypot_test_data): New variable.
54211         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
54212         (nextafter_test_data): New variable.
54213         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
54214         (nexttoward_test_data): New variable.
54215         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
54216         (pow_test_data): New variable.
54217         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
54218         (pow_tonearest_test_data): New variable.
54219         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
54220         (pow_towardzero_test_data): New variable.
54221         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
54222         (pow_downward_test_data): New variable.
54223         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
54224         (pow_upward_test_data): New variable.
54225         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
54226         (remainder_test_data): New variable.
54227         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
54228         (scalb_test_data): New variable.
54229         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
54230         * sysdeps/i386/fpu/libm-test-ulps: Update.
54231
54232 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
54233
54234         * math/libm-test.inc (fma_test): Use max_value instead of local
54235         variable fltmax.
54236         (nextafter_test): Likewise.
54237
54238         * math/libm-test.inc (acos_towardzero_test_data): New variable.
54239         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54240         (acos_downward_test_data): New variable.
54241         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54242         (acos_upward_test_data): New variable.
54243         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54244         (acosh_test_data): New variable.
54245         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
54246         (asin_test_data): New variable.
54247         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
54248         (asin_tonearest_test_data): New variable.
54249         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54250         (asin_towardzero_test_data): New variable.
54251         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54252         (asin_downward_test_data): New variable.
54253         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54254         (asin_upward_test_data): New variable.
54255         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54256         (asinh_test_data): New variable.
54257         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
54258         (atan_test_data): New variable.
54259         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
54260         (atanh_test_data): New variable.
54261         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
54262         (cbrt_test_data): New variable.
54263         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
54264         (ceil_test_data): New variable.
54265         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
54266         (cos_test_data): New variable.
54267         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
54268         (cos_tonearest_test_data): New variable.
54269         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54270         (cos_towardzero_test_data): New variable.
54271         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54272         (cos_downward_test_data): New variable.
54273         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54274         (cos_upward_test_data): New variable.
54275         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54276         (cosh_test_data): New variable.
54277         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
54278         (cosh_tonearest_test_data): New variable.
54279         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54280         (cosh_towardzero_test_data): New variable.
54281         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54282         (cosh_downward_test_data): New variable.
54283         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54284         (cosh_upward_test_data): New variable.
54285         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54286         (erf_test_data): New variable.
54287         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
54288         (erfc_test_data): New variable.
54289         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
54290         (exp_test_data): New variable.
54291         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
54292         (exp_tonearest_test_data): New variable.
54293         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54294         (exp_towardzero_test_data): New variable.
54295         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54296         (exp_downward_test_data): New variable.
54297         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54298         (exp_upward_test_data): New variable.
54299         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54300         (exp10_test_data): New variable.
54301         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
54302         (exp2_test_data): New variable.
54303         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
54304         (expm1_test_data): New variable.
54305         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
54306         (fabs_test_data): New variable.
54307         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
54308         (floor_test_data): New variable.
54309         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
54310         (j0_test_data): New variable.
54311         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
54312         (j1_test_data): New variable.
54313         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
54314         (log_test_data): New variable.
54315         (log_test): Run tests with RUN_TEST_LOOP_f_f.
54316         (log10_test_data): New variable.
54317         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
54318         (log1p_test_data): New variable.
54319         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
54320         (log2_test_data): New variable.
54321         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
54322         (logb_test_data): New variable.
54323         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
54324         (logb_downward_test_data): New variable.
54325         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54326         (nearbyint_test_data): New variable.
54327         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
54328         (rint_test_data): New variable.
54329         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
54330         (rint_tonearest_test_data): New variable.
54331         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54332         (rint_towardzero_test_data): New variable.
54333         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54334         (rint_downward_test_data): New variable.
54335         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54336         (rint_upward_test_data): New variable.
54337         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54338         (round_test_data): New variable.
54339         (round_test): Run tests with RUN_TEST_LOOP_f_f.
54340         (sin_test_data): New variable.
54341         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
54342         (sin_tonearest_test_data): New variable.
54343         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54344         (sin_towardzero_test_data): New variable.
54345         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54346         (sin_downward_test_data): New variable.
54347         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54348         (sin_upward_test_data): New variable.
54349         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54350         (sinh_test_data): New variable.
54351         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
54352         (sinh_tonearest_test_data): New variable.
54353         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54354         (sinh_towardzero_test_data): New variable.
54355         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54356         (sinh_downward_test_data): New variable.
54357         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54358         (sinh_upward_test_data): New variable.
54359         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54360         (sqrt_test_data): New variable.
54361         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
54362         (tan_test_data): New variable.
54363         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
54364         (tan_tonearest_test_data): New variable.
54365         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54366         (tan_towardzero_test_data): New variable.
54367         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54368         (tan_downward_test_data): New variable.
54369         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54370         (tan_upward_test_data): New variable.
54371         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54372         (tanh_test_data): New variable.
54373         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
54374         (tgamma_test_data): New variable.
54375         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
54376         (trunc_test_data): New variable.
54377         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
54378         (y0_test_data): New variable.
54379         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
54380         (y1_test_data): New variable.
54381         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
54382         (significand_test_data): New variable.
54383         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
54384
54385 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
54386
54387         [BZ #12387]
54388         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
54389
54390 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
54391
54392         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
54393
54394 2013-05-10  Andreas Jaeger  <aj@suse.de>
54395
54396         [BZ #15448]
54397         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
54398         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
54399
54400 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54401
54402         * math/gen-libm-test.pl (adjust_arg): New function.
54403         (special_functions): Handle generating output in both functions
54404         and arrays.
54405         (parse_args): Likewise.
54406         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
54407         $in_func argument to parse_args.
54408         * math/libm-test.inc (struct test_f_f_data): New type.
54409         (IF_ROUND_INIT_): New macro.
54410         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
54411         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
54412         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
54413         (IF_ROUND_INIT_FE_UPWARD): Likewise.
54414         (ROUND_RESTORE_): Likewise.
54415         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
54416         (ROUND_RESTORE_FE_TONEAREST): Likewise.
54417         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
54418         (ROUND_RESTORE_FE_UPWARD): Likewise.
54419         (RUN_TEST_LOOP_f_f): New macro.
54420         (acos_test_data): New variable.
54421         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
54422         (acos_tonearest_test_data): New variable.
54423         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54424
54425 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
54426
54427         * benchtests/bench-skeleton.c (startup): Fix coding style.
54428
54429 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54430
54431         [BZ #6809]
54432         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
54433         negative infinity argument.
54434         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
54435         negative infinity argument.
54436         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
54437         negative infinity argument.
54438         * math/libm-test.inc (tgamma_test): Expect errno to be set for
54439         domain errors.
54440
54441 2013-05-10  Florian Weimer  <fweimer@redhat.com>
54442
54443         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
54444         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
54445         * iconv/iconv_prog.c (main): Likewise.
54446         * locale/programs/charmap-dir.c (charmap_readdir)
54447         (fopen_uncompressed): Likewise.
54448         * locale/programs/locfile.c (siblings_uncached)
54449         (write_locale_data): Use lstat64 instead of lstat.
54450         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
54451         stat.
54452
54453 2013-05-10  Andreas Jaeger  <aj@suse.de>
54454
54455         [BZ #15395]
54456         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
54457         localization.
54458         Include <locale.h>.
54459
54460 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
54461
54462         * elf/dl-close.c (_dl_close_worker): Add comments.
54463
54464 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
54465
54466         [BZ #15359]
54467         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
54468         high part of pi/2.
54469         (__ieee754_rem_pio2l): Update comments.
54470
54471         [BZ #15429]
54472         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
54473         high part of pi/2.
54474         (__ieee754_rem_pio2l): Update comments.
54475
54476         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
54477         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
54478
54479         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
54480         M_PI_4l.
54481
54482         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
54483         (M_PI_34_LOG10El): Likewise.
54484         (M_PI2_LOG10El): Likewise.
54485         (M_PI4_LOG10El): Likewise.
54486         (M_PI_LOG10El): Likewise.
54487
54488 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54489
54490         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54491
54492 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
54493
54494         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
54495         (MINUS_ZERO_INIT): Likewise.
54496         (PLUS_INFTY_INIT): Likewise.
54497         (MINUS_INFTY_INIT): Likewise.
54498         (QNAN_VALUE_INIT): Likewise.
54499         (MAX_VALUE_INIT): Likewise.
54500         (MIN_VALUE_INIT): Likewise.
54501         (MIN_SUBNORM_VALUE_INIT): Likewise.
54502         (plus_zero): Initialize with PLUS_ZERO_INIT.
54503         (minus_zero): Initialize with MINUS_ZERO_INIT.
54504         (plus_infty): Initialize with PLUS_INFTY_INIT.
54505         (minus_infty): Initialize with MINUS_INFTY_INIT.
54506         (qnan_value): Initialize with QNAN_VALUE_INIT.
54507         (max_value): Initialize with MAX_VALUE_INIT.
54508         (min_value): Initialize with MIN_VALUE_INIT.
54509         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
54510
54511         * math/libm-test.inc (RUN_TEST_if_f): New macro.
54512         (jn_test): Use TEST_if_f instead of TEST_ff_f.
54513         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
54514         (yn_test): Use TEST_if_f instead of TEST_ff_f.
54515
54516         * math/libm-test.inc (RUN_TEST_f_f): New macro.
54517         (RUN_TEST_2_f): Likewise.
54518         (RUN_TEST_ff_f): Likewise.
54519         (RUN_TEST_fi_f): Likewise.
54520         (RUN_TEST_fl_f): Likewise.
54521         (RUN_TEST_fff_f): Likewise.
54522         (RUN_TEST_c_f): Likewise.
54523         (RUN_TEST_f_f1): Likewise.
54524         (RUN_TEST_fF_f1): Likewise.
54525         (RUN_TEST_fI_f1): Likewise.
54526         (RUN_TEST_ffI_f1): Likewise.
54527         (RUN_TEST_c_c): Likewise.
54528         (RUN_TEST_cc_c): Likewise.
54529         (RUN_TEST_f_i): Likewise.
54530         (RUN_TEST_f_i_tg): Likewise.
54531         (RUN_TEST_ff_i_tg): Likewise.
54532         (RUN_TEST_f_b): Likewise.
54533         (RUN_TEST_f_b_tg): Likewise.
54534         (RUN_TEST_f_l): Likewise.
54535         (RUN_TEST_f_L): Likewise.
54536         (RUN_TEST_sincos): Likewise.
54537         * math/gen-libm-test.pl (new_test): Take new argument to indicate
54538         whether to show exceptions.  Do not include ");\n" in return
54539         value.
54540         (special_functions): Output call to RUN_TEST_sincos instead of
54541         check_float calls.  Update calls to new_test.
54542         (parse_args): Output call to single RUN_TEST_* macro instead of
54543         check_* calls and other assignments.  Update calls to new_test.
54544
54545         [BZ #2546]
54546         [BZ #2560]
54547         [BZ #5159]
54548         [BZ #15426]
54549         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
54550         input to result for tgamma overflow.
54551         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
54552         (gamma_coeff): New variable.
54553         (NCOEFF): New macro.
54554         (gamma_positive): New function.
54555         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
54556         underflow here.  Use gamma_positive instead of exp (lgamma) for
54557         other arguments.
54558         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
54559         (gamma_coeff): New variable.
54560         (NCOEFF): New macro.
54561         (gammaf_positive): New function.
54562         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
54563         underflow here.  Use gamma_positive instead of exp (lgamma) for
54564         other arguments.
54565         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
54566         (gamma_coeff): New variable.
54567         (NCOEFF): New macro.
54568         (gammal_positive): New function.
54569         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
54570         underflow here.  Use gamma_positive instead of exp (lgamma) for
54571         other arguments.
54572         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
54573         (gamma_coeff): New variable.
54574         (NCOEFF): New macro.
54575         (gammal_positive): New function.
54576         (__ieee754_gammal_r): Handle positive infinity, overflow and
54577         underflow here.  Handle NaN the same as positive infinity.  Remove
54578         check x < 0xffffffff for negative integers.  Use gamma_positive
54579         instead of exp (lgamma) for other arguments.
54580         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
54581         (gamma_coeff): New variable.
54582         (NCOEFF): New macro.
54583         (gammal_positive): New function.
54584         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
54585         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
54586         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
54587         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
54588         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
54589         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
54590         * sysdeps/generic/math_private.h (__gamma_productf): New
54591         prototype.
54592         (__gamma_product): Likewise.
54593         (__gamma_productl): Likewise.
54594         * math/Makefile (libm-calls): Add gamma_product.
54595         * math/libm-test.inc (tgamma_test): Add more tests.
54596         * sysdeps/i386/fpu/libm-test-ulps: Update.
54597         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54598
54599 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
54600
54601         * benchtests/bench-skeleton.c (main): Preheat CPU.
54602
54603 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
54604
54605         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
54606
54607 2013-05-07  Roland McGrath  <roland@hack.frob.com>
54608
54609         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
54610         and _dl_skip_args_internal.
54611
54612 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
54613
54614         * manual/message.texi (Message Translation): Talk about users.
54615         Message to key mapping impacts design.
54616
54617 2013-05-06  Roland McGrath  <roland@hack.frob.com>
54618
54619         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
54620
54621         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
54622
54623         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
54624         * sysdeps/wordsize-64/glob64.c: ... here.
54625
54626         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
54627         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
54628         New macros.
54629
54630         * debug/getlogin_r_chk.c: Moved to ...
54631         * login/getlogin_r_chk.c: ... here.
54632         * debug/Makefile (routines): Move getlogin_r_chk to ...
54633         * login/Makefile (routines): ... here.
54634         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
54635         * login/Versions (libc: GLIBC_2.4): ... here.
54636
54637         * io/poll.c (__poll): Renamed from poll.
54638         Add libc_hidden_def.
54639         (poll): Define as weak alias.
54640
54641         * debug/ptsname_r_chk.c: Moved to ...
54642         * login/ptsname_r_chk.c: ... here.
54643         * debug/Makefile (routines): Move ptsname_r_chk to ...
54644         * login/Makefile (routines): ... here.
54645         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
54646         * login/Versions (libc: GLIBC_2.4): ... here.
54647
54648         * posix/getlogin.c: Moved to ...
54649         * login/getlogin.c: ... here.
54650         * posix/getlogin_r.c: Moved to ...
54651         * login/getlogin_r.c: ... here.
54652         * posix/getlogin_r.c: Moved to ...
54653         * login/getlogin_r.c: ... here.
54654         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
54655         * login/Makefile (routines): ... here.
54656         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
54657         * login/Versions (libc: GLIBC_2.0): ... here.
54658
54659         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
54660         (setrlimit): Define as weak alias.
54661
54662         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
54663         Call __ names for open, ftruncate, and close.
54664         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
54665         (truncate): Define as weak alias.
54666
54667 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
54668
54669         * math/gen-libm-test.pl (parse_args): Initialize x before each
54670         test of frexp, modf and remquo.
54671
54672         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
54673         test signgam value.
54674
54675 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54676
54677         [BZ #15418]
54678         [BZ #15419]
54679         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
54680         internal tests.
54681         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
54682
54683 2013-05-06  Roland McGrath  <roland@hack.frob.com>
54684
54685         * elf/dl-writev.h: New file.
54686         * elf/dl-misc.c: Include it.
54687         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
54688         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
54689
54690 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
54691
54692         * math/libm-test.inc (noXFails): Remove variable.
54693         (noXPasses): Likewise.
54694         (BUILD_COMPLEX_INT): Remove macro.
54695         (print_screen): Remove xfail argument.
54696         (print_screen_max_error): Likewise.
54697         (update_stats): Likewise.
54698         (print_max_error): Likewise.  Update calls to other affected
54699         functions.
54700         (print_complex_max_error): Likewise.
54701         (test_single_exception): Update calls to print_screen.
54702         (test_single_errno): Likewise.
54703         (check_float_internal): Remove xfail argument.  Update calls to
54704         other affected functions.
54705         (check_float): Likewise.
54706         (check_complex): Likewise.
54707         (check_int): Likewise.
54708         (check_long): Likewise.
54709         (check_bool): Likewise.
54710         (check_longlong): Likewise.
54711         (main): Don't print noXFails and noXPasses.
54712         * math/gen-libm-test.pl (top level): Don't mention expected
54713         failure handling in comment.
54714         (new_test): Don't handle expected failures.
54715         (parse_args): Don't mention expected failure handling in comment.
54716         (generate_testfile): Don't handle expected failures.
54717         (parse_ulps): Likewise.
54718         (print_ulps_file): Likewise.
54719         (get_failure): Remove function.
54720         (output_test): Don't handle expected failures.
54721         * make/README.libm-test: Don't mention expected failure handling.
54722
54723         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
54724         (minus_zero): Likewise.
54725         (plus_infty): Likewise.
54726         (minus_infty): Likewise.
54727         (qnan_value): Likewise.
54728         (max_value): Likewise.
54729         (min_value): Likewise.
54730         (min_subnorm_value): Likewise.
54731         (initialize): Do not initialize those variables dynamically.
54732
54733 2013-05-03  Roland McGrath  <roland@hack.frob.com>
54734
54735         * io/open.c (__open_2): Moved to ...
54736         * io/open_2.c: ... this new file.
54737         * io/open64.c (__open64_2): Moved to ...
54738         * io/open64_2.c: ... this new file.
54739         * io/openat.c (__openat_2): Moved to ...
54740         * io/openat_2.c: ... this new file.
54741         * io/openat64.c (__openat64_2): Moved to ...
54742         * io/openat64_2.c: ... this new file.
54743         * io/Makefile (routines): Add them.
54744         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
54745         * sysdeps/unix/sysv/linux/open_2.c: File removed.
54746         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
54747         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
54748         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
54749         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
54750         (__openat64): Add hidden_ver.
54751         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
54752         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
54753
54754         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
54755         Separately conditionalize setting of GLRO(dl_sysinfo) so
54756         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
54757         as well, but the actual setting is only under [NEED_DL_SYSINFO].
54758
54759 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54760
54761         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
54762         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
54763         definition.
54764         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
54765         * sysdeps/unix/sysv/linux/powerpc/init-first.c
54766         (_libc_vdso_platform_setup): Add __vdso_time initialization.
54767         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
54768         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
54769
54770 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
54771
54772         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
54773         test signgam value.
54774
54775         * math/libm-test.inc (hypot_test): Do not use
54776         IGNORE_ZERO_INF_SIGN.
54777
54778 2013-05-03  Andreas Jaeger  <aj@suse.de>
54779
54780         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
54781         Linux 3.9.
54782         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
54783         (PF_MAX): Adjust for VSOCK change.
54784
54785 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54786
54787         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54788
54789 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
54790
54791         [BZ #15264]
54792         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
54793         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
54794         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
54795
54796 2013-05-02  David S. Miller  <davem@davemloft.net>
54797
54798         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54799
54800 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
54801
54802         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
54803
54804 2013-05-01  Roland McGrath  <roland@hack.frob.com>
54805
54806         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
54807
54808 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
54809
54810         [BZ #14952]
54811         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
54812         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
54813         Use __attribute__ ((__gnu_inline__)).
54814         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
54815         Don't use __attribute__ ((__gnu_inline__)).
54816
54817 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
54818
54819         [BZ #15423]
54820         * math/s_catan.c (__catan): Handle small real or imaginary part of
54821         input specially to avoid spurious underflow.
54822         * math/s_catanf.c (__catanf): Likewise.
54823         * math/s_catanh.c (__catanh): Likewise.
54824         * math/s_catanhf.c (__catanhf): Likewise.
54825         * math/s_catanhl.c (__catanhl): Likewise.
54826         * math/s_catanl.c (__catanl): Likewise.
54827         * math/libm-test.inc (catan_test): Add more tests.
54828         (catanh_test): Likewise.
54829         * sysdeps/i386/fpu/libm-test-ulps: Update.
54830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54831
54832 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54833
54834         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54835
54836 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
54837
54838         [BZ #15416]
54839         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
54840         accurately for denominator in atan2.
54841         * math/s_catanf.c (__catanf): Likewise.
54842         * math/s_catanh.c (__catanh): Likewise.
54843         * math/s_catanhf.c (__catanhf): Likewise.
54844         * math/s_catanhl.c (__catanhl): Likewise.
54845         * math/s_catanl.c (__catanl): Likewise.
54846         * math/libm-test.inc (catan_test): Add more tests.
54847         (catanh_test): Likewise.
54848         * sysdeps/i386/fpu/libm-test-ulps: Update.
54849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54850
54851 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54852
54853         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
54854
54855         * benchtests/Makefile (bench): Remove slow benchmarks.
54856         * benchtests/atan-inputs: Add slow benchmark inputs.
54857         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
54858         (BENCH_FUNC): Accept variant offset.
54859         (VARIANT): Define.
54860         * benchtests/bench-skeleton.c (main): Run benchmark for each
54861         variant.
54862         * benchtests/cos-inputs: Add slow benchmark inputs.
54863         * benchtests/exp-inputs: Likewise.
54864         * benchtests/pow-inputs: Likewise.
54865         * benchtests/sin-inputs: Likewise.
54866         * benchtests/slowatan-inputs: Remove.
54867         * benchtests/slowatan.c: Remove.
54868         * benchtests/slowcos-inputs: Remove.
54869         * benchtests/slowcos.c: Remove.
54870         * benchtests/slowexp-inputs: Remove.
54871         * benchtests/slowexp.c: Remove.
54872         * benchtests/slowpow-inputs: Remove.
54873         * benchtests/slowpow.c: Remove.
54874         * benchtests/slowsin-inputs: Remove.
54875         * benchtests/slowsin.c: Remove.
54876         * benchtests/slowtan-inputs: Remove.
54877         * benchtests/slowtan.c: Remove.
54878         * benchtests/tan-inputs: Add slow benchmark inputs.
54879         * scripts/bench.pl: Parse comments and directives.
54880
54881         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
54882         in CPPFLAGS.
54883         ($(objpfx)bench-%.c): Remove *-ITER.
54884         * benchtests/bench-modf.c: Remove definition of ITER.
54885         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
54886         (main): Loop for DURATION seconds instead of fixed number of
54887         iterations.
54888         * scripts/bench.pl: Don't expect iterations in parameters.
54889
54890 2013-04-29  Roland McGrath  <roland@hack.frob.com>
54891
54892         * io/fchdir.c (__fchdir): Renamed from fchdir.
54893         (fchdir): Define as weak alias.
54894
54895 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
54896
54897         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
54898         (ERRNO_EDOM): Likewise.
54899         (ERRNO_ERANGE): Likewise.
54900         (noErrnoTests): New variable.
54901         (init_max_error): Set errno to 0.
54902         (test_single_errno): New function.
54903         (test_errno): Likewise.
54904         (check_float_internal): Call test_errno.  Set errno to 0.
54905         (check_complex): Refer to errno tests in comment.
54906         (check_int): Call test_errno.  Set errno to 0.
54907         (check_long): Likewise.
54908         (check_bool): Likewise.
54909         (check_longlong): Likewise.
54910         (cos_test): Use ERRNO_* flags for errno tests instead of
54911         check_int.
54912         (expm1_test): Likewise.
54913         (fmod_test): Likewise.
54914         (ilogb_test): Likewise.
54915         (lgamma_test): Likewise.
54916         (pow_test): Likewise.
54917         (remainder_test): Likewise.
54918         (sin_test): Likewise.
54919         (tan_test): Likewise.
54920         (yn_test): Likewise.
54921         (initialize): Set errno to 0.
54922         (main): Print number of errno tests.
54923         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
54924
54925 2013-04-29  Andreas Jaeger  <aj@suse.de>
54926
54927         [BZ #15084]
54928         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
54929         and RES_USEVC.
54930
54931         [BZ #15085]
54932         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
54933         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
54934         unimplemented.
54935
54936         [BZ #15380]
54937         * stdlib/random.c (__initstate): Return NULL if
54938         __initstate fails.
54939
54940         [BZ #15086]
54941         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
54942         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
54943         RES_SNGLKUPREOP.
54944
54945 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54946
54947         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54948
54949 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
54950
54951         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
54952         of individual tests.
54953         (casin_test): Likewise.
54954         (casinh_test): Likewise.
54955
54956 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
54957
54958         [BZ #15409]
54959         * math/s_catan.c (__catan): Handle arguments with large real or
54960         imaginary part separately without squaring.
54961         * math/s_catanf.c (__catanf): Likewise.
54962         * math/s_catanh.c (__catanh): Likewise.
54963         * math/s_catanhf.c (__catanhf): Likewise.
54964         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
54965         and redefine.
54966         (__catanhl): Handle arguments with large real or imaginary part
54967         separately without squaring.
54968         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
54969         and redefine.
54970         (__catanl): Handle arguments with large real or imaginary part
54971         separately without squaring.
54972         * math/libm-test.inc (catan_test): Add more tests.
54973         (catanh_test): Likewise.
54974         * sysdeps/i386/fpu/libm-test-ulps: Update.
54975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54976
54977 2013-04-27  Andreas Jaeger  <aj@suse.de>
54978
54979         [BZ #15007]
54980         * stdlib/stdlib.h: Update guards for qecvt.
54981         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
54982         <stdlib.h>.
54983
54984 2013-04-27  Allan McRae  <allan@archlinux.org>
54985
54986         * sysdeps/i386/fpu/libm-test-ulps: Update.
54987
54988 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
54989
54990         [BZ #15406]
54991         * math/s_catan.c: Include <float.h>.
54992         (__catan): Ensure underflow exception occurs for underflowed
54993         result.
54994         * math/s_catanf.c: Include <float.h>.
54995         (__catanf): Ensure underflow exception occurs for underflowed
54996         result.
54997         * math/s_catanh.c: Include <float.h>.
54998         (__catanh): Ensure underflow exception occurs for underflowed
54999         result.
55000         * math/s_catanhf.c: Include <float.h>.
55001         (__catanhf): Ensure underflow exception occurs for underflowed
55002         result.
55003         * math/s_catanhl.c: Include <float.h>.
55004         (__catanhl): Ensure underflow exception occurs for underflowed
55005         result.
55006         * math/s_catanl.c: Include <float.h>.
55007         (__catanl): Ensure underflow exception occurs for underflowed
55008         result.
55009         * math/libm-test.inc (catan_test): Add more tests.
55010         (catanh_test): Likewise.
55011
55012         [BZ #15405]
55013         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
55014         underflowed result.
55015         * math/s_ccoshf.c (__ccoshf): Likewise.
55016         * math/s_ccoshl.c (__ccoshl): Likewise.
55017         * math/s_csin.c (__csin): Likewise.
55018         * math/s_csinf.c (__csinf): Likewise.
55019         * math/s_csinh.c (__csinh): Likewise.
55020         * math/s_csinhf.c (__csinhf): Likewise.
55021         * math/s_csinhl.c (__csinhl): Likewise.
55022         * math/s_csinl.c (__csinl): Likewise.
55023         * math/libm-test.inc (ccos_test): Add more tests.
55024         (ccosh_test): Likewise.
55025         (csin_test): Likewise.
55026         (csinh_test): Likewise.
55027
55028 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55029
55030         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
55031         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
55032         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
55033         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
55034         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
55035         powerpc/power5+/fpu folders.
55036         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
55037
55038
55039 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
55040
55041         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55042
55043 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
55044
55045         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
55046         additions to variable.
55047         [$(config-machine) = x86_64] (modules-names): Likewise.
55048         ($(objpfx)tst-audit3): Remove dependency.
55049         ($(objpfx)tst-audit3.out): Likewise.
55050         ($(objpfx)tst-audit4): Likewise.
55051         ($(objpfx)tst-audit4.out): Likewise.
55052         ($(objpfx)tst-audit5): Likewise.
55053         ($(objpfx)tst-audit5.out): Likewise.
55054         ($(objpfx)tst-audit6): Likewise.
55055         ($(objpfx)tst-audit6.out): Likewise.
55056         ($(objpfx)tst-audit7): Likewise.
55057         ($(objpfx)tst-audit7.out): Likewise.
55058         (tst-audit3-ENV): Remove variable.
55059         (tst-audit4-ENV): Likewise.
55060         (tst-audit5-ENV): Likewise.
55061         (tst-audit6-ENV): Likewise.
55062         (tst-audit7-ENV): Likewise.
55063         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
55064         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
55065         addition to variable.
55066         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
55067         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
55068         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
55069         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
55070         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
55071         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
55072         tst-audit3, tst-audit4 and tst-audit5.
55073         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
55074         tst-audit6 and tst-audit7.
55075         [$(subdir) = elf] (modules-names): Add audit modules for those
55076         tests.
55077         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
55078         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
55079         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
55080         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
55081         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
55082         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
55083         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
55084         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
55085         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
55086         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
55087         [$(subdir) = elf] (tst-audit3-ENV): New variable.
55088         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
55089         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
55090         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
55091         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
55092         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
55093         Likewise.
55094         [$(subdir) = elf && $(config-cflags-avx) = yes]
55095         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
55096         [$(subdir) = elf && $(config-cflags-avx) = yes]
55097         (CFLAGS-tst-auditmod4a.c): Likewise.
55098         [$(subdir) = elf && $(config-cflags-avx) = yes]
55099         (CFLAGS-tst-auditmod4b.c): Likewise.
55100         [$(subdir) = elf && $(config-cflags-avx) = yes]
55101         (CFLAGS-tst-auditmod6b.c): Likewise.
55102         [$(subdir) = elf && $(config-cflags-avx) = yes]
55103         (CFLAGS-tst-auditmod6c.c): Likewise.
55104         [$(subdir) = elf && $(config-cflags-avx) = yes]
55105         (CFLAGS-tst-auditmod7b.c): Likewise.
55106         * elf/tst-audit3.c: Move to ...
55107         * sysdeps/x86_64/tst-audit3.c: ... here.
55108         * elf/tst-audit4.c: Move to ...
55109         * sysdeps/x86_64/tst-audit4.c: ... here.
55110         * elf/tst-audit5.c: Move to ...
55111         * sysdeps/x86_64/tst-audit5.c: ... here.
55112         * elf/tst-audit6.c: Move to ...
55113         * sysdeps/x86_64/tst-audit6.c: ... here.
55114         * elf/tst-audit7.c: Move to ...
55115         * sysdeps/x86_64/tst-audit7.c: ... here.
55116         * elf/tst-auditmod3a.c: Move to ...
55117         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
55118         * elf/tst-auditmod3b.c: Move to ...
55119         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
55120         * elf/tst-auditmod4a.c: Move to ...
55121         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
55122         * elf/tst-auditmod4b.c: Move to ...
55123         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
55124         * elf/tst-auditmod5a.c: Move to ...
55125         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
55126         * elf/tst-auditmod5b.c: Move to ...
55127         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
55128         * elf/tst-auditmod6a.c: Move to ...
55129         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
55130         * elf/tst-auditmod6b.c: Move to ...
55131         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
55132         * elf/tst-auditmod6c.c: Move to ...
55133         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
55134         * elf/tst-auditmod7a.c: Move to ...
55135         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
55136         * elf/tst-auditmod7b.c: Move to ...
55137         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
55138
55139 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
55140
55141         [BZ #15366]
55142         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
55143         define unconditionally.
55144         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
55145         define unconditionally.
55146         (INT8_C, INT16_C, etc.): Likewise.
55147
55148 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
55149
55150         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
55151         __ehdr_start with hidden visibility.
55152
55153         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
55154
55155 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
55156
55157         * math/libm-test.inc (cos_test): Use accurate hex constants.
55158         (sincost_test): Likewise.
55159
55160 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
55161
55162         * math/libm-test.inc (catan_test): Add more tests.
55163         (catanh_test): Likewise.
55164
55165         * math/s_catanf.c (__catanf): Use suffixed floating-point
55166         constants.
55167         * math/s_catanhf.c (__catanhf): Likewise.
55168         * math/s_catanhl.c (__catanhl): Likewise.
55169         * math/s_catanl.c (__catanl): Likewise.
55170
55171         [BZ #15394]
55172         * math/s_catan.c (__catan): Calculate imaginary part of result
55173         with log1p not log unless computing log of number close to 0.
55174         * math/s_catanf.c (__catanf): Likewise.
55175         * math/s_catanl.c (__catanl): Likewise.
55176         * math/s_catanh.c (__catanh): Calculate real part of result with
55177         log1p not log unless computing log of number close to 0.
55178         * math/s_catanhf.c (__catanhf): Likewise.
55179         * math/s_catanhl.c (__catanhl): Likewise.
55180         * math/libm-test.inc (catan_test): Add more tests.
55181         (catanh_test): Likewise.
55182         * sysdeps/i386/fpu/libm-test-ulps: Update.
55183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55184
55185 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
55186
55187         * benchtests/Makefile: Mention files in which fast and slow
55188         paths of math functions are implemented.
55189
55190 2013-04-23  Roland McGrath  <roland@hack.frob.com>
55191
55192         * sysdeps/posix/timespec_get.c: New file.
55193
55194 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55195
55196         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
55197         POWER.
55198         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
55199         for POWER.
55200         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
55201         powerpc/power5/fpu folders.
55202         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
55203         * benchtests/Makefile: Add modf testcase.
55204         * benchtests/bench-modf.c: New file: Benchmark test for mo
55205
55206 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
55207
55208         [BZ #14888]
55209         * time/Makefile (tests): Add tst-strptime-whitespace.
55210         * time/strptime_l.c (get_number): Use ISSPACE.
55211         (__strptime_internal): Likewise.
55212         * time/tst-strptime-whitespace.c: New test case.
55213
55214 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
55215
55216         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
55217         member.
55218         (_nss_files_init): Set it here.
55219
55220 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
55221
55222         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
55223         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
55224         unsigned.
55225
55226 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
55227
55228         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
55229
55230 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
55231
55232         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
55233         size just once.
55234
55235 2013-04-21  David S. Miller  <davem@davemloft.net>
55236
55237         * po/ru.po: Update Russion translation from translation project.
55238
55239 2013-04-17  Adam Conrad  <adconrad@0c3.net>
55240
55241         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
55242         and setfsgid.
55243
55244 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
55245
55246         * configure.in: Remove i386 configure warning. Remove i386 case.
55247         * configure: Regenerate.
55248         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
55249         Add example to error message.
55250         * sysdeps/i386/configure: Regenerate.
55251
55252 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
55253
55254         * benchtests/Makefile (bench): Add cos, tan, slowcos and
55255         slowtan.
55256         * benchtests/cos-inputs: New file.
55257         * benchtests/slowcos-inputs: New file.
55258         * benchtests/slowcos.c: New file.
55259         * benchtests/slowtan-inputs: New file.
55260         * benchtests/slowtan.c: New file.
55261         * benchtests/tan-inputs: New file.
55262
55263 2013-04-16  Roland McGrath  <roland@hack.frob.com>
55264
55265         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
55266         considered kosher.
55267
55268 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55269
55270         * benchtests/Makefile: Include cppflags-iterator.mk to add
55271         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
55272
55273         * Makefile.in (bench-clean): New target.
55274         * benchtests/Makefile (bench-clean): Likewise.
55275
55276 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
55277
55278         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
55279
55280 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
55281
55282         * stdio-common/tstdiomisc.c: Fix coding-style violation.
55283
55284 2013-04-15  Andreas Schwab  <schwab@suse.de>
55285
55286         * nscd/grpcache.c (cache_addgr): Properly check for short write.
55287         * nscd/initgrcache.c (addinitgroupsX): Likewise.
55288         * nscd/pwdcache.c (cache_addpw): Likewise.
55289         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
55290         more than recsize.
55291
55292 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55293
55294         * benchtests/Makefile (bench): Write all output to
55295         bench-out.tmp together.
55296
55297 2013-04-15  Andreas Schwab  <schwab@suse.de>
55298
55299         * nscd/nscd.c (main): Don't fork again after closing files.
55300
55301 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55302
55303         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
55304
55305         * benchtests/Rules (bench-deps): Collect dependencies into a
55306         single variable.  Add Makefile to dependencies.
55307         ($(objpfx)bench-%.c): Depend on bench-deps.
55308
55309 2013-04-12  Roland McGrath  <roland@hack.frob.com>
55310             Xavier Roche  <roche+kml2@exalead.com>
55311
55312         [BZ #15361]
55313         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
55314         just that it's a file descriptor.
55315         * manual/llio.texi (Synchronizing AIO Operations): Update description
55316         for EBADF error from aio_fsync.
55317
55318 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
55319
55320         * Rules (bench): Move target definition...
55321         * benchtests/Makefile: ... here.
55322
55323 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
55324
55325         * math/libm-test.inc (cos_test): Fix PI/2 test.
55326         (sincos_test): Likewise.
55327         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
55328         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
55329
55330 2013-04-11  Andreas Schwab  <schwab@suse.de>
55331
55332         [BZ #13988]
55333         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
55334         accept exponent character only when digits were seen.
55335         * stdio-common/Makefile (tests): Add bug26.
55336         * stdio-common/bug26.c: New file.
55337
55338         [BZ #14293]
55339         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
55340         non-freeable.
55341
55342 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
55343
55344         * Makeconfig (rtld-prefix): Define built linker prefix.
55345         * Rules (run-bench): Use it.
55346         * math/Makefile (run-regen-ulps): Likewise.
55347
55348         * Rules (bench): Remove eval.
55349
55350 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
55351             Roland McGrath  <roland@hack.frob.com>
55352             Ondrej Bilka  <neleai@seznam.cz>
55353
55354         [BZ #15346]
55355         * time/getdate.c: Include ctype.h and alloca.h.
55356         (__getdate_r): Trim leading and trailing spaces of input.
55357         * time/tst-getdate.c (tests): Add tests with leading and
55358         trailing spaces.
55359
55360 2013-04-08  Roland McGrath  <roland@hack.frob.com>
55361
55362         [BZ #14280]
55363         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
55364         when computing value.
55365
55366 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55367
55368         * math/README.libm-test (How can I generate "libm-test-ulps"?):
55369         Use testrun.sh to run libm tests.
55370
55371         [BZ #15309]
55372         * elf/dl-open.c (dl_open_worker): memset all of seen array.
55373
55374 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
55375
55376         [BZ #15264]
55377         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
55378
55379 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55380
55381         * Makefile.in (regen-ulps): New target.
55382         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
55383         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
55384         [ifneq (no,$(PERL)] (regen-ulps): New target.
55385         [ifeq (no,$(PERL)] (regen-ulps): New target.
55386         * math/libm-test.inc (ulps_file_name): Define.
55387         (output_dir): New variable.
55388         (options): Add "output-dir" option.
55389         (parse_opt): Handle 'o' case.
55390         (main): If output_dir is non-NULL use it as a prefix
55391         otherwise use "".
55392         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
55393
55394 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55395
55396         [BZ #10060, #10062]
55397         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
55398         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
55399         fail configure if __sync_val_compare_and_swap is not inlined.
55400         * sysdeps/i386/configure: Regenerate.
55401         * configure.in: Build for i686 when configured for i386.
55402         * configure: Regenerate.
55403         * README: Remove i386 reference.
55404
55405 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55406
55407         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
55408         * sysdeps/s390/s390-64/sysdep.h: Likewise.
55409
55410 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
55411
55412         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
55413         (lmsnanval): New variables.
55414         (F): Add conversion tests.
55415         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
55416         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
55417
55418         * stdio-common/tstdiomisc.c (F): Properly collect individual
55419         tests' results.
55420
55421         [BZ #14686, #15336]
55422         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
55423         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
55424         Instead, use input NaN values or generate a qNaN by arithmetic
55425         operation.  Also fix bugs to comply with the standard.
55426         * math/libm-test.inc (remainder_test): Add more tests.
55427
55428         [BZ #15335, #15342]
55429         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
55430         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
55431         input NaN values or generate a qNaN by arithmetic operation.
55432
55433         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
55434         unreachable code.
55435
55436         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
55437         definitions.
55438
55439 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
55440
55441         [BZ #14478]
55442         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
55443         underflowed result.
55444         * math/s_cexpf.c (__cexpf): Likewise.
55445         * math/s_cexpl.c (__cexpl): Likewise.
55446         * math/libm-test.inc (cexp_test): Add more tests.
55447
55448 2013-04-03  Andreas Schwab  <schwab@suse.de>
55449
55450         [BZ #15330]
55451         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
55452         order arrays from heap if bigger than alloca cutoff.
55453
55454 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
55455
55456         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
55457         (SNAN_TESTS_double): Refer to GCC PR56831.
55458         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
55459         GCC PR56828.
55460
55461 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
55462
55463         * Rules (bench): Move bench.out after the run is complete.
55464
55465         * Rules (bench): Echo currently running benchmark.
55466
55467         * benchtests/Makefile (bench): Add atan and slowatan.
55468         * benchtests/atan-inputs: New file.
55469         * benchtests/slowatan-inputs: New file.
55470         * benchtests/slowatan.c: New file.
55471
55472         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
55473         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
55474         its value.
55475
55476         [BZ #15305]
55477         * sysdeps/unix/sysv/linux/kernel-features.h
55478         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
55479         __ASSUME_XFS_RESTRICTED_CHOWN.
55480         * sysdeps/unix/sysv/linux/pathconf.c
55481         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
55482         Save and restore errno.
55483
55484 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
55485
55486         [BZ #15327]
55487         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
55488         arguments using __kernel_casinh.
55489         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
55490         arguments using __kernel_casinhf.
55491         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
55492         arguments using __kernel_casinhl.
55493         * math/libm-test.inc (cacosh_test): Add more tests.
55494         * sysdeps/i386/fpu/libm-test-ulps: Update.
55495         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55496
55497 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
55498
55499         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
55500         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
55501
55502         * bench/Makefile (bench): Add sin and slowsin.
55503         * benchtests/sin-inputs: New file.
55504         * benchtests/slowsin-inputs: New file.
55505         * benchtests/slowsin.c: New file.
55506
55507         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
55508         (bench): Add slowexp and slowpow.
55509         (exp-ITER): Increase iterations.
55510         (pow-ITER): Likewise.
55511         * benchtests/exp-inputs: Change input.
55512         * benchtests/pow-inputs: Likewise.
55513         * benchtests/slowexp-inputs: New file.
55514         * benchtests/slowexp.c: New file.
55515         * benchtests/slowpow-inputs: New file.
55516         * benchtests/slowpow.c: New file.
55517
55518 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55519
55520         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
55521         instructions.
55522         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
55523         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
55524         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
55525         * benchtests/Makefile: Add rint benchtest.
55526         * benchtests/rint-inputs: Input for rint benchtest.
55527
55528 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
55529
55530         * Versions.def (libm): Add GLIBC_2.18.
55531         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
55532         hidden libm prototypes.
55533         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
55534         * math/Makefile (libm-calls): Add s_issignaling.
55535         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
55536         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
55537         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
55538         declaration.
55539         * math/math.h [__USE_GNU] (issignaling): New macro.
55540         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
55541         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
55542         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
55543         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
55544         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
55545         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
55546         * manual/arith.texi (issignaling): New section.
55547         * manual/libm-err-tab.pl (@all_functions): Update comment.
55548         * math/gen-libm-test.pl (parse_args): Apply special handling for
55549         issignaling.
55550         * math/libm-test.inc (print_float, issignaling_test): New
55551         functions.
55552         (check_float_internal): Add issignaling checks.
55553         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
55554         default definition.
55555         * sysdeps/powerpc/math-tests.h: New file.
55556         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
55557         tests.
55558         * math/test-snan.c (TEST_FUNC): Likewise.
55559
55560 2013-03-30  David S. Miller  <davem@davemloft.net>
55561
55562         * po/de.po: Update from translation team.
55563
55564 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
55565
55566         [BZ #10357]
55567         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55568         imaginary part less than 1.0 and real part less than 0.5
55569         specially.
55570         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55571         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55572         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
55573         (cacos_test): Add more tests.
55574         (casin_test): Likewise.
55575         (casinh_test): Likewise.
55576         * sysdeps/i386/fpu/libm-test-ulps: Update.
55577         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55578
55579 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55580
55581         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
55582         ONE with its value.
55583
55584         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
55585         (__pow_mp): Replace ONE and MONE with their values.
55586         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55587         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
55588         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55589         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
55590         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55591         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
55592
55593         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
55594
55595         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
55596         (__pow_mp): Replace ZERO and MZERO with their values.
55597         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
55598         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55599         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55600         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
55601         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55602         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
55603         (__sqr): Likewise.
55604
55605         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
55606
55607         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
55608
55609 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55610
55611         * include/stdlib.h [!SHARED] (__call_tls_dtors):
55612         Declare with __attribute__ ((weak)).
55613         * stdlib/exit.c (__libc_atexit) [!SHARED]:
55614         Call __call_tls_dtors only if it's not NULL.
55615
55616 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55617
55618         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
55619         didn't do it already, then set _dl_phdr and _dl_phnum based on the
55620         magic __ehdr_start linker symbol if it's defined.
55621         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
55622         them up here if it was already done.
55623
55624         * elf/dl-support.c (_dl_phdr): Make pointer to const.
55625         (_dl_aux_init): Use const in cast when setting it.
55626         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
55627         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
55628         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
55629
55630         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
55631         Declare them here.
55632         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
55633         * csu/libc-tls.c: Nor here.
55634         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
55635
55636         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
55637         (__libc_message): Never call vsyslog.
55638
55639 2013-03-28  Alan Modra  <amodra@gmail.com>
55640
55641         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
55642         Define as empty.
55643         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
55644         Likewise.
55645
55646 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55647
55648         [BZ #15214]
55649         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
55650         underflow.
55651         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55652
55653 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55654
55655         [BZ #15304]
55656         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
55657         Don't add gid passed as argument.
55658
55659         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
55660
55661 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
55662
55663         [BZ #15307]
55664         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55665         imaginary part between 1.0 and 1.5 and real part less than 0.5
55666         specially.
55667         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55668         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55669         * math/libm-test.inc (cacos_test): Add more tests.
55670         (casin_test): Likewise.
55671         (casinh_test): Likewise.
55672         * sysdeps/i386/fpu/libm-test-ulps: Update.
55673         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55674
55675 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
55676
55677         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
55678         constants.
55679         (norm): Likewise.
55680         (denorm): Likewise.
55681         (__dbl_mp): Likewise.
55682         (add_magnitudes): Likewise.
55683         (sub_magnitudes): Likewise.
55684         (__add): Likewise.
55685         (__sub): Likewise.
55686         (__mul): Likewise.
55687         (__sqr): Likewise.
55688         (__inv): Likewise.
55689         (__dvd): Likewise.
55690
55691         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
55692         commented code.
55693         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
55694         (__dubcos): Likewise.
55695         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
55696         (__ieee754_acos): Likewise.
55697         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
55698         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
55699         (__exp1): Likewise.
55700         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55701         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
55702         (log1): Likewise.
55703         (my_log2): Likewise.
55704         (checkint): Likewise.
55705         * sysdeps/ieee754/dbl-64/e_remainder.c
55706         (__ieee754_remainder): Likewise.
55707         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55708         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
55709         (bsloww): Likewise.
55710         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
55711
55712         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
55713         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
55714         MANTISSA_STORE_T to store computations on mantissa.  Use
55715         macros for rounding and division.
55716         (denorm): Likewise.
55717         (__dbl_mp): Likewise.
55718         (add_magnitudes): Likewise.
55719         (sub_magnitudes): Likewise.
55720         (__mul): Likewise.
55721         (__sqr): Likewise.
55722         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
55723         powers of two in terms of TWOPOW macro.
55724         (mp_no): Make type of mantissa as MANTISSA_T.
55725         [!RADIXI]: Define RADIXI.
55726         [!TWO52]: Define TWO52.
55727         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
55728
55729 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55730
55731         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
55732         llroundl symbol when building for PPC32.
55733
55734 2013-03-24  Mark H Weaver  <mhw@netris.org>
55735
55736         * manual/arith.texi (Normalization Functions): Fix prototypes for
55737         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
55738
55739 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55740
55741         [BZ #13889]
55742         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
55743         high value to check if expl overflow.
55744         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
55745         to check for underflow and overflow.
55746         * math/libm-test.inc: Add exp test.
55747
55748 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
55749
55750         [BZ #11120]
55751         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
55752         with NOT_IN_libc.
55753
55754 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55755
55756         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
55757         symbol.
55758
55759 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
55760
55761         * math/gen-libm-test.pl (parse_args, special_functions): Properly
55762         wrap blocks consisting of several statements.
55763
55764         * sysdeps/generic/math-tests.h: New file.
55765         * sysdeps/i386/fpu/math-tests.h: Likewise.
55766         * math/test-snan.c: Include it.
55767         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
55768
55769 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
55770
55771         [BZ #15285]
55772         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
55773         (__ieee754_j0l): Do not improve calculations using cos of twice
55774         input for inputs above LDBL_MAX / 2.0L.
55775         (__ieee754_y0l): Likewise.
55776         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
55777         (__ieee754_j1l): Do not improve calculations using cos of twice
55778         input for inputs above LDBL_MAX / 2.0L.
55779         (__ieee754_y1l): Likewise.
55780         * math/libm-test.inc (j0_test): Add another test.
55781         (j1_test): Likewise.
55782         (y0_test): Likewise.
55783         (y1_test): Likewise.
55784         * sysdeps/i386/fpu/libm-test-ulps: Update.
55785
55786 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
55787
55788         * Rules ($(objpfx)bench-%.c): Include code from a C source
55789         file.
55790
55791 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
55792
55793         [BZ #15287]
55794         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55795         imaginary part 1.0 and real part less than 0.5 specially.
55796         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55797         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55798         * math/libm-test.inc (cacos_test): Add more tests.
55799         (casin_test): Likewise.
55800         (casinh_test): Likewise.
55801         * sysdeps/i386/fpu/libm-test-ulps: Update.
55802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55803
55804 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
55805
55806         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
55807         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
55808
55809 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
55810
55811         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
55812         * config.make.in (config-cflags-sse4): Remove variable.
55813         (config-cflags-avx): Likewise.
55814         (config-cflags-sse2avx): Likewise.
55815         (config-cflags-novzeroupper): Likewise.
55816         (config-asflags-i686): Likewise.
55817         (have-mfma4): Likewise.
55818         (have-as-vis3): Likewise.
55819         (MIG): Likewise.
55820         * configure.in (MIG): Do not AC_SUBST.
55821         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
55822         (libc_cv_cc_sse4): Do not AC_SUBST.
55823         (libc_cv_cc_avx): Likewise.
55824         (libc_cv_cc_sse2avx): Likewise.
55825         (libc_cv_cc_novzeroupper): Likewise.
55826         (libc_cv_cc_fma4): Likewise.
55827         (libc_cv_as_i686): Likewise.
55828         (libc_cv_sparc_as_vis3): Likewise.
55829         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
55830         LIBC_CONFIG_VAR.
55831         (config-asflags-i686): Likewise.
55832         (config-cflags-avx): Likewise.
55833         (config-cflags-sse2avx): Likewise.
55834         (have-mfma4): Likewise.
55835         (config-cflags-novzeroupper): Likewise.
55836         * sysdeps/mach/configure.in (MIG): Likewise.
55837         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
55838         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
55839         LIBC_CONFIG_VAR.
55840         (config-cflags-avx): Likewise.
55841         (config-cflags-sse2avx): Likewise.
55842         (have-mfma4): Likewise.
55843         (config-cflags-novzeroupper): Likewise.
55844         * configure: Regenerated.
55845         * sysdeps/i386/configure: Likewise.
55846         * sysdeps/mach/configure: Likewise.
55847         * sysdeps/sparc/configure: Likewise.
55848         * sysdeps/x86_64/configure: Likewise.
55849
55850 2013-03-20  Roland McGrath  <roland@hack.frob.com>
55851
55852         [BZ #14812]
55853         * locale/programs/localedef.c (options): Put N_ translation marker
55854         on argument names, not just descriptions.
55855
55856 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55857
55858         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
55859
55860 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
55861
55862         [BZ #14176]
55863         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
55864
55865 2013-03-19  Roland McGrath  <roland@hack.frob.com>
55866
55867         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
55868         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
55869         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
55870         [!BEFORE_ABORT] (before_abort): New function.
55871         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
55872         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
55873         (writev_for_fatal): New function.
55874         (WRITEV_FOR_FATAL): New macro; call that.
55875         (backtrace_and_maps): New function.
55876         (BEFORE_ABORT): New macro; call that.
55877         (struct str_list): Type removed.
55878         (__libc_message, __libc_fatal): Functions removed.
55879         Include <sysdeps/posix/libc_fatal.c> instead.
55880
55881 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
55882
55883         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
55884         constants.
55885         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
55886         double constants.
55887
55888 2013-03-19  Andreas Schwab  <schwab@suse.de>
55889
55890         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
55891         * sysdeps/gnu/configure: Regenerate.
55892
55893         * configure.in: Substitute libc_cv_rtlddir.
55894         * configure: Regenerate.
55895         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
55896         * Makeconfig (rtlddir, inst_rtlddir): New variables.
55897         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
55898         * elf/Makefile (install-others, CFLAGS-interp.c)
55899         (ldso_install, common-ldd-rewrite): Likewise.
55900         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
55901         $(inst_slibdir)/$(rtld-installed-name).
55902         * scripts/rellns-sh: Add -p option.
55903         * Makerules (make-shlib-link): Use rellns-sh to get relative name
55904         for source.
55905
55906 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
55907
55908         * manual/nptl.texi: Renamed to ...
55909         * manual/threads.texi: ... this.
55910         * manual/Makefile (chapters): Update.
55911
55912 2013-03-18  Roland McGrath  <roland@hack.frob.com>
55913
55914         [BZ #14812]
55915         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
55916         on argument names, not just descriptions.
55917         * malloc/memusagestat.c (options): Likewise.
55918         * nss/getent.c (options): Likewise.
55919
55920 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
55921
55922         [BZ #14812]
55923         * iconv/iconv_prog.c (options): Put N_ translation marker
55924         on argument names, not just descriptions.
55925         * iconv/iconvconfig.c (options): Likewise.
55926
55927 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
55928
55929         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
55930         implementation which is faster on all x86_64 architectures.
55931         Tested on AMD, Intel Nehalem, SNB, IVB.
55932         * sysdeps/x86_64/strnlen.S: Likewise.
55933
55934         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
55935         Remove all multiarch strlen and strnlen versions.
55936         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
55937         Remove strlen and strnlen related parts.
55938
55939         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
55940         Inline strlen part.
55941         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
55942
55943         * sysdeps/x86_64/multiarch/strlen.S: Remove.
55944         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
55945         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
55946         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
55947         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
55948         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
55949
55950 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
55951
55952         * manual/memory.texi (Malloc Tunable Parameters):
55953         Sort parameters alphabetically. Add comments for missing entries.
55954
55955 2013-03-17  David S. Miller  <davem@davemloft.net>
55956
55957         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55958
55959 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
55960
55961         [BZ #15283]
55962         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
55963         for arguments at most half maximum finite value.
55964         * math/libm-test.inc (j0_test): Add more tests.
55965         (j1_test): Likewise.
55966         (y0_test): Likewise.
55967         (y1_test): Likewise.
55968         * sysdeps/i386/fpu/libm-test-ulps: Update.
55969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55970
55971         [BZ #14155]
55972         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
55973         1 / x and functions P and Q for arguments above 0x1p256L.
55974         (__ieee754_y0l): Likewise.
55975         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
55976         (__ieee754_y1l): Likewise.
55977         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
55978         (j1_test): Likewise.
55979         (y0_test): Likewise.
55980         (y1_test): Likewise.
55981
55982 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
55983
55984         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
55985         variable.
55986
55987 2013-03-15  Roland McGrath  <roland@hack.frob.com>
55988
55989         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
55990         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
55991         zero since it's initialized to EXEC_PAGESIZE.
55992
55993         * sysdeps/unix/sysv/linux/ldsodefs.h
55994         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
55995         * sysdeps/generic/ldsodefs.h: ... here.
55996
55997 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
55998
55999         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
56000
56001         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
56002         math/test-snan.c.
56003         * math/test-snan.c: Renamed from
56004         sysdeps/powerpc/fpu/test-powerpc-snan.c.
56005         * math/Makefile (tests): Add test-snan.
56006         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
56007         test-powerpc-snan.
56008
56009         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
56010         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
56011         functions.
56012         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
56013         __builtin_nan family of functions.
56014         * math/libm-test.inc (initialize): Initialize qnan_value with
56015         __builtin_nan family of functions.
56016         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
56017         Remove variables.
56018         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
56019         Remove functions.
56020         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
56021         storage class.  Initialize qNaN_var and sNaN_var with
56022         __builtin_nan and __builtin_nans families of functions,
56023         respectively.
56024
56025         * math/libm-test.inc (acosh_test): Also test with qNaN input.
56026         (sqrt_test): Remove duplicate test with qNaN input.
56027         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
56028         (round_test, signbit_test, significand_test): Note missing +/-Inf
56029         as well as qNaN tests.
56030
56031         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
56032         qNaN_var.  Fix a few strings, too.
56033         * math/libm-test.inc (nan_value): Rename to qnan_value.
56034         * math/gen-libm-test.pl (%beautify): Adjust to that.
56035         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
56036         * math/test-misc.c (main): Likewise.
56037         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
56038         to __qnan_bytes, and __qnan_union, respectively.
56039         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
56040         Likewise.
56041         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
56042         and lqnanval, respectively.
56043         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
56044         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
56045         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
56046         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
56047
56048         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
56049         * math/test-misc.c (main) [__x86_64__]: Enable test for long
56050         doubles.
56051
56052         * math/test-misc.c (main): Fix copy'n'pastos.
56053         * misc/tst-efgcvt.c (special): Likewise.
56054
56055         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
56056         Remove declarations.
56057
56058 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56059
56060         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
56061         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
56062         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
56063         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
56064
56065 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56066
56067         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
56068         macro to return vdso values correctly in IFUNC implementations.
56069         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
56070         Optimization by using IFUNC.
56071
56072 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56073             Richard Henderson  <rth@redhat.com>
56074             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56075
56076         * Makefile.in (bench): New target.
56077         * NEWS: Mention the benchmark framework.
56078         * Rules (bench): Likewise.
56079         (binaries-bench): Generate binaries for functions to
56080         benchmark.
56081         * benchtests/Makefile: New makefile for benchmark tests.
56082         * benchtests/bench-skeleton.c: New skeleton file for benchmark
56083         programs.
56084         * benchtests/exp-inputs: New input file for EXP function.
56085         * benchtests/pow-inputs: New input file for POW function.
56086         * scripts/bench.pl: New script to generate source files for
56087         benchmark programs.
56088
56089 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56090
56091         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56092         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
56093         computations on mantissa.  Use macros for rounding and
56094         division.
56095         (denorm): Likewise.
56096         (__dbl_mp): Likewise.
56097         (add_magnitudes): Likewise.
56098         (sub_magnitudes): Likewise.
56099         (__mul): Likewise.
56100         (__sqr): Likewise.
56101         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56102         powers of two in terms of TWOPOW macro.
56103         (mp_no): Make type of mantissa as MANTISSA_T.
56104         [!RADIXI]: Define RADIXI.
56105         [!TWO52]: Define TWO52.
56106         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56107
56108         * manual/nptl.texi (cindex): Modify threads to pthreads.
56109
56110 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
56111
56112         * sysdeps/x86_64/preconfigure: Regenerated.
56113
56114 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
56115
56116         [BZ #14155]
56117         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
56118         0x1p28 and above.
56119         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
56120         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
56121         0x1p28 and above.
56122         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
56123         * math/libm-test.inc (j0_test): Do not allow one spurious
56124         underflow exception.
56125         (y1_test): Likewise.
56126
56127 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
56128
56129         * manual/Makefile (chapters): Add nptl.
56130         * manual/debug.texi (Debugging Support): Add link to Threads
56131         chapter.
56132         * manual/nptl.texi: New file.
56133
56134         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
56135
56136 2013-03-14  Petr Baudis  <pasky@ucw.cz>
56137
56138         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
56139         for non-NULL pointer before the memory validity test. Pointed
56140         out by Holger Brunck <holger.brunck@keymile.com>.
56141
56142 2013-03-13  Andreas Schwab  <schwab@suse.de>
56143
56144         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
56145         instead of .os.
56146
56147 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
56148
56149         * timezone/zic.c: Update from tzcode 2013b.
56150
56151 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
56152
56153         * manual/install.texi (Configuring and compiling):
56154         Mention i686 and i586.
56155         * INSTALL: Regenerate.
56156
56157 2013-03-12  Roland McGrath  <roland@hack.frob.com>
56158
56159         * sysdeps/init_array/elf-init.c: New file.
56160         * csu/elf-init.c
56161         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
56162         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
56163
56164         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
56165         __gmon_start__ as global, but as static with a .preinit_array pointer.
56166         * sysdeps/init_array/gmon-start.c: New file.  Use that.
56167         * sysdeps/init_array/crti.S: New file, empty except for comments.
56168         * sysdeps/init_array/crtn.S: Likewise.
56169
56170 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
56171
56172         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
56173         definining bcopy.
56174         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56175         Remove Prefer_SSE_for_memop.
56176         * sysdeps/x86_64/multiarch/init-arch.h: Remove
56177         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
56178         HAS_PREFER_SSE_FOR_MEMOP.
56179         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
56180         memset-x86-64.
56181         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
56182         Remove bzero, memset ifunc support.
56183         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
56184         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
56185         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56186         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56187
56188 2013-03-11  Andreas Schwab  <schwab@suse.de>
56189
56190         [BZ #15234]
56191         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
56192         by SHLIB_COMPAT.
56193         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
56194         (GLIBC_2.16): Remove pthread_atfork.
56195
56196 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
56197
56198         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
56199         (ptestcases.h): Likewise.
56200
56201 2013-03-08  Roland McGrath  <roland@hack.frob.com>
56202
56203         * Makeconfig ($(common-objpfx)config.status): Depend on
56204         sysdeps/*/preconfigure{,.in} too.
56205
56206 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
56207
56208         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
56209         (__free_hook): Use void * instead of __malloc_ptr_t.
56210         (__malloc_hook): Likewise.
56211         (__realloc_hook): Likewise.
56212         (__memalign_hook): Likewise.
56213         (__after_morecore_hook): Likewise.
56214         * malloc/arena.c (save_malloc_hook): Likewise.
56215         (save_free_hook): Likewise.
56216         * malloc/hooks.c (malloc_hook_ini): Likewise.
56217         (realloc_hook_ini): Likewise.
56218         (memalign_hook_ini): Likewise.
56219         * malloc/malloc.c (malloc_hook_ini): Likewise.
56220         (realloc_hook_ini): Likewise.
56221         (memalign_hook_ini): Likewise.
56222         (__free_hook): Likewise.
56223         (__malloc_hook): Likewise.
56224         (__realloc_hook): Likewise.
56225         (__memalign_hook): Likewise.
56226         (__libc_malloc): Likewise.
56227         (__libc_free): Likewise.
56228         (__libc_realloc): Likewise.
56229         (__libc_memalign): Likewise.
56230         (__libc_valloc): Likewise.
56231         (__libc_pvalloc): Likewise.
56232         (__libc_calloc): Likewise.
56233         (__posix_memalign): Likewise.
56234         * malloc/morecore.c (__sbrk): Likewise.
56235         (__default_morecore): Likewise.
56236
56237         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
56238
56239         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
56240         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
56241         __malloc_ptrdiff_t.
56242
56243         * malloc/malloc.h (__malloc_size_t): Remove macro.
56244         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
56245         __malloc_size_t.
56246         (old_memalign_hook): Likewise.
56247         (old_realloc_hook): Likewise.
56248         (struct hdr): Likewise.
56249         (flood): Likewise.
56250         (mallochook): Likewise.
56251         (memalignhook): Likewise.
56252         (reallochook): Likewise.
56253         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
56254         (tr_old_realloc_hook): Likewise.
56255         (tr_old_memalign_hook): Likewise.
56256         (tr_mallochook): Likewise.
56257         (tr_reallochook): Likewise.
56258         (tr_memalignhook): Likewise.
56259
56260 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56261
56262         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
56263         default_ldbl_pack and using as default implementation.
56264         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
56265         implementation.
56266         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
56267         redundant definition.
56268         (ldbl_insert_mantissa): Likewise.
56269         (ldbl_canonicalize): Likewise.
56270         (ldbl_nearbyint): Likewise.
56271         (ldbl_pack): Rename to ldbl_pack_ppc.
56272         (ldbl_unpack): Rename to ldbl_unpack_ppc.
56273         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
56274         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
56275
56276 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56277
56278         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
56279         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
56280         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
56281         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
56282         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
56283         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
56284         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
56285         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
56286
56287 2013-03-07  Andreas Jaeger  <aj@suse.de>
56288
56289         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56290         bits/mman-linux.h.
56291
56292 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56293
56294         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
56295         Include mpa.h and declare __MPEXP.
56296         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
56297         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56298         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56299         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
56300         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56301         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56302         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
56303
56304         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
56305         (__slowpow): Use long double EXPL and LOGL functions to
56306         compute POW.
56307         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56308         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56309         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
56310         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56311         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56312         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
56313
56314         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
56315         intermediate variable to calculate exponent.
56316         (__sqr): Likewise.
56317         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
56318         Likewise.
56319         (__sqr): Likewise.
56320
56321         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
56322         [!NO__SQR]: Define __sqr.
56323         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
56324         and NO__SQR.  Remove all code except __mul and __sqr.  Include
56325         sysdeps/ieee754/dbl-64/mpa.c.
56326         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56327
56328         [BZ #12723]
56329         * posix/Makefile (tests): Add tst-pathconf.
56330         * posix/tst-pathconf.c: New test case.
56331         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
56332         _PC_PIPE_BUF.
56333         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
56334
56335 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
56336
56337         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
56338
56339 2013-03-06  Andreas Jaeger  <aj@suse.de>
56340
56341         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
56342         definition via __MAP_ANONYMOUS.
56343
56344         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
56345         it's not part of Linux headers.
56346
56347         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
56348         (MAP_HUGE_MASK): Define.
56349
56350         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56351         Define.
56352         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56353         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56354         Define.
56355         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56356         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56357         Define.
56358         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56359         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
56360         Define.
56361         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56362
56363         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
56364         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
56365         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
56366         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
56367         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
56368         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
56369
56370         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
56371         Handle f2fs.
56372
56373         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
56374         Handle f2fs and efivarfs.
56375
56376         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
56377         f2fs.
56378
56379         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
56380         (EFIVARFS_MAGIC): Add.
56381         (F2FS_LINK_MAX): Add.
56382
56383 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
56384
56385         * stdio-common/vfprintf.c: Replace __builtin_expect with
56386         __glibc_unlikely.
56387
56388 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
56389
56390         [BZ #13550]
56391         * sysdeps/generic/bp-sym.h: Remove file.
56392         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
56393         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
56394         <bp-sym.h> and <bp-asm.h>.
56395         (__longjmp): Don't use BP_SYM.
56396         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
56397         and <bp-asm.h>.
56398         (memcpy): Don't use BP_SYM.
56399         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
56400         <bp-sym.h> and <bp-asm.h>.
56401         (memcpy): Don't use BP_SYM.
56402         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
56403         <bp-asm.h>.
56404         (memcpy): Don't use BP_SYM.
56405         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
56406         <bp-asm.h>.
56407         (memset): Don't use BP_SYM.
56408         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56409         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56410         (__bzero): Don't use BP_SYM.
56411         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56412         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56413         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
56414         <bp-sym.h> and <bp-asm.h>.
56415         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56416         pointers.
56417         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
56418         <bp-sym.h> and <bp-asm.h>.
56419         (memcpy): Don't use BP_SYM.
56420         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
56421         <bp-sym.h> and <bp-asm.h>.
56422         (memset): Don't use BP_SYM.
56423         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56424         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56425         (__bzero): Don't use BP_SYM.
56426         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56427         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56428         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
56429         <bp-sym.h> and <bp-asm.h>.
56430         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56431         pointers.
56432         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
56433         <bp-sym.h> and <bp-asm.h>.
56434         (memcpy): Don't use BP_SYM.
56435         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
56436         <bp-sym.h> and <bp-asm.h>.
56437         (memset): Don't use BP_SYM.
56438         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56439         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56440         (__bzero): Don't use BP_SYM.
56441         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56442         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56443         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
56444         <bp-sym.h> and <bp-asm.h>.
56445         (__memchr): Don't use BP_SYM.
56446         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
56447         <bp-sym.h> and <bp-asm.h>.
56448         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56449         pointers.
56450         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
56451         <bp-sym.h> and <bp-asm.h>.
56452         (memcpy): Don't use BP_SYM.
56453         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
56454         <bp-sym.h> and <bp-asm.h>.
56455         (__mempcpy): Don't use BP_SYM.
56456         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
56457         <bp-sym.h> and <bp-asm.h>.
56458         (__memrchr): Don't use BP_SYM.
56459         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
56460         <bp-sym.h> and <bp-asm.h>.
56461         (memset): Don't use BP_SYM.
56462         (__bzero): Likewise.
56463         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
56464         <bp-sym.h> and <bp-asm.h>.
56465         (__rawmemchr): Don't use BP_SYM.
56466         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
56467         <bp-sym.h> and <bp-asm.h>.
56468         (__STRCMP): Don't use BP_SYM.
56469         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
56470         <bp-sym.h> and <bp-asm.h>.
56471         (strchr): Don't use BP_SYM.
56472         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
56473         <bp-sym.h> and <bp-asm.h>.
56474         (__strchrnul): Don't use BP_SYM.
56475         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
56476         <bp-sym.h> and <bp-asm.h>.
56477         (strlen): Don't use BP_SYM.
56478         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
56479         <bp-sym.h> and <bp-asm.h>.
56480         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56481         pointers.
56482         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
56483         <bp-sym.h> and <bp-asm.h>.
56484         (__strnlen): Don't use BP_SYM.
56485         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
56486         <bp-sym.h> and <bp-asm.h>.
56487         (__GI__setjmp): Don't use BP_SYM.
56488         (_setjmp): Likewise.
56489         (__sigsetjmp): Likewise.
56490         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
56491         (L(start_addresses)): Don't use BP_SYM.
56492         (_start): Likewise.
56493         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
56494         <bp-asm.h>.
56495         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
56496         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
56497         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56498         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56499         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
56500         <bp-asm.h>.
56501         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
56502         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
56503         about bounded pointers.
56504         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
56505         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
56506         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
56507         <bp-asm.h>.
56508         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56509         about bounded pointers.  Remove GKM FIXME comments.
56510         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
56511         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
56512         <bp-asm.h>.
56513         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
56514         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
56515         Remove GKM FIXME comments.
56516         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56517         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56518         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
56519         <bp-asm.h>.
56520         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56521         about bounded pointers.  Remove GKM FIXME comment.
56522         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
56523         and <bp-asm.h>.
56524         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56525         pointers.
56526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
56527         <bp-sym.h> and <bp-asm.h>.
56528         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
56529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
56530         <bp-sym.h> and <bp-asm.h>.
56531         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
56532         comment.
56533
56534 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
56535
56536         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
56537         call free(NULL).
56538
56539 2013-03-05  David S. Miller  <davem@davemloft.net>
56540
56541         * po/es.po: Update from translation team.
56542
56543 2013-03-05  Andreas Jaeger  <aj@suse.de>
56544
56545         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
56546         <bits/mman-linux.h>.
56547         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56548         is fine.
56549         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
56550         <bits/mman-linux.h> to end of file.
56551         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56552         is fine.
56553         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
56554         <bits/mman-linux.h> to end of file.
56555         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56556         is fine.
56557         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
56558         <bits/mman-linux.h> to end of file.
56559
56560         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
56561         (MCL_CURRENT, MCL_FUTURE): Define here.
56562
56563 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56564
56565         [BZ #15232]
56566         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
56567         attribute_hidden.
56568         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
56569
56570 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56571
56572         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
56573         fourth parameter needed for rt_sigprocmask syscall.
56574         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
56575         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
56576         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
56577         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
56578         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
56579         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
56580
56581 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
56582
56583         [BZ #13550]
56584         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
56585         comment about bounded pointers.
56586         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
56587         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
56588
56589 2013-03-04  Andreas Jaeger  <aj@suse.de>
56590
56591         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
56592         common definitions.
56593
56594         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
56595         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
56596         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
56597         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
56598         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
56599         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
56600
56601 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56602
56603         [BZ #15055]
56604         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
56605         __ieee754_sqrl instead of __sqrl.
56606
56607 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
56608
56609         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
56610         * sysdeps/powerpc/fpu_control.h: ... here.
56611         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
56612         * sysdeps/powerpc/bits/fenvinline.h: ... here.
56613         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
56614         * sysdeps/powerpc/bits/mathinline.h: ... here.
56615
56616 2013-03-01  Roland McGrath  <roland@hack.frob.com>
56617
56618         * elf/dl-hwcaps.c (_dl_important_hwcaps):
56619         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
56620         to just [NEED_DL_SYSINFO_DSO].
56621         * elf/dl-support.c: Likewise.
56622         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
56623         * elf/rtld.c (dl_main): Likewise.
56624         * elf/setup-vdso.h (setup_vdso): Likewise.
56625         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
56626         * sysdeps/unix/sysv/linux/dl-sysdep.c
56627         (_dl_discover_osversion): Likewise.
56628
56629 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
56630
56631         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
56632         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56633
56634 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
56635
56636         * NEWS: Mention libm performance improvements and non-x86 PI
56637         futex support.
56638
56639         * csu/libc-start.c (__pthread_initialize_minimal): Change
56640         function arguments.
56641         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56642
56643 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
56644
56645         [BZ #13550]
56646         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
56647         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
56648         <bp-sym.h> and <bp-asm.h>.
56649         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56650         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
56651         and <bp-asm.h>.
56652         (memcpy): Don't use BP_SYM.
56653         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
56654         <bp-asm.h>.
56655         (__mpn_add_n): Don't use BP_SYM.
56656         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
56657         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
56658         and <bp-asm.h>.
56659         (__mpn_addmul_1): Don't use BP_SYM.
56660         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56661         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
56662         <bp-sym.h>.
56663         (_setjmp): Don't use BP_SYM.
56664         (__novmx_setjmp): Likewise.
56665         (__GI__setjmp): Likewise.
56666         (__vmx_setjmp): Likewise.
56667         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
56668         <bp-sym.h>.
56669         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
56670         (__bzero): Don't use BP_SYM.
56671         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56672         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56673         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
56674         <bp-sym.h> and <bp-asm.h>.
56675         (memcpy): Don't use BP_SYM.
56676         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
56677         <bp-sym.h> and <bp-asm.h>.
56678         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56679         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
56680         <bp-sym.h> and <bp-asm.h>.
56681         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56682         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
56683         <bp-asm.h>.
56684         (__mpn_lshift): Don't use BP_SYM.
56685         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
56686         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
56687         <bp-asm.h>.
56688         (memset): Don't use BP_SYM.
56689         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56690         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56691         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
56692         <bp-asm.h>.
56693         (__mpn_mul_1): Don't use BP_SYM.
56694         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56695         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
56696         <bp-sym.h> and <bp-asm.h>.
56697         (memcmp): Don't use BP_SYM.
56698         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
56699         <bp-sym.h> and <bp-asm.h>.
56700         (memcpy): Don't use BP_SYM.
56701         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
56702         <bp-sym.h> and <bp-asm.h>.
56703         (memset): Don't use BP_SYM.
56704         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
56705         <bp-sym.h> and <bp-asm.h>.
56706         (strncmp): Don't use BP_SYM.
56707         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
56708         <bp-sym.h> and <bp-asm.h>.
56709         (memcpy): Don't use BP_SYM.
56710         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
56711         <bp-sym.h> and <bp-asm.h>.
56712         (memset): Don't use BP_SYM.
56713         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
56714         <bp-sym.h> and <bp-asm.h>.
56715         (__memchr): Don't use BP_SYM.
56716         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
56717         <bp-sym.h> and <bp-asm.h>.
56718         (memcmp): Don't use BP_SYM.
56719         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
56720         <bp-sym.h> and <bp-asm.h>.
56721         (memcpy): Don't use BP_SYM.
56722         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
56723         <bp-sym.h> and <bp-asm.h>.
56724         (__mempcpy): Don't use BP_SYM.
56725         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
56726         <bp-sym.h> and <bp-asm.h>.
56727         (__memrchr): Don't use BP_SYM.
56728         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
56729         <bp-sym.h> and <bp-asm.h>.
56730         (memset): Don't use BP_SYM.
56731         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
56732         <bp-sym.h> and <bp-asm.h>.
56733         (__rawmemchr): Don't use BP_SYM.
56734         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
56735         <bp-sym.h> and <bp-asm.h>.
56736         (__STRCMP): Don't use BP_SYM.
56737         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
56738         <bp-sym.h> and <bp-asm.h>.
56739         (strchr): Don't use BP_SYM.
56740         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
56741         <bp-sym.h> and <bp-asm.h>.
56742         (__strchrnul): Don't use BP_SYM.
56743         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
56744         <bp-sym.h> and <bp-asm.h>.
56745         (strlen): Don't use BP_SYM.
56746         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
56747         <bp-sym.h> and <bp-asm.h>.
56748         (strncmp): Don't use BP_SYM.
56749         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
56750         <bp-sym.h> and <bp-asm.h>.
56751         (__strnlen): Don't use BP_SYM.
56752         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
56753         <bp-asm.h>.
56754         (__mpn_rshift): Don't use BP_SYM.
56755         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
56756         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
56757         <bp-sym.h> and <bp-asm.h>.
56758         (__sigsetjmp): Don't use BP_SYM.
56759         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
56760         (L(start_addresses)): Don't use BP_SYM.
56761         (_start): Likewise.
56762         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
56763         <bp-asm.h>.
56764         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
56765         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56766         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56767         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
56768         <bp-asm.h>.
56769         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
56770         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
56771         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
56772         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
56773         <bp-asm.h>.
56774         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
56775         comments.
56776         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
56777         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
56778         <bp-asm.h>.
56779         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
56780         FIXME comments.
56781         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56782         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56783         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
56784         <bp-asm.h>.
56785         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
56786         comment.
56787         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
56788         and <bp-asm.h>.
56789         (strncmp): Don't use BP_SYM,
56790         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
56791         <bp-asm.h>.
56792         (__mpn_sub_n): Don't use BP_SYM.
56793         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
56794         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
56795         and <bp-asm.h>.
56796         (__mpn_submul_1): Don't use BP_SYM.
56797         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
56799         <bp-sym.h> and <bp-asm.h>.
56800         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
56801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
56802         <bp-sym.h> and <bp-asm.h>.
56803         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
56804         comment.
56805
56806 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56807
56808         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
56809         Use ZK to minimize writes to Z.
56810         (sub_magnitudes): Simplify code a bit.
56811         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
56812         Use ZK to minimize writes to Z.
56813         (sub_magnitudes): Simplify code a bit.
56814
56815 2013-02-27  Roland McGrath  <roland@hack.frob.com>
56816
56817         * csu/gmon-start.c: Add special exception to license text.
56818
56819 2013-02-27  Richard Henderson  <rth@redhat.com>
56820
56821         * scripts/config.guess: Update from config.git.
56822         * scripts/config.sub: Likewise.
56823
56824 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
56825
56826         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
56827
56828         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
56829
56830         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
56831
56832         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
56833
56834         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
56835
56836 2013-02-26  Roland McGrath  <roland@hack.frob.com>
56837
56838         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
56839         [$(build-shared = yes].
56840
56841 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
56842
56843         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
56844         (__mul): Reduce iterations for calculating mantissa.
56845
56846         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
56847         MPTWO.
56848         (__mpranred): Likewise.
56849
56850         [BZ #15160]
56851         * malloc/memusagestat.c (main): Draw graphs for heap and stack
56852         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
56853
56854 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56855
56856         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
56857         Define __attribute__.
56858
56859 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
56860
56861         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
56862         unused.
56863         * posix/regex_internal.h (__attribute): Remove.
56864         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
56865         (re_string_context_at): Likewise.
56866         (bitset_not): Use __attribute__ and mark function as possibly
56867         unused.
56868         (bitset_merge): Likewise.
56869         (bitset_mask): Likewise.
56870         (re_string_char_size_at): Likewise.
56871         (re_string_wchar_at): Likewise.
56872         (re_string_elem_size_at): Likewise.
56873
56874 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
56875
56876         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
56877         code.
56878         (cc32): Likewise.
56879
56880         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
56881         (__acr): Likewise.
56882         (__cpy): Likewise.
56883         (norm): Likewise.
56884         (denorm): Likewise.
56885         (__dbl_mp): Likewise.
56886         (add_magnitudes): Likewise.
56887         (sub_magnitudes): Likewise.
56888         (__mul): Likewise.
56889         (__inv): Likewise.
56890
56891         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
56892         style.
56893
56894         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
56895         style.
56896
56897         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
56898         code.
56899
56900         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
56901         up changes with default code.
56902         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
56903         Likewise.
56904
56905 2013-02-24  Allan McRae  <allan@archlinux.org>
56906
56907         * manual/socket.texi (The Internet Namespace): Order menu items
56908         to match that in the file.
56909
56910         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
56911         node listing of the info page menu.
56912
56913 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
56914
56915         [BZ #13550]
56916         * sysdeps/i386/bp-asm.h: Remove file.
56917         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
56918         (PARMS): Do not use macros from bp-asm.h.
56919         (S1): Likewise.
56920         (S2): Likewise.
56921         (SIZE): Likewise.
56922         (__mpn_add_n): Do not use BP_SYM
56923         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
56924         "bp-asm.h".
56925         (PARMS): Do not use macros from bp-asm.h.
56926         (S1): Likewise.
56927         (SIZE): Likewise.
56928         (__mpn_addmul_1): Do not use BP_SYM
56929         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
56930         "bp-asm.h".
56931         (PARMS): Do not use macros from bp-asm.h.
56932         (SIGMSK): Likewise.
56933         (_setjmp): Likewise.  Do not use BP_SYM.
56934         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
56935         "bp-asm.h".
56936         (PARMS): Do not use macros from bp-asm.h.
56937         (SIGMSK): Likewise.
56938         (setjmp): Likewise.  Do not use BP_SYM.
56939         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
56940         "bp-asm.h".
56941         (PARMS): Do not use macros from bp-asm.h.
56942         (__frexp): Do not use BP_SYM.
56943         (frexp): Likewise.
56944         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
56945         "bp-asm.h".
56946         (PARMS): Do not use macros from bp-asm.h.
56947         (__frexpf): Do not use BP_SYM.
56948         (frexpf): Likewise.
56949         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
56950         "bp-asm.h".
56951         (PARMS): Do not use macros from bp-asm.h.
56952         (__frexpl): Do not use BP_SYM.
56953         (frexpl): Likewise.
56954         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
56955         "bp-asm.h".
56956         (PARMS): Do not use macros from bp-asm.h.
56957         (__remquo): Do not use BP_SYM.
56958         (remquo): Likewise.
56959         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
56960         "bp-asm.h".
56961         (PARMS): Do not use macros from bp-asm.h.
56962         (__remquof): Do not use BP_SYM.
56963         (remquof): Likewise.
56964         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
56965         "bp-asm.h".
56966         (PARMS): Do not use macros from bp-asm.h.
56967         (__remquol): Do not use BP_SYM.
56968         (remquol): Likewise.
56969         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
56970         "bp-asm.h".
56971         (PARMS): Do not use macros from bp-asm.h.
56972         (DEST): Likewise.
56973         (SRC): Likewise.
56974         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
56975         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
56976         "bp-asm.h".
56977         (PARMS): Do not use macros from bp-asm.h.
56978         (strlen): Do not use BP_SYM.
56979         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
56980         "bp-asm.h".
56981         (PARMS): Do not use macros from bp-asm.h.
56982         (S1): Likewise.
56983         (S2): Likewise.
56984         (SIZE): Likewise.
56985         (__mpn_add_n): Do not use BP_SYM.
56986         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
56987         "bp-asm.h".
56988         (PARMS): Do not use macros from bp-asm.h.
56989         (S1): Likewise.
56990         (SIZE): Likewise.
56991         (__mpn_addmul_1): Do not use BP_SYM.
56992         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
56993         weak_alias.
56994         (bzero): Likewise.
56995         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
56996         "bp-asm.h".
56997         (PARMS): Do not use macros from bp-asm.h.
56998         (S): Likewise.
56999         (SIZE): Likewise.
57000         (__mpn_lshift): Do not use BP_SYM.
57001         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
57002         "bp-asm.h".
57003         (PARMS): Do not use macros from bp-asm.h.
57004         (DEST): Likewise.
57005         (SRC): Likewise.
57006         (LEN): Likewise.
57007         (memcpy): Likewise.  Do not use BP_SYM.
57008         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
57009         libc_hidden_def and weak_alias.
57010         (mempcpy): Do not use BP_SYM in weak_alias.
57011         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
57012         "bp-asm.h".
57013         (PARMS): Do not use macros from bp-asm.h.
57014         (DEST): Likewise.
57015         (LEN): Likewise.
57016         [!BZERO_P] (CHR): Likewise.
57017         (memset): Likewise.  Do not use BP_SYM.
57018         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
57019         "bp-asm.h".
57020         (PARMS): Do not use macros from bp-asm.h.
57021         (S1): Likewise.
57022         (SIZE): Likewise.
57023         (__mpn_mul_1): Do not use BP_SYM.
57024         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
57025         "bp-asm.h".
57026         (PARMS): Do not use macros from bp-asm.h.
57027         (S): Likewise.
57028         (SIZE): Likewise.
57029         (__mpn_rshift): Do not use BP_SYM.
57030         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
57031         "bp-asm.h".
57032         (PARMS): Do not use macros from bp-asm.h.
57033         (STR): Likewise.
57034         (CHR): Likewise.
57035         (strchr): Likewise.  Do not use BP_SYM.
57036         (index): Do not use BP_SYM in weak_alias.
57037         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
57038         "bp-asm.h".
57039         (PARMS): Do not use macros from bp-asm.h.
57040         (DEST): Likewise.
57041         (SRC): Likewise.
57042         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
57043         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
57044         "bp-asm.h".
57045         (PARMS): Do not use macros from bp-asm.h.
57046         (strlen): Do not use BP_SYM.
57047         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
57048         "bp-asm.h".
57049         (PARMS): Do not use macros from bp-asm.h.
57050         (S1): Likewise.
57051         (S2): Likewise.
57052         (SIZE): Likewise.
57053         (__mpn_sub_n): Do not use BP_SYM.
57054         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
57055         "bp-asm.h".
57056         (PARMS): Do not use macros from bp-asm.h.
57057         (S1): Likewise.
57058         (SIZE): Likewise.
57059         (__mpn_submul_1): Do not use BP_SYM.
57060         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
57061         "bp-asm.h".
57062         (PARMS): Do not use macros from bp-asm.h.
57063         (S1): Likewise.
57064         (S2): Likewise.
57065         (SIZE): Likewise.
57066         (__mpn_add_n): Do not use BP_SYM.
57067         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
57068         weak_alias.
57069         (bzero): Likewise.
57070         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
57071         "bp-asm.h".
57072         (PARMS): Do not use macros from bp-asm.h.
57073         (BLK2): Likewise.
57074         (LEN): Likewise.
57075         (memcmp): Do not use BP_SYM.
57076         (bcmp): Do not use BP_SYM in weak_alias.
57077         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
57078         "bp-asm.h".
57079         (PARMS): Do not use macros from bp-asm.h.
57080         (DEST): Likewise.
57081         (SRC): Likewise.
57082         (LEN): Likewise.
57083         (memcpy): Likewise.  Do not use BP_SYM.
57084         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
57085         "bp-asm.h".
57086         (PARMS): Do not use macros from bp-asm.h.
57087         (DEST): Likewise.
57088         (SRC): Likewise.
57089         (LEN): Likewise.
57090         (memmove): Likewise.  Do not use BP_SYM.
57091         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
57092         "bp-asm.h".
57093         (PARMS): Do not use macros from bp-asm.h.
57094         (DEST): Likewise.
57095         (SRC): Likewise.
57096         (LEN): Likewise.
57097         (__mempcpy): Likewise.  Do not use BP_SYM.
57098         (mempcpy): Do not use BP_SYM in weak_alias.
57099         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
57100         "bp-asm.h".
57101         (PARMS): Do not use macros from bp-asm.h.
57102         (DEST): Likewise.
57103         (LEN): Likewise.
57104         [!BZERO_P] (CHR): Likewise.
57105         (memset): Likewise.  Do not use BP_SYM.
57106         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
57107         "bp-asm.h".
57108         (PARMS): Do not use macros from bp-asm.h.
57109         (STR2): Likewise.
57110         (strcmp): Do not use BP_SYM.
57111         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
57112         "bp-asm.h".
57113         (PARMS): Do not use macros from bp-asm.h.
57114         (STR): Likewise.
57115         (DELIM): Likewise.
57116         [USE_AS_STRTOK_R] (SAVE): Likewise.
57117         (FUNCTION): Likewise.  Do not use BP_SYM.
57118         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
57119         aliases.
57120         (strtok_r): Likewise.
57121         (__GI___strtok_r): Likewise.
57122         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57123         (PARMS): Do not use macros from bp-asm.h.
57124         (S): Likewise.
57125         (SIZE): Likewise.
57126         (__mpn_lshift): Do not use BP_SYM.
57127         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57128         (PARMS): Do not use macros from bp-asm.h.
57129         (STR): Likewise.
57130         (CHR): Likewise.
57131         (__memchr): Do not use BP_SYM.
57132         (memchr): Do not use BP_SYM in weak_alias.
57133         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57134         (PARMS): Do not use macros from bp-asm.h.
57135         (BLK2): Likewise.
57136         (LEN): Likewise.
57137         (memcmp): Do not use BP_SYM.
57138         (bcmp): Do not use BP_SYM in weak_alias.
57139         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
57140         (PARMS): Do not use macros from bp-asm.h.
57141         (S1): Likewise.
57142         (SIZE): Likewise.
57143         (__mpn_mul_1): Do not use BP_SYM.
57144         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
57145         "bp-asm.h".
57146         (PARMS): Do not use macros from bp-asm.h.
57147         (STR): Likewise.
57148         (CHR): Likewise.
57149         (__rawmemchr): Do not use BP_SYM.
57150         (rawmemchr): Do not use BP_SYM in weak_alias.
57151         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57152         (PARMS): Do not use macros from bp-asm.h.
57153         (S): Likewise.
57154         (SIZE): Likewise.
57155         (__mpn_rshift): Do not use BP_SYM.
57156         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57157         (PARMS): Do not use macros from bp-asm.h.
57158         (SIGMSK): Likewise.
57159         (__sigsetjmp): Likewise.  Do not use BP_SYM.
57160         * sysdeps/i386/start.S: Do not include "bp-sym.h".
57161         (_start): Do not use BP_SYM.
57162         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
57163         (PARMS): Do not use macros from bp-asm.h.
57164         (DEST): Likewise.
57165         (SRC): Likewise.
57166         (__stpcpy): Likewise.  Do not use BP_SYM.
57167         (stpcpy): Do not use BP_SYM in weak_alias.
57168         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
57169         "bp-asm.h".
57170         (PARMS): Do not use macros from bp-asm.h.
57171         (DEST): Likewise.
57172         (SRC): Likewise.
57173         (LEN): Likewise.
57174         (__stpncpy): Likewise.  Do not use BP_SYM.
57175         (stpncpy): Do not use BP_SYM in weak_alias.
57176         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57177         (PARMS): Do not use macros from bp-asm.h.
57178         (STR): Likewise.
57179         (CHR): Likewise.
57180         (strchr): Likewise.  Do not use BP_SYM.
57181         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
57182         "bp-asm.h".
57183         (PARMS): Do not use macros from bp-asm.h.
57184         (STR): Likewise.
57185         (CHR): Likewise.
57186         (__strchrnul): Likewise.  Do not use BP_SYM.
57187         (strchrnul): Do not use BP_SYM in weak_alias.
57188         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
57189         "bp-asm.h".
57190         (PARMS): Do not use macros from bp-asm.h.
57191         (STOP): Likewise.
57192         (strcspn): Do not use BP_SYM.
57193         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
57194         "bp-asm.h".
57195         (PARMS): Do not use macros from bp-asm.h.
57196         (STR): Likewise.
57197         (STOP): Likewise.
57198         (strpbrk): Likewise.  Do not use BP_SYM.
57199         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
57200         "bp-asm.h".
57201         (PARMS): Do not use macros from bp-asm.h.
57202         (STR): Likewise.
57203         (CHR): Likewise.
57204         (strrchr): Likewise.  Do not use BP_SYM.
57205         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
57206         (PARMS): Do not use macros from bp-asm.h.
57207         (SKIP): Likewise.
57208         (strspn): Do not use BP_SYM.
57209         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
57210         (PARMS): Do not use macros from bp-asm.h.
57211         (STR): Likewise.
57212         (DELIM): Likewise.
57213         (SAVE): Likewise.
57214         (FUNCTION): Likewise.  Do not use BP_SYM.
57215         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
57216         aliases.
57217         (strtok_r): Likewise.
57218         (__GI___strtok_r): Likewise.
57219         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57220         (PARMS): Do not use macros from bp-asm.h.
57221         (S1): Likewise.
57222         (S2): Likewise.
57223         (SIZE): Likewise.
57224         (__mpn_sub_n): Do not use BP_SYM.
57225         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
57226         "bp-asm.h".
57227         (PARMS): Do not use macros from bp-asm.h.
57228         (S1): Likewise.
57229         (SIZE): Likewise.
57230         (__mpn_submul_1): Do not use BP_SYM.
57231         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
57232         <bp-sym.h>.
57233         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
57234         and <bp-asm.h>.
57235         (PARMS): Do not use macros from bp-asm.h.
57236         (FLAGS): Likewise.
57237         (PTID): Likewise.
57238         (TLS): Likewise.
57239         (CTID): Likewise.
57240         (__clone): Do not use BP_SYM.
57241         (clone): Do not use BP_SYM in weak_alias.
57242         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
57243         and <bp-asm.h>.
57244         (PARMS): Do not use macros from bp-asm.h.
57245         (LEN): Likewise.
57246         (__mmap64): Do not use BP_SYM.
57247         (mmap64): Do not use BP_SYM in weak_alias.
57248         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
57249         <bp-sym.h> and <bp-asm.h>.
57250         (PARMS): Do not use macros from bp-asm.h.
57251         (__posix_fadvise64_l64): Do not use BP_SYM.
57252         * sysdeps/unix/sysv/linux/i386/semtimedop.S
57253         (PARMS): Do not use macros from bp-asm.h.
57254         (NSOPS): Likewise.
57255         (semtimedop): Do not use BP_SYM.
57256         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
57257         and <bp-asm.h>.
57258
57259 2013-02-21  Allan McRae  <allan@archlinux.org>
57260
57261         * manual/message.texi (Charset conversion in gettext):
57262         Move @end statement to beginning of line.
57263
57264 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57265
57266         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
57267         static.
57268         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
57269         Likewise.
57270
57271         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
57272         (denorm): Likewise.
57273         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
57274         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
57275
57276 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57277
57278         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
57279         tail-call to the resolved function if pltexit isn't needed.
57280
57281 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57282
57283         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
57284         or Y being zero as being unlikely.
57285         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
57286         Likewise.
57287
57288 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
57289
57290         * manual/nss.texi (System Databases and Name Service Switch):
57291         Remove frobnicate @pxref.
57292
57293 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57294
57295         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57296         __attribute__ ((unused)) to __attribute__ ((__unused__)).
57297
57298 2013-02-20  Petr Machata  <pmachata@redhat.com>
57299
57300         * elf/elf.h (R_ARM_TARGET1): New macro.
57301         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
57302         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
57303         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
57304         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
57305         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
57306         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
57307         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
57308         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
57309         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
57310         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
57311         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
57312         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
57313         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
57314         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
57315         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
57316         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
57317         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
57318         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
57319         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
57320         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
57321         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
57322         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
57323         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
57324         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
57325         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
57326         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
57327         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
57328         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
57329         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
57330         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
57331         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
57332         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
57333         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
57334         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
57335         (R_ARM_THM_GOT_BREL12): Likewise.
57336         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
57337         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
57338         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
57339         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
57340         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
57341         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
57342         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
57343         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
57344         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
57345
57346 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57347
57348         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57349         __attribute_used__ to __attribute__ ((unused)).
57350
57351 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57352
57353         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
57354         powerpc mpa.c.
57355         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
57356         comment formatting.
57357         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
57358
57359 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
57360
57361         [BZ #13550]
57362         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
57363         Remove macro.
57364         (ENTER): Remove both macro definitions.
57365         (LEAVE): Likewise.
57366         (CHECK_BOUNDS_LOW): Likewise.
57367         (CHECK_BOUNDS_HIGH): Likewise.
57368         (CHECK_BOUNDS_BOTH): Likewise.
57369         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
57370         (RETURN_BOUNDED_POINTER): Likewise.
57371         (RETURN_NULL_BOUNDED_POINTER): Likewise.
57372         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
57373         (POP_ERRNO_LOCATION_RETURN): Likewise.
57374         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
57375         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57376         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
57377         macros.
57378         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57379         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
57380         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
57381         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
57382         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
57383         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
57384         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
57385         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
57386         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
57387         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
57388         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
57389         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
57390         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57391         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
57392         removed macros.
57393         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57394         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
57395         macros.
57396         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57397         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
57398         * sysdeps/i386/i586/memset.S (memset): Likewise.
57399         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
57400         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57401         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
57402         macros.
57403         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57404         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
57405         Change uses of L(2) to L(out).
57406         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
57407         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
57408         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
57409         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57410         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
57411         removed macros.
57412         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57413         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
57414         macros.
57415         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57416         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
57417         (RETURN): Do not use macro LEAVE.
57418         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
57419         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
57420         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
57421         * sysdeps/i386/i686/memset.S (memset): Likewise.
57422         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
57423         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
57424         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57425         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
57426         Likewise.
57427         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57428         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
57429         L(1_2) and L(1_3) into L(1).
57430         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57431         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
57432         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57433         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
57434         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57435         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
57436         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
57437         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57438         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
57439         macros.
57440         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
57441         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57442         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
57443         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
57444         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
57445         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57446         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
57447         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
57448         * sysdeps/i386/strcspn.S (strcspn): Likewise.
57449         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
57450         * sysdeps/i386/strrchr.S (strrchr): Likewise.
57451         * sysdeps/i386/strspn.S (strspn): Likewise.
57452         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
57453         conditional code.
57454         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57455         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
57456         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57457         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
57458         L(1_3) into L(1_1).
57459         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
57460         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57461         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
57462         macros.
57463         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57464
57465 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
57466
57467         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
57468         macro.
57469
57470 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57471
57472         * math/atest-exp.c (exp_mpn): Remove ROUND.
57473         * math/atest-exp2.c (exp_mpn): Likewise.
57474         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
57475
57476         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
57477         * stdlib/tst-tls-atexit-lib.c: Likewise.
57478         * stdlib/tst-tls-atexit.c: Likewise.
57479
57480 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57481
57482         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
57483         and __attribute_alloc_size__.
57484
57485 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57486
57487         * include/programs/xmalloc.h: Change __attribute_alloc_size to
57488         __attribute_alloc_size__.
57489         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
57490         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
57491
57492 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57493
57494         * include/programs/xmalloc.h: New file.
57495         * catgets/gencat.c: Include it.
57496         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
57497         * elf/pldd.c: Likewise.
57498         * iconv/iconv_charmap.c: Likewise.
57499         * iconv/iconvconfig.c: Likewise.
57500         * iconv/strtab.c: Likewise.
57501         * locale/programs/locale.c: Likewise.
57502         * locale/programs/localedef.h: Likewise.
57503         * locale/programs/simple-hash.c: Likewise.
57504         * nscd/nscd.h: Likewise.
57505         * nss/makedb.c: Likewise.
57506         * sysdeps/generic/ldconfig.h: Likewise.
57507
57508 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57509
57510         * Versions.def: Add GLIBC_2.18.
57511         * include/link.h (struct link_map): New member l_tls_dtor_count.
57512         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
57513         (__call_tls_dtors): Likewise.
57514         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
57515         __cxa_thread_atexit_impl.
57516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
57517         Likewise.
57518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
57519         Likewise.
57520         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
57521         Likewise.
57522         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
57523         Likewise.
57524         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
57525         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
57526         Likewise.
57527         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
57528         Likewise.
57529         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
57530         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
57531         Likewise.
57532         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
57533         (tests): Add test case tst-tls-atexit.
57534         (modules-names): Add shared library for tst-tls-atexit.
57535         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
57536         (GLIBC_PRIVATE): Add __call_tls_dtors.
57537         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
57538         for libstdc++.
57539         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
57540         * stdlib/tst-tls-atexit.c: New test case.
57541         * stdlib/tst-tls-atexit-lib.c: New test case.
57542
57543         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
57544
57545         * elf/Versions (ld): Add _dl_find_dso_for_object.
57546         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
57547         * elf/dl-open.c (_dl_find_dso_for_object): New function.
57548         (dl_open_worker): Use _dl_find_dso_for_object.
57549         * elf/dl-sym.c (do_sym): Likewise.
57550         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
57551
57552 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57553
57554         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
57555         Syntactic changes only.
57556         (_dl_runtime_profile): Do a tail-call to the resolved function.
57557
57558 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
57559
57560         [BZ #13550]
57561         * sysdeps/x86_64/bp-asm.h: Remove file.
57562         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
57563         <bp-sym.h> and <bp-asm.h>.
57564         (__clone): Do not use BP_SYM.
57565         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
57566         <bp-sym.h> and <bp-asm.h>.
57567         * sysdeps/unix/x86_64/sysdep.S: Likewise.
57568         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
57569         "bp-asm.h".
57570         (_setjmp): Do not use BP_SYM.
57571         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
57572         "bp-asm.h".
57573         (setjmp): Do not use BP_SYM.
57574         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
57575         libc_hidden_def.
57576         (mempcpy): Do not use BP_SYM in weak_alias.
57577         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
57578         "bp-asm.h".
57579         (strchr): Do not use BP_SYM.
57580         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
57581         "bp-asm.h".
57582         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
57583         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
57584         (_start): Do not use BP_SYM.
57585         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
57586         "bp-asm.h".
57587         (strcat): Do not use BP_SYM.
57588         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
57589         "bp-asm.h".
57590         (STRCMP): Do not use BP_SYM.
57591         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
57592         "bp-asm.h".
57593         (STRCPY): Do not use BP_SYM.
57594         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
57595         "bp-asm.h".
57596         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
57597         "bp-asm.h".
57598         (FUNCTION): Do not use BP_SYM.
57599         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
57600         weak_alias.
57601         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
57602
57603 2013-02-17  Andreas Jaeger  <aj@suse.de>
57604
57605         * time/Versions: Sort entries.
57606         * string/Versions: Likewise.
57607         * resolv/Versions: Likewise.
57608         * posix/Versions: Likewise.
57609         * iconv/Versions: Likewise.
57610         * elf/Versions: Likewise.
57611         * wcsmbs/Versions: Likewise.
57612
57613 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
57614
57615         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
57616         loop termination condition.
57617
57618         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
57619         variable to calculate EZ.
57620         (__sqr): Likewise.
57621
57622         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
57623         the lower precision input.
57624
57625 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
57626
57627         [BZ #13550]
57628         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
57629         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
57630         (run-via-rtld-prefix): Do not handle %-bp tests.
57631         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
57632         (all-object-suffixes): Remove .ob.
57633         (bppfx): Remove variable.
57634         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
57635         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
57636         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
57637         [$(build-bounded) = yes] (libtype.ob): Likewise.
57638         * Makerules (elide-routines.ob): Remove variable.
57639         (do-tests-clean): Do not handle *-bp.out.
57640         (common-mostlyclean): Do not handle *-bp and *-bp.out.
57641         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
57642         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
57643         (tests): Do not include $(tests-bp.out).
57644         (xtests): Do not include $(xtests-bp.out).
57645         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
57646         [$(build-bounded) = yes] ($(addprefix
57647         $(objpfx),$(binaries-bounded))): Remove rule.
57648         ($(objpfx)%-bp.out): Remove rule.
57649         * config.make.in (build-bounded): Remove variable.
57650         * crypt/Makefile [$(build-bounded) = yes]
57651         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
57652         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
57653         append to variable.
57654         [$(build-bounded) = yes] (install-lib): Likewise.
57655         [$(build-bounded) = yes] (generated): Likewise.
57656         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
57657         Remove rule.
57658         * intl/Makefile [$(build-bounded) = yes]
57659         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
57660         * math/Makefile [$(build-bounded) = yes]
57661         ($(tests:%=$(objpfx)%-bp): Likewise.
57662         * misc/Makefile [$(build-bounded) = yes]
57663         ($(objpfx)tst-tsearch-bp): Likewise.
57664         * nptl/Makeconfig (bounded-thread-library): Remove variable.
57665         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
57666         Remove dependency.
57667         * string/Makefile (o-objects.ob): Remove variable.
57668         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
57669         (CFLAGS-.ob): Remove variable.
57670         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
57671         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
57672         both definitions of variable.
57673         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
57674         (ASFLAGS-.ob): Remove variable.
57675
57676 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
57677
57678         [BZ #13550]
57679         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
57680         Remove __BOUNDED_POINTERS__ from condition.
57681         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
57682         * string/bits/string2.h [!__NO_STRING_INLINES &&
57683         !__BOUNDED_POINTERS__]: Likewise.
57684         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
57685         Likewise.
57686         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
57687         Remove conditional code.
57688         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
57689         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
57690         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
57691         condition.
57692
57693         [BZ #13550]
57694         * csu/libc-start.c: Do not include <bp-sym.h>.
57695         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
57696         * elf/dl-open.c: Do not include <bp-sym.h>.
57697         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
57698         * math/fegetenv.c: Do not include <bp-sym.h>.
57699         (fegetenv): Do not use BP_SYM in versioned symbols.
57700         * nptl/sysdeps/pthread/bits/libc-lockP.h
57701         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
57702         <bp-sym.h>.
57703         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57704         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
57705         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57706         (__pthread_mutex_destroy): Likewise.
57707         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57708         (__pthread_mutex_lock): Likewise.
57709         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57710         (__pthread_mutex_trylock): Likewise.
57711         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57712         (__pthread_mutex_unlock): Likewise.
57713         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57714         (__pthread_mutexattr_init): Likewise.
57715         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57716         (__pthread_mutexattr_destroy): Likewise.
57717         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57718         (__pthread_mutexattr_settype): Likewise.
57719         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57720         (__pthread_rwlock_init): Likewise.
57721         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57722         (__pthread_rwlock_destroy): Likewise.
57723         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57724         (__pthread_rwlock_rdlock): Likewise.
57725         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57726         (__pthread_rwlock_tryrdlock): Likewise.
57727         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57728         (__pthread_rwlock_wrlock): Likewise.
57729         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57730         (__pthread_rwlock_trywrlock): Likewise.
57731         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57732         (__pthread_rwlock_unlock): Likewise.
57733         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57734         (__pthread_key_create): Likewise.
57735         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57736         (__pthread_setspecific): Likewise.
57737         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57738         (__pthread_getspecific): Likewise.
57739         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
57740         Likewise.
57741         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57742         (_pthread_cleanup_push_defer): Likewise.
57743         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57744         (_pthread_cleanup_pop_restore): Likewise.
57745         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57746         (pthread_setcancelstate): Likewise.
57747         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
57748         <bp-sym.h>.
57749         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
57750         (memchr): Do not use BP_SYM in weak_alias.
57751         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
57752         (fegetenv): Do not use BP_SYM in versioned symbols.
57753         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
57754         (fesetenv): Do not use BP_SYM in versioned symbols.
57755         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
57756         (feupdateenv): Do not use BP_SYM in versioned symbols.
57757         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
57758         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
57759         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
57760         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
57761         (open64): Do not use BP_SYM in weak_alias.
57762         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
57763         (fegetenv): Do not use BP_SYM in versioned symbols.
57764         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
57765         (fesetenv): Do not use BP_SYM in versioned symbols.
57766         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
57767         (feupdateenv): Do not use BP_SYM in versioned symbols.
57768         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
57769         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
57770         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
57771         (feraiseexcept): Do not use BP_SYM in versioned symbols.
57772         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
57773         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
57774         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
57775         <bp-sym.h>.
57776         (__libc_start_main): Do not use BP_SYM.
57777
57778 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
57779
57780         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
57781         redundant return line.
57782         (norm): Likewise.
57783         (denorm): Likewise.
57784         (dbl_mp): Likewise.
57785         (sub_magnitudes): Likewise.
57786         (__add): Likewise.
57787         (__sub): Likewise.
57788         (__mul): Likewise.
57789         (__inv): Likewise.
57790         (__dvd): Likewise.
57791         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
57792         (norm): Likewise.
57793         (denorm): Likewise.
57794         (dbl_mp): Likewise.
57795         (sub_magnitudes): Likewise.
57796         (__add): Likewise.
57797         (__sub): Likewise.
57798         (__mul): Likewise.
57799         (__inv): Likewise.
57800         (__dvd): Likewise.
57801
57802         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
57803         instead of __mul.
57804         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
57805         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
57806         (cc32): Likewise.
57807
57808         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
57809         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
57810         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
57811         of __mul for squares.
57812         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
57813         function
57814         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
57815         Likewise.
57816         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
57817         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
57818
57819 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
57820
57821         [BZ #13550]
57822         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
57823         code.
57824         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
57825         prototype or function definition.  Rename ubp_* variables and
57826         parameters.  Remove argv definitions conditional on
57827         [__BOUNDED_POINTERS__].
57828         * debug/backtrace.c (__backtrace): Do not use __unbounded.
57829         * elf/dl-runtime.c (_dl_fixup): Likewise.
57830         * include/set-hooks.h (RUN_HOOK): Likewise.
57831         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
57832         definition.
57833         * string/strcpy.c (strcpy): Do not use __unbounded.
57834         * sysdeps/generic/frame.h (struct layout): Likewise.
57835         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
57836         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
57837         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
57838         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
57839         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
57840         (__backtrace): Likewise.
57841         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
57842         use __ptrvalue.
57843         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
57844         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
57845         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
57846         Likewise.
57847         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
57848         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
57849         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
57850         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
57851         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
57852         Do not use __unbounded.
57853         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
57854         Rename __unboundedrlimits parameter to rlimits in prototype.
57855         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
57856         Do not use __unbounded.
57857         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
57858         not use __ptrvalue.
57859         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
57860         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
57861         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
57862         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
57863         __ptrvalue or __unbounded.
57864         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
57865         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
57866         use __unbounded.
57867         (__new_msgctl): Do not use __ptrvalue.
57868         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
57869         __unbounded.
57870         (__libc_msgrcv): Do not use __ptrvalue.
57871         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
57872         startup_info): Do not use __unbounded.
57873         (__libc_start_main): Likewise.  Rename ubp_* variables and
57874         parameters.  Remove argv definitions conditional on
57875         [__BOUNDED_POINTERS__].
57876         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
57877         __ptrvalue.
57878         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
57879         use __unbounded.
57880         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
57881         or __ptrvalue.
57882         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
57883         use __unbounded.
57884         (__new_shmctl): Do not use __ptrvalue.
57885         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
57886         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
57887         Likewise.
57888         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
57889         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
57890         (__libc_sigaction): Likewise.
57891         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
57892         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
57893         Likewise.
57894         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
57895
57896 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
57897
57898         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
57899
57900         * string/mempcpy.c: Implement by calling memcpy.
57901
57902 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
57903
57904         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
57905
57906         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
57907         evaluation.
57908
57909         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
57910         values in the mantissa.
57911
57912         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
57913         minimize writes to Z.
57914         (sub_magnitudes): Simplify code a bit.
57915
57916 2013-02-12  Roland McGrath  <roland@hack.frob.com>
57917
57918         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
57919         from the message.  The linker prefixes all warnings with that already.
57920
57921 2013-02-12  Andreas Schwab  <schwab@suse.de>
57922
57923         [BZ #15078]
57924         * posix/regexec.c (extend_buffers): Add parameter min_len.
57925         (check_matching): Pass minimum needed length.
57926         (clean_state_log_if_needed): Likewise.
57927         (get_subexp): Likewise.
57928         * posix/Makefile (tests): Add bug-regex34.
57929         (bug-regex34-ENV): Define.
57930         * posix/bug-regex34.c: New file.
57931
57932         [BZ #11561]
57933         * posix/regcomp.c (parse_bracket_exp): When looking up collating
57934         elements compare against the byte sequence of it, not its name.
57935         * posix/Makefile (tests): Add bug-regex35.
57936         (bug-regex35-ENV): Define.
57937         * posix/bug-regex35.c: New file.
57938
57939 2013-02-11  Tom de Vries  <tom@codesourcery.com>
57940
57941         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
57942         comment.
57943         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
57944         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
57945         (CHECK_EOL): Add undef.
57946
57947 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
57948
57949         * bits/stdlib-bsearch.h: New file.
57950         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
57951         * stdlib/stdlib.h: Likewise.
57952
57953 2013-02-11  Roland McGrath  <roland@hack.frob.com>
57954
57955         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
57956         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
57957         declaration.
57958         * manual/search.texi (Array Search Function): Add missing const in
57959         lfind prototype.
57960         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
57961         declaration to use rlim_t.
57962         (Basic Scheduling Functions): Remove erroneous const from
57963         sched_getparam prototype.  Remove erroneous * from
57964         sched_get_priority_max and sched_get_priority_min prototypes.
57965         (Resource Usage): Fix summary @comment on vtimes to refer to
57966         sys/vtimes.h rather than vtimes.h.
57967         Add missing *s in vtimes prototype.
57968         (Limits on Resources): Fix ulimit prototype to return long int.
57969         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
57970         prototypes to use long int rather than double.
57971         (BSD Random): Fix initstate and setstate to use char *, not void *.
57972         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
57973         prototype to make second argument 'struct aiocb64 *const[]'.
57974         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
57975         (Status of AIO Operations): Remove erroneous const in aio_return and
57976         aio_return64 prototypes.
57977         (Synchronizing I/O): Fix sync prototype to return void.
57978         * manual/startup.texi (Suboptions): Remove an erroneous const in
57979         getsubopt prototype.
57980         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
57981         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
57982         use size_t rather than int.
57983         (Scanning All Users): Likewise for getpwent_r.
57984         (Setting Groups): Add missing const to setgroups prototype.
57985         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
57986         * manual/socket.texi (Host Names): Fix gethostbyaddr and
57987         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
57988         'const void *' rather than 'const char *'.
57989         (Host Address Functions): Likewise for inet_ntop.
57990         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
57991         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
57992         ssize_t for return value.
57993         (Sending Data): Likewise for send, sendto, sendmsg.
57994         (Socket Option Functions): Add a missing const in setsockopt prototype.
57995         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
57996         use wchar_t for the argument.
57997         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
57998         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
57999         take no arguments.
58000         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
58001         double/float/long double for second argument.
58002         Fix return types of significand, significandf, significandl.
58003         * manual/filesys.texi (Setting Permissions): Use mode_t for second
58004         argument in fchmod prototype.
58005         (File Owner): Use uid_t and gid_t in fchown prototype.
58006         (File Times): Add const to utimes, futimes, and lutimes prototypes.
58007         (Making Special Files): Use mode_t and dev_t in mknod prototype.
58008         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
58009         use 'const struct dirent **' as argument types to CMP function pointer
58010         argument.
58011         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
58012         (File Times): Fix summary magic @comment for struct utimbuf and utime
58013         to refer to utime.h, not time.h.
58014         * manual/string.texi (Argz Functions): Add missing const in
58015         argz_extract and argz_next prototypes.
58016         (Finding Tokens in a String): Likewise for basename.
58017         (String/Array Comparison): Fix typo in wcscasecmp prototype.
58018         (Copying and Concatenation): Fix typo in wmemmove prototype.
58019         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
58020         (Signal Stack): Remove erroneous const in sigstack prototype.
58021         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
58022         prototype.
58023         (Simple Calendar Time): Likewise for stime.
58024         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
58025         prototype.
58026         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
58027         say sys/sysctl.h instead.
58028         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
58029         and vsyslog prototypes.
58030
58031 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58032
58033         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
58034         Remove.
58035
58036 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58037
58038         * misc/sys/mman.h: Fix typo in mremap comment.
58039
58040 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58041
58042         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
58043         the '\0' terminator.
58044
58045 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58046
58047         [BZ #13550]
58048         * debug/segfault.c: Don't include <bp-checks.h>.
58049         * sysdeps/generic/bp-checks.h: Remove file.
58050         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
58051         (__GETDENTS): Don't use CHECK_N.
58052         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
58053         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
58054         (__getgroups): Don't use CHECK_N.
58055         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
58056         (setgroups): Don't use CHECK_N.
58057         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
58058         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
58059         (__libc_msgrcv): Don't use CHECK_N.
58060         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
58061         (__libc_msgsnd): Don't use CHECK_N.
58062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
58063         <bp-checks.h>.
58064         (__libc_pread): Don't use CHECK_N.
58065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
58066         include <bp-checks.h>.
58067         (__libc_pread64): Don't use CHECK_N.
58068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
58069         include <bp-checks.h>.
58070         (__libc_pwrite): Don't use CHECK_N.
58071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
58072         include <bp-checks.h>.
58073         (__libc_pwrite64): Don't use CHECK_N.
58074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
58075         <bp-checks.h>.
58076         (__libc_pread): Don't use CHECK_N.
58077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
58078         include <bp-checks.h>.
58079         (__libc_pread64): Don't use CHECK_N.
58080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
58081         include <bp-checks.h>.
58082         (__libc_pwrite): Don't use CHECK_N.
58083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
58084         include <bp-checks.h>.
58085         (__libc_pwrite64): Don't use CHECK_N.
58086         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
58087         (do_pread): Don't use CHECK_N.
58088         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
58089         (do_pread64): Don't use CHECK_N.
58090         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
58091         (do_pwrite): Don't use CHECK_N.
58092         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
58093         (do_pwrite64): Don't use CHECK_N.
58094         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
58095         (__libc_readv): Don't use CHECK_N.
58096         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
58097         (semop): Don't use CHECK_N.
58098         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
58099         <bp-checks.h>.
58100         (semtimedop): Don't use CHECK_N.
58101         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
58102         (__libc_pread): Don't use CHECK_N.
58103         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
58104         <bp-checks.h>.
58105         (__libc_pread64): Don't use CHECK_N.
58106         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
58107         <bp-checks.h>.
58108         (__libc_pwrite): Don't use CHECK_N.
58109         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
58110         <bp-checks.h>.
58111         (__libc_pwrite64): Don't use CHECK_N.
58112         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
58113         <bp-checks.h>.
58114         (__libc_msgrcv): Don't use CHECK_N.
58115         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
58116         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
58117         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
58118         (__libc_writev): Don't use CHECK_N.
58119
58120 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58121
58122         * string/strcpy.c: Removed unused variable.
58123
58124         * Makeconfig (+sysdep-includes): Define with := rather than =.
58125         Use an existing include/ subdir of each sysdeps dir before it.
58126
58127 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58128
58129         * nscd/connection.c (register_traced_file): Comment function.
58130         [HAVE_INOTIFY] (union __inev): Define.
58131         [HAVE_INOTIFY] (inotify_check_files): New function.
58132         [HAVE_INOTIFY] (clear_db_cache): Likewise.
58133         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
58134         clear_db_cache.
58135         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
58136
58137 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58138
58139         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
58140         loaded if not already and that a failure is permanent.
58141
58142 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58143
58144         [BZ #15006]
58145         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
58146         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
58147
58148 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58149
58150         [BZ #13550]
58151         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
58152         (CHECK_1_NULL_OK): Likewise.
58153         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
58154         (__fxstat): Do not use CHECK_1.
58155         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
58156         <bp-checks.h>.
58157         (___fxstat64): Do not use CHECK_1.
58158         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
58159         <bp-checks.h>.
58160         (__fxstatat): Do not use CHECK_1.
58161         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
58162         <bp-checks.h>.
58163         (__fxstatat64): Do not use CHECK_1.
58164         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
58165         <bp-checks.h>.
58166         (__fxstat): Do not use CHECK_1.
58167         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
58168         <bp-checks.h>.
58169         (__fxstatat): Do not use CHECK_1.
58170         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
58171         <bp-checks.h>.
58172         (__getresgid): Do not use CHECK_1.
58173         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
58174         <bp-checks.h>.
58175         (__getresuid): Do not use CHECK_1.
58176         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
58177         <bp-checks.h>.
58178         (__lxstat): Do not use CHECK_1.
58179         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
58180         <bp-checks.h>.
58181         (__old_msgctl): Do not use CHECK_1.
58182         (__new_msgctl): Likewise.
58183         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
58184         <bp-checks.h>.
58185         (__new_setrlimit): Do not use CHECK_1.
58186         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
58187         <bp-checks.h>.
58188         (__old_shmctl): Do not use CHECK_1.
58189         (__new_shmctl): Likewise.
58190         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
58191         <bp-checks.h>.
58192         (__xstat): Do not use CHECK_1.
58193         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
58194         (__lxstat): Do not use CHECK_1.
58195         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
58196         <bp-checks.h>.
58197         (___lxstat64): Do not use CHECK_1.
58198         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
58199         (__old_msgctl): Do not use CHECK_1.
58200         (__new_msgctl): Likewise.
58201         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
58202         <bp-checks.h>.
58203         (__gettimeofday): Do not use CHECK_1.
58204         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
58205         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
58206         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
58207         <bp-checks.h>.
58208         (__gettimeofday): Do not use CHECK_1.
58209         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
58210         (__old_shmctl): Do not use CHECK_1_NULL_OK.
58211         (__new_shmctl): Do not use CHECK_1.
58212         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
58213         <bp-checks.h>.
58214         (do_sigtimedwait): Do not use CHECK_1.
58215         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
58216         <bp-checks.h>.
58217         (do_sigwaitinfo): Do not use CHECK_1.
58218         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
58219         <bp-checks.h>.
58220         (msgctl): Do not use CHECK_1.
58221         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
58222         <bp-checks.h>.
58223         (shmctl): Do not use CHECK_1.
58224         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
58225         (ustat): Do not use CHECK_1.
58226         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
58227         <bp-checks.h>.
58228         (__fxstat): Do not use CHECK_1.
58229         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
58230         <bp-checks.h>.
58231         (__fxstatat): Do not use CHECK_1.
58232         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
58233         <bp-checks.h>.
58234         (__lxstat): Do not use CHECK_1.
58235         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
58236         <bp-checks.h>.
58237         (__xstat): Do not use CHECK_1.
58238         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
58239         (__xstat): Do not use CHECK_1.
58240         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
58241         (___xstat64): Do not use CHECK_1.
58242
58243         [BZ #13550]
58244         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
58245         definitions.
58246         (CHECK_BOUNDS_HIGH): Likewise.
58247         * string/strcpy.c: Do not include <bp-checks.h>.
58248         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
58249
58250 2013-02-07  Roland McGrath  <roland@hack.frob.com>
58251
58252         * nscd/nscd-client.h (__nscd_drop_map_ref):
58253         Add __attribute__ ((unused)).
58254         * nis/nss-nisplus.h (niserr2nss): Likewise.
58255
58256         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
58257         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
58258
58259         * csu/libc-tls.c (init_static_tls, init_slotinfo):
58260         Remove inline keyword.
58261         * include/rounding-mode.h (round_away): Likewise.
58262         * libio/wfileops.c (adjust_wide_data): Likewise.
58263         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
58264         (__m128i_strloadu_tolower): Likewise.
58265         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
58266         (__m128i_strloadu_tolower): Likewise.
58267         * time/mktime.c (ydhms_diff): Likewise.
58268         * locale/elem-hash.h (elem_hash): Likewise.
58269         * locale/setlocale.c (setdata): Likewise.
58270         * posix/regex_internal.h (re_string_char_size_at): Likewise.
58271         (re_string_wchar_at): Likewise.
58272         (bitset_not, bitset_merge, bitset_mask): Likewise.
58273         [!(__GNUC__ > 3)] (inline): Remove macro.
58274         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
58275         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
58276         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
58277         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
58278         * string/memcmp.c (memcmp_bytes): Likewise.
58279         * locale/programs/locarchive.c (compute_hashval): Likewise.
58280         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
58281         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
58282         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
58283         * nss/getent.c (print_rpc, print_protocols): Likewise.
58284         (print_passwd, print_group, print_aliases): Likewise.
58285         * nis/nss-nisplus.h (niserr2nss): Likewise.
58286         * nscd/connections.c (restart_p): Likewise.
58287         Change return type to bool.
58288
58289 2013-02-05  Roland McGrath  <roland@hack.frob.com>
58290
58291         * Makeconfig (all-Depend-files): Add existing
58292         $(sorted-subdirs:=/Depend) files.
58293         (all-subdirs): Remove nss.
58294         * sysdeps/unix/inet/Subdirs: Add it here instead.
58295         * hesiod/Depend: New file.
58296
58297         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
58298         instead of calling alloca.
58299
58300         * io/lseek.c (__lseek): Rename to __libc_lseek.
58301         Define __lseek as an alias.
58302
58303         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
58304
58305 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
58306
58307         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
58308         else clause and remove check for non-standard endianness.
58309
58310 2013-02-04  David S. Miller  <davem@davemloft.net>
58311
58312         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58313
58314 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
58315
58316         [BZ #13550]
58317         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
58318         (__ubp_memchr): Remove prototype.
58319         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
58320         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58321         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
58322         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58323         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
58324         Remove alias.
58325         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
58326         (__ubp_memchr): Likewise.
58327         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
58328         (__ubp_memchr): Likewise.
58329         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
58330         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
58331         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
58332         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
58333         CHECK_STRING.
58334         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
58335         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
58336         (__getcwd): Do not use CHECK_STRING.
58337         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
58338         <bp-checks.h>.
58339         (__real_chown): Do not use CHECK_STRING.
58340         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
58341         <bp-checks.h>.
58342         (fchownat): Do not use CHECK_STRING.
58343         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
58344         CHECK_STRING.
58345         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
58346         <bp-checks.h>.
58347         (__lchown): Do not use CHECK_STRING.
58348         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58349         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58350         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58351         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
58352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
58353         include <bp-checks.h>.
58354         (truncate64): Do not use CHECK_STRING.
58355         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
58356         <bp-checks.h>.
58357         (__real_chown): Do not use CHECK_STRING.
58358         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
58359         <bp-checks.h>.
58360         (__lchown): Do not use CHECK_STRING.
58361         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
58362         <bp-checks.h>.
58363         (__chown): Do not use CHECK_STRING.
58364         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
58365         <bp-checks.h>.
58366         (truncate64): Do not use CHECK_STRING.
58367         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
58368         Likewise.
58369         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
58370         (__xmknod): Do not use CHECK_STRING.
58371         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
58372         <bp-checks.h>.
58373         (__xmknodat): Do not use CHECK_STRING.
58374         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58375         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
58376
58377 2013-02-04  Andreas Schwab  <schwab@suse.de>
58378
58379         [BZ #14142]
58380         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
58381         * include/netdb.h: Likewise for h_errno.
58382         * elf/tst-stackguard1.c: Include <tls.h>.
58383
58384 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
58385
58386         * elf/link.h (struct link_map): Extend the l_addr comment.
58387         * include/link.h (struct link_map): Likewise.
58388
58389 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
58390
58391         [BZ #13550]
58392         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
58393         (BOUNDED_1): Remove macro.
58394         * debug/backtrace.c: Don't include <bp-checks.h>.
58395         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
58396         (__backtrace): Likewise.
58397         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
58398         <bp-checks.h>.
58399         (__backtrace): Don't use BOUNDED_1.
58400         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
58401         <bp-checks.h>.
58402         (__backtrace): Don't use BOUNDED_1.
58403         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
58404         (__backtrace): Don't use BOUNDED_1.
58405         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
58406         (shmat): Don't use BOUNDED_N.
58407
58408 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
58409
58410         [BZ #13550]
58411         * sysdeps/generic/bp-start.h: Remove file.
58412         * csu/libc-start.c: Don't include <bp-start.h>.
58413         (LIBC_START_MAIN): Set up __environ directly instead of using
58414         INIT_ARGV_and_ENVIRON.
58415         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
58416         <bp-start.h>.
58417
58418         [BZ #13550]
58419         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
58420         definitions.
58421         (CHECK_FCNTL): Likewise.
58422         (CHECK_N_PAGES): Likewise.
58423
58424         [BZ #13550]
58425         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
58426         definitions.
58427         (CHECK_SIGSET_NULL_OK): Likewise.
58428         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
58429         <bp-checks.h>.
58430         (sigpending): Don't use CHECK_SIGSET.
58431         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
58432         <bp-checks.h>.
58433         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58434         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
58435         <bp-checks.h>.
58436         (do_sigsuspend): Don't use CHECK_SIGSET.
58437         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
58438         use CHECK_SIGSET.
58439         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
58440         (do_sigwait): Don't use CHECK_SIGSET.
58441         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
58442         use CHECK_SIGSET.
58443         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
58444         include <bp-checks.h>.
58445         (sigpending): Don't use CHECK_SIGSET.
58446         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
58447         include <bp-checks.h>.
58448         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58449         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
58450         <bp-checks.h>.
58451         (sigpending): Don't use CHECK_SIGSET.
58452         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
58453         <bp-checks.h>.
58454         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58455
58456         [BZ #13550]
58457         * sysdeps/generic/bp-semctl.h: Remove file.
58458         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
58459         <bp-checks.h> and <bp-semctl.h>.
58460         (__old_semctl): Don't use CHECK_SEMCTL.
58461         (__new_semctl): Likewise.
58462         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
58463         and <bp-semctl.h>.
58464         (__old_semctl): Don't use CHECK_SEMCTL.
58465         (__new_semctl): Likewise.
58466         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
58467         <bp-checks.h> and <bp-semctl.h>.
58468         (__old_semctl): Don't use CHECK_SEMCTL.
58469         (__new_semctl): Likewise.
58470         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
58471         <bp-checks.h> and <bp-semctl.h>.
58472         (semctl): Don't use CHECK_SEMCTL.
58473
58474         [BZ #13550]
58475         * Makerules (elide-bp-thunks): Remove variable.
58476         (elide-routines.oS): Don't use $(elide-bp-thunks).
58477         (elide-routines.os): Likewise.
58478         (elide-routines.o): Likewise.
58479         (elide-routines.op): Likewise.
58480         (elide-routines.og): Likewise.
58481         (objects): Don't use $(bp-thunks).
58482         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
58483         include.
58484         (common-generated): Do not add s-proto-bp.d.
58485         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
58486         (int): Likewise.
58487         (typ): Likewise.
58488         Do not generate makefile rules for bounded-pointer thunks.
58489         * sysdeps/generic/bp-thunks.h: Remove file.
58490         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
58491         * sysdeps/unix/s-proto-bp.S: Likewise.
58492
58493         [BZ #15062]
58494         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
58495         parts of result separately when argument is not close to line from
58496         -i to i and one part of argument is small.
58497         * math/k_casinhf.c (__kernel_casinhf): Likewise.
58498         * math/k_casinhl.c (__kernel_casinhl): Likewise.
58499         * math/libm-test.inc (cacos_test): Add more tests.
58500         (casin_test): Likewise.
58501         (casinh_test): Likewise.
58502         * sysdeps/i386/fpu/libm-test-ulps: Update.
58503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58504
58505 2013-01-31  David S. Miller  <davem@davemloft.net>
58506
58507         * po/de.po: Update from translation team.
58508
58509 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
58510
58511         * time/tzfile.c: Include stdint.h for SIZE_MAX.
58512
58513 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
58514
58515         * configure.in (_AC_PROG_CC_C89): New definition.
58516         * configure: Regenerate.
58517
58518         * configure.in (AC_PROG_CPP): New definition.
58519         * configure: Regenerate.
58520
58521 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58522
58523         * debug/tst-backtrace.h: New file.
58524         * debug/tst-backtrace2.c: Include tst-backtrace.h.
58525         (ret): Remove variable.
58526         (x): Likewise.
58527         (FAIL): Remove macro.
58528         (NO_INLINE): Likewise.
58529         (fn1): Use match function instead of strstr.
58530         * debug/tst-backtrace3.c: Include tst-backtrace.h.
58531         (ret): Remove variable.
58532         (x): Likewise.
58533         (FAIL): Remove macro.
58534         (NO_INLINE): Likewise.
58535         (fn): Use match function instead of strstr.
58536         * debug/tst-backtrace4.c: Include tst-backtrace.h.
58537         (ret): Remove variable.
58538         (x): Likewise.
58539         (FAIL): Remove macro.
58540         (NO_INLINE): Likewise.
58541         (handle_signal): Use match function instead of strstr.
58542         * debug/tst-backtrace5.c: Include tst-backtrace.h.
58543         (ret): Remove variable.
58544         (x): Likewise.
58545         (FAIL): Remove macro.
58546         (NO_INLINE): Likewise.
58547         (handle_signal): Use match function instead of strstr.
58548
58549 2013-01-23  Roland McGrath  <roland@hack.frob.com>
58550
58551         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
58552
58553 2013-01-23  David S. Miller  <davem@davemloft.net>
58554
58555         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
58556         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
58557         argument of CAS if possible.
58558         * sysdeps/sparc/sparc64/bits/atomic.h
58559         (__arch_compare_and_exchange_val_32_acq): Likewise.
58560         (__arch_compare_and_exchange_val_64_acq): Likewise.
58561
58562 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
58563
58564         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
58565         * sysdeps/posix/ulimit.c: ... this.
58566         Include <limits.h>.
58567         * sysdeps/unix/bsd/ulimit.c: Remove file.
58568
58569 2013-01-23  Adam Conrad  <adconrad@0c3.net>
58570
58571         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
58572         (LDFLAGS-tst-array5): Likewise.
58573
58574 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58575
58576         [BZ #15036]
58577         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
58578         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
58579         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
58580         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
58581
58582 2013-01-21  David S. Miller  <davem@davemloft.net>
58583
58584         * sysdeps/sparc/backtrace.c: New file.
58585         * sysdeps/sparc/sparc32/backtrace.h: New file.
58586         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
58587         * sysdeps/sparc/sparc64/backtrace.h: New file.
58588         * sysdeps/sparc/sparc64/backtrace.c: Delete.
58589         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
58590         -funwind-tables.
58591
58592 2013-01-21  Andreas Schwab  <schwab@suse.de>
58593
58594         [BZ #15020]
58595         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
58596         closed its stdout.
58597
58598 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
58599
58600         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
58601         "mpa2.h".
58602         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
58603
58604 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
58605             Mark Mitchell  <mark@codesourcery.com>
58606             Tom de Vries  <tom@codesourcery.com>
58607             Paul Pluzhnikov  <ppluzhnikov@google.com>
58608
58609         * debug/tst-backtrace2.c: New file.
58610         * debug/tst-backtrace3.c: Likewise.
58611         * debug/tst-backtrace4.c: Likewise.
58612         * debug/tst-backtrace5.c: Likewise.
58613         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
58614         (CFLAGS-tst-backtrace3.c): Likewise.
58615         (CFLAGS-tst-backtrace4.c): Likewise.
58616         (CFLAGS-tst-backtrace5.c): Likewise.
58617         (LDFLAGS-tst-backtrace2): Likewise.
58618         (LDFLAGS-tst-backtrace3): Likewise.
58619         (LDFLAGS-tst-backtrace4): Likewise.
58620         (LDFLAGS-tst-backtrace5): Likewise.
58621         (tests): Add new tests tst-backtrace2, tst-backtrace3,
58622         tst-backtrace4 and tst-backtrace5.
58623
58624 2013-01-18  Anton Blanchard  <anton@samba.org>
58625             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58626
58627         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
58628         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
58629         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
58630         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
58631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
58632         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
58633         "+r" and remove output regs list as redundant.  Add explicit inline
58634         asm to specify register of return val to work around compiler codegen
58635         bug.  Remove (int) cast on return value.  Add return type parameter to
58636         use in macro so that this macro does not truncate return value for
58637         64-bit values.
58638         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
58639         pass to INTERNAL_VSYSCALL_NCS.
58640         (INLINE_VSYSCALL): Add 'long int' as return type to
58641         INTERNAL_VSYSCALL_NCS macro invocation.
58642         (INTERNAL_VSYSCALL): Add 'long int' as return type to
58643         INTERNAL_VSYSCALL_NCS macro invocation.
58644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
58645
58646 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58647
58648         [BZ #14496]
58649         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
58650         Fix application of SIMD FP exception mask.
58651
58652         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
58653         mp_no from a power of two.
58654         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
58655         __mpexp_twomm1.  Use __pow_mp.
58656
58657         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
58658         multiplication.
58659
58660 2013-01-17  David S. Miller  <davem@davemloft.net>
58661
58662         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58663
58664 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
58665
58666         [BZ #15023]
58667         * include/complex.h: Condition contents on [!_COMPLEX_H].
58668         (__kernel_casinhf): New prototype.
58669         (__kernel_casinh): Likewise.
58670         (__kernel_casinhl): Likewise.
58671         * math/Makefile (libm_calls): Add k_casinh.
58672         * math/k_casinh.c: New file.
58673         * math/k_casinhf.c: Likewise.
58674         * math/k_casinhl.c: Likewise.
58675         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
58676         finite nonzero arguments.
58677         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
58678         finite nonzero arguments.
58679         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
58680         finite nonzero arguments.
58681         * math/s_casinh.c: Do not include <float.h>.
58682         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
58683         * math/s_casinhf.c: Do not include <float.h>.
58684         (__casinhf): Move code for finite nonzero arguments to
58685         k_casinhf.c.
58686         * math/s_casinhl.c: Do not include <float.h>.
58687         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
58688         redefine.
58689         (__casinhl): Move code for finite nonzero arguments to
58690         k_casinhl.c.
58691         * math/libm-test.inc (cacos_test): Add more tests.
58692         * sysdeps/i386/fpu/libm-test-ulps: Update.
58693         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58694
58695 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
58696
58697         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
58698         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
58699         [!HAVE_MREMAP]: Remove [defined linux] case.
58700         * malloc/arena.c: Do not include <malloc-sysdep.h>.
58701
58702 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
58703
58704         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
58705
58706 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
58707
58708         * elf/elf.h (R_386_SIZE32): New relocation.
58709         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
58710         R_386_SIZE32.
58711         (elf_machine_rela): Likewise.
58712         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
58713         R_X86_64_SIZE64 and R_X86_64_SIZE32.
58714
58715 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
58716
58717         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
58718         (FP_FAST_FMA): Do not define.
58719         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
58720         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
58721         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
58722         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
58723         !_SOFT_FLOAT]: Likewise.
58724         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
58725         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
58726         value.
58727         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
58728         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
58729         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
58730         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
58731         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
58732         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
58733         file.
58734
58735 2013-01-16  Andreas Schwab  <schwab@suse.de>
58736
58737         [BZ #14327]
58738         * include/stdlib.h (__mktemp): Add declaration.
58739         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
58740         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
58741
58742 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
58743
58744         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
58745         definitions.
58746         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
58747         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
58748         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
58749         definitions here.
58750         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
58751         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
58752         definitions.
58753         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
58754         and ONE.
58755         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
58756         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
58757         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
58758         definitions.
58759         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
58760         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
58761         definitions.
58762         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
58763
58764         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
58765
58766 2013-01-15  David S. Miller  <davem@davemloft.net>
58767
58768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
58769         trunc{,f} to libm-sysdep_routes.
58770         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
58771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
58772         file.
58773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
58774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
58775         file.
58776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
58777         file.
58778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
58779         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
58780         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
58781         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
58782         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
58783         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
58784         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
58785         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
58786
58787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
58788         nearbyint{,f} to libm-sysdep_routes.
58789         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
58790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
58791         New file.
58792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
58793         file.
58794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
58795         New file.
58796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
58797         file.
58798         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
58799         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
58800         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
58801         file.
58802         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
58803         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
58804         file.
58805         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
58806         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
58807         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
58808
58809         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
58810         libc_feholdexcept and libc_fesetenv.
58811
58812 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
58813
58814         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
58815
58816 2013-01-14  David S. Miller  <davem@davemloft.net>
58817
58818         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
58819         (SPARC_ASM_VIS2_IFUNC): Likewise.
58820         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
58821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
58822         use of 'siam' instruction.
58823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
58824         Likewise.
58825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
58826         Likewise.
58827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
58828         Likewise.
58829         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
58830         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
58831         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
58832         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
58833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
58834         file.
58835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
58836         file.
58837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
58838         file.
58839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
58840         file.
58841         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
58842         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
58843         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
58844         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
58845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
58846         new VIS2 routines.
58847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
58848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
58849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
58850         Likewise.
58851         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
58852         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
58853         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
58854         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
58855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
58856         routines to libm-sysdep_routines.
58857         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
58858
58859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
58860         fdim/fdimf to libm-sysdep_routines.
58861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
58862         file.
58863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
58864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
58865         file.
58866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
58867         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
58868         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
58869         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
58870         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
58871         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
58872         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
58873
58874 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
58875
58876         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
58877         to optimize copies.
58878
58879         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
58880         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
58881         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
58882
58883         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
58884         local variable MPTWO.
58885         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
58886         Likewise.
58887
58888 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
58889
58890         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
58891         GLOB_NOESCAPE.
58892
58893 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
58894
58895         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
58896
58897 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
58898
58899         * manual/pattern.texi (glob_t): Document gl_flags.
58900         (glob64_t): Likewise.
58901
58902 2013-01-11  David S. Miller  <davem@davemloft.net>
58903
58904         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
58905         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
58906         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
58907         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
58908         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
58909         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
58910         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
58911         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
58912         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
58913         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
58914         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
58915         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
58916         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
58917
58918         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
58919         sparc V9 rather than using V8 code.
58920         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
58921         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
58922
58923         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
58924         Move to...
58925         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
58926         Here.
58927
58928 2013-01-11  Roland McGrath  <roland@hack.frob.com>
58929
58930         [BZ #14941]
58931         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
58932         not in the main loop.
58933         * configure: Regenerated.
58934
58935 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
58936
58937         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
58938         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
58939         to just #else.
58940         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
58941         [!__GLIBC_HAVE_LONG_LONG] case.
58942         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
58943         condition to just #else.
58944         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
58945         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
58946         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
58947         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
58948         unconditional.
58949         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
58950         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
58951         #elif condition to just #else.
58952         * sysdeps/unix/sysv/linux/sys/sysmacros.h
58953         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
58954         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
58955         #elif condition to just #else.
58956
58957 2013-01-11  Steve Ellcey  <sellcey@mips.com>
58958
58959         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
58960         (EF_MIPS_ARCH_64): Fix value.
58961         (EF_MIPS_ARCH_32R2): New.
58962         (EF_MIPS_ARCH_64R2): New.
58963
58964 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
58965
58966         * Makeconfig (+link-pie-before-libc): New.
58967         (+link-pie-after-libc): Likewise.
58968         (+link-pie-tests): Likewise.
58969         (+link-pie): Rewritten.
58970         (link-before-libc): Remove $(config-LDFLAGS).
58971         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
58972         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
58973         (config-LDFLAGS): Renamed to ...
58974         (rtld-LDFLAGS): This.
58975         (rtld-tests-LDFLAGS): New macro.
58976         (link-libc-rpath-link): Likewise.
58977         (link-libc-tests-rpath-link): Likewise.
58978         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
58979         (link-libc): Prepand $(link-libc-rpath-link).
58980         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
58981         (test-program-prefix): New macro.
58982         (test-via-rtld-prefix): Likewise.
58983         (test-program-cmd): Likewise.
58984         (host-test-program-cmd): Likewise.
58985         * Makefile ($(common-objpfx)testrun.sh): Replace
58986         $(run-program-prefix) with $(test-program-prefix).
58987         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
58988         $(rtld-LDFLAGS).
58989         ($(common-objpfx)shlib.lds): Likewise.
58990         (build-module-helper): Likewise.
58991         ($(common-objpfx)format.lds): Likewise.
58992         * Rules (binaries-pie-tests): New.
58993         (binaries-pie-notests): Likewise.
58994         (binaries-pie): Rewritten.
58995         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
58996         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
58997         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
58998         (make-test-out): Replace $(host-built-program-cmd) with
58999         $(host-test-program-cmd).
59000         * config.make.in (build-hardcoded-path-in-tests): New variable.
59001         * configure.in (--enable-hardcoded-path-in-tests): New configure
59002         option.
59003         (hardcoded_path_in_tests): New AC_SUBST.
59004         * configure: Regenerated.
59005         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
59006         $(built-program-cmd) with $(test-program-cmd).
59007         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
59008         (test_program_cmd): This.
59009         * elf/Makefile ($(objpfx)order.out): Run test with
59010         $(test-program-prefix).
59011         ($(objpfx)order2.out): Likewise.
59012         ($(objpfx)tst-initorder.out): Likewise.
59013         ($(objpfx)tst-initorder2.out): Likewise.
59014         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
59015         $(test-program-cmd).
59016         ($(objpfx)tst-array1-static.out): Likewise.
59017         ($(objpfx)tst-array2.out): Likewise.
59018         ($(objpfx)tst-array3.out): Likewise.
59019         ($(objpfx)tst-array4.out): Likewise.
59020         ($(objpfx)tst-array5.out): Likewise.
59021         ($(objpfx)tst-array5-static.out): Likewise.
59022         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
59023         $(test-program-cmd).
59024         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
59025         $(run-program-prefix) with $(test-program-prefix).
59026         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
59027         (test_program_prefix): This.
59028         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
59029         $(run-program-prefix) with $(test-program-prefix).
59030         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
59031         (test_program_prefix): This.
59032         * iconvdata/tst-tables.sh: Likewise.
59033         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
59034         $(run-program-prefix) with $(test-program-prefix).
59035         ($(objpfx)tst-translit.out): Likewise.
59036         ($(objpfx)tst-gettext2.out): Likewise.
59037         ($(objpfx)tst-gettext4.out): Likewise.
59038         ($(objpfx)tst-gettext6.out): Likewise.
59039         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
59040         (test_program_prefix): This.
59041         * intl/tst-gettext2.sh: Likewise.
59042         * intl/tst-gettext4.sh  Likewise.
59043         * intl/tst-gettext6.sh: Likewise.
59044         * intl/tst-translit.sh: Likewise.
59045         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
59046         with $(test-program-cmd).
59047         * libio/Makefile ($(objpfx)test-freopen.out): Replace
59048         $(run-program-prefix) with $(test-program-prefix).
59049         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
59050         (test_program_prefix): This.
59051         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
59052         $(run-program-prefix) with $(test-program-prefix).
59053         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
59054         (test_program_prefix): This.
59055         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
59056         * posix/Makefile ($(objpfx)globtest.out): Replace
59057         $(run-via-rtld-prefix) and $(test-wrapper) with
59058         $(test-program-prefix) and $(test-via-rtld-prefix).
59059         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
59060         $(test-program-prefix).
59061         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
59062         $(host-test-program-cmd).
59063         (tst-spawn-ARGS): Likewise.
59064         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
59065         $(test-program-prefix).
59066         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
59067         (test_via_rtld_prefix): This.
59068         (test_wrapper): Renamed to ...
59069         (test_program_prefix): This.
59070         (run_program_prefix): Replaced by test_program_prefix.
59071         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
59072         (test_program_prefix): This.
59073         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
59074         with $(host-test-program-cmd).
59075         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
59076         $(run-program-prefix) with $(test-program-prefix).
59077         ($(objpfx)tst-printf.out): Likewise.
59078         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
59079         $(test-program-cmd).
59080         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
59081         (test_program_prefix): This.
59082         * stdio-common/tst-unbputc.sh: Likewise.
59083         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
59084         $(run-program-prefix) with $(test-program-prefix).
59085         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
59086         (test_program_prefix): This.
59087         * string/Makefile ($(objpfx)tst-svc.out):  Replace
59088         $(built-program-cmd) with $(test-program-cmd).
59089
59090 2013-01-11  Andreas Jaeger  <aj@suse.de>
59091
59092         [BZ #15003]
59093         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
59094         value. Sync with Linux 3.7.
59095
59096 2013-01-10  David S. Miller  <davem@davemloft.net>
59097
59098         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
59099         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59100         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59101
59102 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59103
59104         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
59105         never set.
59106         * configure: Regenerated.
59107
59108 2013-01-10  David S. Miller  <davem@davemloft.net>
59109
59110         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59111         sparc V9 rather than using V8 code.
59112         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59113         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59114
59115 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59116
59117         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
59118         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
59119         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
59120         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
59121         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
59122         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
59123         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
59124         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
59125         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
59126         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
59127         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
59128         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
59129         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
59130         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
59131         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
59132         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
59133         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
59134         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
59135         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
59136         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
59137         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
59138         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
59139         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
59140         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
59141         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
59142         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
59143         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
59144
59145 2013-01-10  David S. Miller  <davem@davemloft.net>
59146
59147         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59148
59149 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59150
59151         * posix/Makefile (tests-static): New variable.
59152         (tests): Add $(tests-static).
59153         (tst-exec-static-ARGS): New variable.
59154         (tst-spawn-static-ARGS): Likewise.
59155         * posix/tst-exec-static.c: New file.
59156         * posix/tst-spawn-static.c: Likewise.
59157         * posix/tst-exec.c: Support run directly.
59158         * posix/tst-spawn.c: Likewise.
59159
59160 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
59161
59162         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
59163         long.
59164         * math/bits/mathcalls.h (llrint): Likewise.
59165         (llround): Likewise.
59166         * stdlib/stdlib.h (struct drand48_data): Likewise.
59167         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
59168         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
59169         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
59170         Likewise.
59171         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
59172         Likewise.
59173         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
59174         (elf_greg_t): Likewise.
59175         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
59176         (__jmp_buf): Likewise.
59177         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
59178         definitions.
59179         (llrint): Likewise, for all definitions.
59180         (llrintl): Likewise.
59181
59182         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
59183         Remove [__GNUC__] condition.
59184         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
59185         condition to just [__USE_ISOC99].
59186         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
59187
59188 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59189
59190         [BZ #14200]
59191         * sysdeps/unix/sysv/linux/x86/bits/environments.h
59192         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
59193         defined.
59194         (_POSIX_V6_ILP32_OFF32): Likewise.
59195         (_XBS5_ILP32_OFF32): Likewise.
59196         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
59197         (__ILP32_OFFBIG_LDFLAGS): Likewise.
59198
59199 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59200
59201         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
59202
59203         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
59204         doubles __mpexp_twomm1.  Adjust usage.
59205         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
59206         Remove.
59207
59208 2013-01-10  Andreas Schwab  <schwab@suse.de>
59209
59210         [BZ #14964]
59211         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
59212         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
59213
59214 2013-01-09  David S. Miller  <davem@davemloft.net>
59215
59216         [BZ #15003]
59217         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
59218         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
59219         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
59220         (TCP_FASTOPEN): Define.
59221         (tcp_repair_opt): New structure.
59222         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
59223         enum values.
59224         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
59225         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
59226         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
59227         (tcp_cookie_transactions): New structure.
59228
59229 2013-01-09  Anton Blanchard  <anton@samba.org>
59230
59231         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
59232         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
59233         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
59234         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
59235
59236 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
59237
59238         * include/features.h (__USE_ANSI): Remove.
59239
59240 2013-01-09  Roland McGrath  <roland@hack.frob.com>
59241
59242         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
59243
59244         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
59245
59246 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
59247
59248         * sysdeps/s390/fpu/libm-test-ulps: Update.
59249
59250         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59251
59252         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
59253         (__acr): Likewise.
59254         (__cpy): Likewise.
59255         (norm): Likewise.
59256         (denorm): Likewise.
59257         (__mp_dbl): Likewise.
59258         (__dbl_mp): Likewise.
59259         (add_magnitudes): Likewise.
59260         (sub_magnitudes): Likewise.
59261         (__add): Likewise.
59262         (__sub): Likewise.
59263         (__mul): Likewise.
59264         (__inv): Likewise.
59265         (__dvd): Likewise.
59266         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
59267         (__acr): Likewise.
59268         (__cpy): Likewise.
59269         (norm): Likewise.
59270         (denorm): Likewise.
59271         (__mp_dbl): Likewise.
59272         (__dbl_mp): Likewise.
59273         (add_magnitudes): Likewise.
59274         (sub_magnitudes): Likewise.
59275         (__add): Likewise.
59276         (__sub): Likewise.
59277         (__mul): Likewise.
59278         (__inv): Likewise.
59279         (__dvd): Likewise.
59280         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
59281         (__acr): Likewise.
59282         (__cpy): Likewise.
59283         (norm): Likewise.
59284         (denorm): Likewise.
59285         (__mp_dbl): Likewise.
59286         (__dbl_mp): Likewise.
59287         (add_magnitudes): Likewise.
59288         (sub_magnitudes): Likewise.
59289         (__add): Likewise.
59290         (__sub): Likewise.
59291         (__mul): Likewise.
59292         (__inv): Likewise.
59293         (__dvd): Likewise.
59294
59295 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
59296
59297         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
59298         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
59299         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
59300         2 && __USE_EXTERN_INLINES]: Likewise.
59301
59302 2013-01-08  Andreas Jaeger  <aj@suse.de>
59303
59304         [BZ# 14985]
59305         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
59306         Remove.
59307         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59308         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59309
59310 2013-01-07  Anton Blanchard  <anton@samba.org>
59311
59312         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
59313         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59314         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
59315         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59316         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
59317         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59318         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
59319         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59320         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59321         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59322         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59323         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59324         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
59325         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59326         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
59327         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59328         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
59329         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
59330         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
59331         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
59332         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
59333         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
59334         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
59335         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
59336         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
59337         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
59338         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
59339         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
59340         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
59341         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
59342         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
59343         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59344         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59345         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
59346         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
59347         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
59348         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
59349         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
59350         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
59351         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
59352         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
59353         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
59354         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
59355
59356 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
59357
59358         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
59359         (__MALLOC_PMT): Likewise.
59360         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
59361         [__GNUC__], only on [_LIBC].
59362         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59363         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
59364         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59365         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
59366         forward declaration.
59367         (realloc_hook_ini): Likewise.
59368         (memalign_hook_ini): Likewise.
59369         (__libc_memalign): Do not use __MALLOC_PMT in variable
59370         declaration.
59371         (__libc_valloc): Likewise.
59372         (__libc_pvalloc): Likewise.
59373         (__libc_calloc): Likewise.
59374         (__posix_memalign): Likewise.
59375
59376         [BZ #14996]
59377         * math/s_casinh.c: Include <float.h>.
59378         (__casinh): Do not do computation with squaring and square root
59379         for large arguments.
59380         * math/s_casinhf.c: Include <float.h>.
59381         (__casinhf): Do not do computation with squaring and square root
59382         for large arguments.
59383         * math/s_casinhl.c: Include <float.h>.
59384         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
59385         (__casinhl): Do not do computation with squaring and square root
59386         for large arguments.
59387         * math/libm-test.inc (casin_test): Add more tests.
59388         (casinh_test): Likewise.
59389         * sysdeps/i386/fpu/libm-test-ulps: Update.
59390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59391
59392 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
59393
59394         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
59395         (__x86_64_raw_data_cache_size): Likewise.
59396         (__x86_64_data_cache_size_half): Likewise.
59397         (__x86_64_raw_data_cache_size_half): Likewise.
59398         (__x86_64_shared_cache_size): Likewise.
59399         (__x86_64_raw_shared_cache_size): Likewise.
59400         (__x86_64_shared_cache_size_half): Likewise.
59401         (__x86_64_raw_shared_cache_size_half): Likewise.
59402         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
59403         to ...
59404         (__x86_data_cache_size): This.
59405         (__x86_64_raw_data_cache_size): Renamed to ...
59406         (__x86_raw_data_cache_size): This.
59407         (__x86_64_data_cache_size_half): Renamed to ...
59408         (__x86_data_cache_size_half): This.
59409         (__x86_64_raw_data_cache_size_half): Renamed to ...
59410         (__x86_raw_data_cache_size_half): This.
59411         (__x86_64_shared_cache_size): Renamed to ...
59412         (__x86_shared_cache_size): This.
59413         (__x86_64_raw_shared_cache_size): Renamed to ...
59414         (__x86_raw_shared_cache_size): This.
59415         (__x86_64_shared_cache_size_half): Renamed to ...
59416         (__x86_shared_cache_size_half): This.
59417         (__x86_64_raw_shared_cache_size_half): Renamed to ...
59418         (__x86_raw_shared_cache_size_half): This.
59419         * sysdeps/x86_64/memcpy.S: Updated.
59420         * sysdeps/x86_64/memset.S: Likewise.
59421         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
59422         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
59423         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
59424
59425 2013-01-04  David S. Miller  <davem@davemloft.net>
59426
59427         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59428
59429 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
59430
59431         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
59432         1 to avoid redefinition warning.
59433         (__USE_GNU): Don't define.
59434         (init_signaling_nan): Protoize.
59435
59436         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59437
59438 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59439
59440         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
59441         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
59442         (__cpymn): Likewise.
59443         (norm): Remove commented code.
59444         (denorm): Likewise.
59445         (__mp_dbl): Likewise.
59446         (__inv): Likewise.
59447         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
59448         (__cpymn): Likewise.
59449         (norm): Remove commented code.
59450         (denorm): Likewise.
59451         (__mp_dbl): Likewise.
59452         (__inv): Likewise.
59453
59454         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
59455         mp_no value for 1.0 and 2.0.
59456         (norm): Use RADIXI instead of radixi.d.
59457         (denorm): Likewise.
59458         (__mul): Use 0.0 instead of zero.d.
59459         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
59460         mp_no value for 1.0 and 2.0.
59461         (norm): Use RADIXI instead of radixi.d.
59462         (denorm): Likewise.
59463         (__mul): Use 0.0 instead of zero.d.
59464
59465 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
59466
59467         [BZ #14994]
59468         * math/s_casinh.c (__casinh): Reduce finite argument to first
59469         quadrant then set signs of results at the end.
59470         * math/s_casinhf.c (__casinhf): Likewise.
59471         * math/s_casinhl.c (__casinhl): Likewise.
59472         * math/libm-test.inc (casin_test): Add more tests.
59473         (casinh_test): Likewise.
59474         * sysdeps/i386/fpu/libm-test-ulps: Update.
59475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59476
59477 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59478
59479         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
59480
59481         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
59482
59483         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
59484         declarations.
59485         (denorm): Likewise.
59486         (__mp_dbl): Likewise.
59487         (__inv): Likewise.
59488
59489         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
59490         and adjust the header comment.
59491
59492         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
59493         variable name from declaration.
59494
59495 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
59496
59497         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59498         Initialize COMMON_CPUID_INDEX_7 element.
59499         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
59500         (CPUID_RTM): Likewise.
59501         (HAS_RTM): Likewise.
59502         (COMMON_CPUID_INDEX_7): New enum.
59503
59504 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
59505
59506         [BZ #14981]
59507         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
59508         size is zero, record memory as freed.
59509
59510 2013-01-03  Andreas Jaeger  <aj@suse.de>
59511
59512         * po/ia.po: Add new Interlingua translation.
59513
59514 2012-01-03  Allan McRae  <allan@archlinux.org>
59515
59516         * locale/programs/localedef.c: Fix description of '--posix' flag.
59517
59518 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
59519
59520         * NEWS: Update dates in second copyright notice.
59521         * README: Update copyright dates in example.
59522         * manual/libc.texinfo: Update copyright dates.
59523         * scripts/test-installation.pl: Update copyright date in --version
59524         output.
59525
59526         * hurd/ctty-input.c: Fix copyright notice formatting.
59527         * hurd/ctty-output.c: Likewise.
59528         * hurd/dtable.c: Likewise.
59529         * hurd/hurd-raise.c: Likewise.
59530         * hurd/hurdprio.c: Likewise.
59531         * hurd/msgportdemux.c: Likewise.
59532         * misc/sys/file.h: Likewise.
59533         * misc/sys/ioctl.h: Likewise.
59534         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
59535         * sysdeps/mach/hurd/chdir.c: Likewise.
59536         * sysdeps/mach/hurd/fchdir.c: Likewise.
59537         * sysdeps/mach/hurd/rename.c: Likewise.
59538         * sysdeps/mach/hurd/rmdir.c: Likewise.
59539         * sysdeps/mach/hurd/seekdir.c: Likewise.
59540         * sysdeps/mach/hurd/setsid.c: Likewise.
59541         * sysdeps/posix/wait3.c: Likewise.
59542
59543         * All files with FSF copyright notices: Update copyright dates
59544         using scripts/update-copyrights.
59545         * intl/plural.c: Regenerated.
59546         * locale/programs/charmap-kw.h: Likewise.
59547         * locale/programs/locfile-kw.h: Likewise.
59548
59549 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
59550
59551         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
59552         four values.
59553
59554         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
59555         calculation loop and add branch prediction.
59556
59557         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
59558         check access beyond bounds of m1np.
59559
59560         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
59561         MPTWO.
59562         (__inv): Remove local variable MPTWO to use the global
59563         constant.
59564         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
59565         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
59566         variable MPTWO.
59567         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
59568         MP3HALFS static const.
59569
59570 2013-01-01  David S. Miller  <davem@davemloft.net>
59571
59572         * po/ca.po: Update from translation team.
59573
59574 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
59575
59576         * scripts/update-copyrights: New file.
59577         * Makeconfig: Reformat copyright notice.
59578         * ctype/ctype.h: Likewise.
59579         * debug/swprintf_chk.c: Likewise.
59580         * elf/dl-cache.c: Likewise.
59581         * elf/dl-debug.c: Likewise.
59582         * elf/dl-object.c: Likewise.
59583         * grp/initgroups.c: Likewise.
59584         * hurd/Makefile: Likewise.
59585         * hurd/hurd/signal.h: Likewise.
59586         * hurd/hurdfault.c: Likewise.
59587         * hurd/hurdioctl.c: Likewise.
59588         * hurd/hurdlookup.c: Likewise.
59589         * hurd/intr-msg.c: Likewise.
59590         * iconv/gconv_open.c: Likewise.
59591         * libio/swprintf.c: Likewise.
59592         * locale/lc-ctype.c: Likewise.
59593         * locale/nl_langinfo.c: Likewise.
59594         * mach/Machrules: Likewise.
59595         * mach/Makefile: Likewise.
59596         * malloc/obstack.h: Likewise.
59597         * manual/Makefile: Likewise.
59598         * manual/tsort.awk: Likewise.
59599         * misc/bits/stab.def: Likewise.
59600         * nis/nis_print_group_entry.c: Likewise.
59601         * nis/nis_table.c: Likewise.
59602         * nis/nss_compat/compat-pwd.c: Likewise.
59603         * nis/nss_compat/compat-spwd.c: Likewise.
59604         * po/Makefile: Likewise.
59605         * posix/fnmatch.c: Likewise.
59606         * posix/regex.h: Likewise.
59607         * resolv/Makefile: Likewise.
59608         * resolv/nss_dns/dns-network.c: Likewise.
59609         * resolv/res_hconf.c: Likewise.
59610         * scripts/gen-sorted.awk: Likewise.
59611         * soft-fp/soft-fp.h: Likewise.
59612         * stdio-common/printf.h: Likewise.
59613         * stdlib/monetary.h: Likewise.
59614         * stdlib/random.c: Likewise.
59615         * stdlib/random_r.c: Likewise.
59616         * sysdeps/generic/Makefile: Likewise.
59617         * sysdeps/gnu/Makefile: Likewise.
59618         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
59619         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
59620         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
59621         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
59622         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
59623         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
59624         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
59625         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
59626         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
59627         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
59628         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
59629         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
59630         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
59631         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
59632         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
59633         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
59634         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
59635         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
59636         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
59637         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
59638         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
59639         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
59640         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
59641         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59642         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
59643         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
59644         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
59645         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
59646         * sysdeps/mach/hurd/errnos.awk: Likewise.
59647         * sysdeps/mach/hurd/fork.c: Likewise.
59648         * sysdeps/mach/hurd/getcwd.c: Likewise.
59649         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
59650         * sysdeps/mach/hurd/mmap.c: Likewise.
59651         * sysdeps/mach/hurd/utimes.c: Likewise.
59652         * sysdeps/mach/hurd/xmknod.c: Likewise.
59653         * sysdeps/posix/profil.c: Likewise.
59654         * sysdeps/posix/readdir_r.c: Likewise.
59655         * sysdeps/powerpc/bits/mathdef.h: Likewise.
59656         * sysdeps/powerpc/bits/setjmp.h: Likewise.
59657         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
59658         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59659         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59660         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
59661         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59662         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59663         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59664         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
59665         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59666         * sysdeps/pthread/lio_listio.c: Likewise.
59667         * sysdeps/sparc/dl-procinfo.h: Likewise.
59668         * sysdeps/unix/i386/sysdep.S: Likewise.
59669         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
59670         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
59671         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
59672         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
59673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
59674         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
59675         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
59676         * sysdeps/unix/sysv/linux/speed.c: Likewise.
59677         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
59678         * sysdeps/wordsize-32/divdi3.c: Likewise.
59679         * time/sys/time.h: Likewise.
59680         * wcsmbs/Makefile: Likewise.
59681
59682 2013-01-01  David S. Miller  <davem@davemloft.net>
59683
59684         * po/fr.po: Update from translation team.
59685
59686         * catgets/gencat.c: Update copyright year.
59687         * csu/version.c: Likewise.
59688         * debug/catchsegv.sh: Likewise.
59689         * debug/pcprofiledump.c: Likewise.
59690         * debug/xtrace.sh: Likewise.
59691         * elf/ldconfig.c: Likewise.
59692         * elf/ldd.bash.in: Likewise.
59693         * elf/pldd.c: Likewise.
59694         * elf/sotruss.ksh: Likewise.
59695         * elf/sprof.c: Likewise.
59696         * iconv/iconv_prog.c: Likewise.
59697         * iconv/iconvconfig.c: Likewise.
59698         * locale/programs/locale.c: Likewise.
59699         * locale/programs/localedef.c: Likewise.
59700         * login/programs/pt_chown.c: Likewise.
59701         * malloc/memusage.sh: Likewise.
59702         * malloc/memusagestat.c: Likewise.
59703         * malloc/mtrace.pl: Likewise.
59704         * nscd/nscd.c: Likewise.
59705         * nss/getent.c: Likewise.
59706         * nss/makedb.c: Likewise.
59707         * posix/getconf.c: Likewise.
59708
59709 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
59710
59711         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
59712         numbers.
59713
59714 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
59715
59716         * math/bits/mathcalls.h (modf): Use __nonnull.
59717
59718 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
59719
59720         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
59721         (split): Use macro CN instead of the bare value.
59722         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
59723         could be used.
59724         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
59725         instead of the bare value.
59726         (power1): Likewise.
59727
59728 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
59729
59730         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
59731         __ATAN_TWOM.
59732         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
59733
59734         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
59735         their values.
59736         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
59737         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
59738         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
59739         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
59740
59741 2012-12-28  Andreas Jaeger  <aj@suse.de>
59742
59743         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
59744         values are from Linux 3.7.
59745
59746         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
59747         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
59748
59749 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
59750
59751         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
59752         TRUE case.
59753
59754         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
59755         (norm): Likewise.
59756         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
59757         variables with preprocessor constants.
59758         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
59759         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
59760         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
59761
59762 2012-12-27  Bruno Haible  <bruno@clisp.org>
59763
59764         [BZ #14317]
59765         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
59766         only if needed.
59767
59768 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
59769
59770         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
59771         and use variable directly.
59772         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
59773
59774         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
59775         MPONE.
59776         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
59777         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
59778         variable MPONE.
59779         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
59780         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
59781         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
59782         include directive.  Remove local variable MPONE.
59783         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
59784         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
59785         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
59786
59787 2012-12-25  David S. Miller  <davem@davemloft.net>
59788
59789         * version.h (RELEASE): Set to "development".
59790         (VERSION): Set to "2.17.90".
59791         * NEWS: Add 2.18 section.
59792
59793 2012-12-21  David S. Miller  <davem@davemloft.net>
59794
59795         * po/hr.po: Update from translation team.
59796
59797 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59798
59799         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
59800
59801 2012-12-19  Steve Ellcey  <sellcey@mips.com>
59802
59803         * NEWS:  Mention new memcpy for MIPS.
59804
59805 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
59806
59807         * manual/contrib.texi (Contributors): Spelling correction.
59808
59809 2012-12-15  David S. Miller  <davem@davemloft.net>
59810
59811         * po/ru.po: Update from translation team.
59812
59813 2012-12-13  David S. Miller  <davem@davemloft.net>
59814
59815         * NEWS: Mention IFUNC testsuite enhancements.
59816
59817         * po/pl.po: Update from translation team.
59818         * po/bg.po: Likewise.
59819
59820         * manual/contrib.texi (Contributors): Update entries for Hongjiu
59821         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
59822
59823 2012-12-11  David S. Miller  <davem@davemloft.net>
59824
59825         * po/sv.po: Update from translation team.
59826
59827         * po/vi.po: Update from translation team.
59828
59829         * po/cs.po: Update from translation team.
59830
59831         * po/de.po: Update from translation team.
59832         * po/eo.po: Likewise.
59833         * po/nl.po: Likewise.
59834
59835 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59836
59837         [BZ #14246]
59838         * manual/argp.texi (Argp Helper Functions): Move node to follow
59839         Argp Parsing State.
59840
59841         [BZ #14872]
59842         * manual/conf.texi (Limits on File System Capacity): Mention if
59843         terminating null is included in the max size.
59844
59845 2012-12-10  Andreas Jaeger  <aj@suse.de>
59846
59847         * po/cs.po: Update from translation team.
59848
59849 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
59850
59851         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
59852         void pointer and cast to uintptr_t.
59853         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
59854         path.
59855         * sysdeps/s390/s390-64/memcpy.S: Likewise.
59856         * sysdeps/s390/s390-64/memset.S: Likewise.
59857
59858 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
59859
59860         [BZ #14833]
59861         * menual/message.texi (Message Translation): Fix typos.
59862         (Helper programs for gettext): Likewise.
59863
59864 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
59865
59866         [BZ #14898]
59867         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
59868         Change to -1.
59869
59870 2012-12-07  David S. Miller  <davem@davemloft.net>
59871
59872         * po/libc.pot: Update.
59873
59874 2012-12-07  Richard Henderson  <rth@redhat.com>
59875
59876         [BZ #10114]
59877         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
59878         normal/normal case to before the switch.
59879         (_FP_DIV): Likewise.
59880
59881 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
59882             Mike Frysinger  <vapier@gentoo.org>
59883
59884         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
59885         check for __NR_fadvise64_64.
59886
59887 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
59888
59889         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
59890         0, not just to plain "0" as a statement.
59891         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
59892         with cw.
59893
59894 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
59895
59896         * NEWS: Use sourceware.org in Bugzilla URL.
59897
59898 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
59899
59900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
59901         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
59902
59903         * stdio-common/tst-put-error.c (do_test): Add newline to the
59904         padded test to ensure flush.
59905
59906 2012-12-05  Jeff Law  <law@redhat.com>
59907
59908         * sunrpc/etc.rpc (fedfs_admin): Add entry.
59909
59910 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
59911
59912         * README: Don't refer to ports add-on as distributed separately.
59913         Mention AArch64 in list of systems supported in the ports add-on.
59914
59915         * LICENSES: Add more non-FSF copyright and license notices.
59916
59917         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
59918         ((unused)).
59919
59920         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
59921
59922         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
59923         10000 as width of padded output.
59924
59925 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
59926
59927         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
59928
59929         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
59930         variable LX with __attribute__ ((unused)).
59931         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
59932         Likewise.
59933         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
59934         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
59935         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
59936         with __attribute__ ((unused)).
59937
59938 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
59939
59940         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
59941
59942 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
59943
59944         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
59945         (CFLAGS-nldbl-acos.c): New variable.
59946         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
59947         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
59948         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
59949         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
59950         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
59951         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
59952         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
59953         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
59954         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
59955         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
59956         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
59957         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
59958         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
59959         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
59960         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
59961         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
59962         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
59963         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
59964         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
59965         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
59966         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
59967         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
59968         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
59969         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
59970         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
59971         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
59972         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
59973         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
59974         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
59975         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
59976         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
59977         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
59978         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
59979         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
59980         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
59981         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
59982         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
59983         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
59984         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
59985         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
59986         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
59987         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
59988         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
59989         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
59990         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
59991         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
59992         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
59993         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
59994         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
59995         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
59996         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
59997         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
59998         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
59999         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
60000         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
60001         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
60002         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
60003         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
60004         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
60005         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
60006         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
60007         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
60008         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
60009         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
60010         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
60011         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
60012         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
60013         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
60014         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
60015         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
60016         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
60017         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
60018         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
60019         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
60020         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
60021         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
60022         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
60023         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
60024         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
60025         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
60026         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
60027         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
60028         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
60029         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
60030         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
60031         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
60032         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
60033         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
60034         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
60035         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
60036         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
60037         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
60038         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
60039         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
60040         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
60041         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
60042         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
60043
60044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
60045         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60046
60047         [BZ #14914]
60048         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
60049         whole low double instead of just low 47 bits when splitting values
60050         into two parts.
60051
60052 2012-12-03  Allan McRae  <allan@archlinux.org>
60053
60054         * manual/stdio.texi (Predefined Printf Handlers): Remove
60055         @hsep and @vsep usage.
60056
60057 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
60058
60059         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
60060         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
60061
60062 2012-12-03  Jeff Law  <law@redhat.com>
60063
60064         * time/sys/time.h (settimeofday): Do not mark TV argument
60065         as __nonnull.
60066
60067 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
60068
60069         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
60070         when currently writing and seek to current position when not.
60071         * libio/Makefile (tests): Remove bug-fclose1.
60072         * libio/bug-fclose1.c: Delete.
60073
60074 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
60075
60076         * manual/arith.texi (feenableexcept): Fix typo.
60077         (fedisableexcept): Likewise.
60078
60079 2012-11-30  Roland McGrath  <roland@hack.frob.com>
60080
60081         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
60082         second, differently-typed declaration, rather than a cast.
60083
60084 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
60085
60086         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
60087         * include/rpc/svc.h: ... here.
60088
60089 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
60090
60091         [BZ #13013]
60092         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
60093         depending n and resplen2 to catch cases where answer
60094         equals answerp2.
60095
60096 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
60097
60098         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
60099         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
60100
60101 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
60102
60103         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
60104
60105 2012-11-29  Roland McGrath  <roland@hack.frob.com>
60106
60107         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
60108
60109 2012-11-28  Jeff Law  <law@redhat.com>
60110
60111         [BZ #13761]
60112         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
60113         dataset_temporary.  Track alloca usage into alloca_used.
60114         If dataset is large allocate and release it via malloc/free.
60115
60116 2012-06-04  Florian Weimer  <fweimer@redhat.com>
60117
60118         [BZ #14197]
60119         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
60120
60121 2012-11-28  David S. Miller  <davem@davemloft.net>
60122
60123         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60124
60125 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60126
60127         [BZ #14803]
60128         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
60129         of pi/2 rounded to nearest to 64 bits.
60130         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
60131         nearest to 64 bits.
60132         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
60133         bits.
60134
60135 2012-11-28  Jeff Law <law@redhat.com>
60136             Martin Osvald <mosvald@redhat.com>
60137
60138         [BZ #14889]
60139         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
60140         * sunrpc/svc.c: Include time.h.
60141         (__svc_accept_failed): New function.
60142         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
60143         any reason other than EINTR, call __svc_accept_failed.
60144         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
60145         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
60146
60147 2012-11-28  Andreas Schwab  <schwab@suse.de>
60148
60149         * scripts/abilist.awk: Also handle indirect functions in .opd
60150         section.
60151
60152 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60153
60154         [BZ #13881]
60155         * sysdeps/x86/fpu/powl_helper.c: New file.
60156         * sysdeps/x86/fpu/Makefile: Likewise.
60157         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
60158         (p3): New object.
60159         (__ieee754_powl): Use __powl_helper for finite arguments except
60160         integer exponents below 8.
60161         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
60162         (p3): New object.
60163         (__ieee754_powl): Use __powl_helper for finite arguments except
60164         integer exponents below 8.
60165         * math/libm-test.inc (pow_test): Add more tests and enable some
60166         previously disabled tests.
60167         * sysdeps/i386/fpu/libm-test-ulps: Update.
60168         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60169
60170 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60171             Carlos O'Donell  <carlos_odonell@mentor.com>
60172
60173         * nss/makedb.c (is_prime): Assert that input is odd and greater
60174         than 4.  Note that fact in a comment too.
60175         (next_prime): Add 4 to input.
60176
60177 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60178
60179         [BZ #11741]
60180         * libio/Makefile (tests): Add test case tst-fwrite-error.
60181         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
60182         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
60183         * libio/tst-fwrite-error.c: New test case.
60184
60185 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
60186
60187         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
60188         before casting to void *.
60189         * include/libc-internal.h (__pointer_type): New macro.
60190         (__integer_if_pointer_type_sub): Likewise.
60191         (__integer_if_pointer_type): Likewise.
60192         (cast_to_integer): Likewise.
60193         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
60194         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
60195         before casting to atomic64_t.
60196         (atomic_exchange_acq): Likewise.
60197         (__arch_exchange_and_add_body): Likewise.
60198         (__arch_add_body): Likewise.
60199         (atomic_add_negative): Likewise.
60200         (atomic_add_zero): Likewise.
60201
60202 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
60203
60204         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
60205         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
60206         (add_fdes): Likewise.
60207         (linear_search_fdes): Likewise.
60208         (binary_search_unencoded_fdes): Likewise.
60209
60210 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
60211
60212         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
60213
60214 2012-11-24  Adam Conrad  <adconrad@0c3.net>
60215
60216         * configure.in: Autodetect C++ header directories.
60217         * configure: Regenerated.
60218
60219 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
60220
60221         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
60222
60223 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
60224
60225         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60226
60227 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
60228
60229         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
60230         LDBL_MANT_DIG == 106]: Disable some tests.
60231         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60232         Likewise.
60233         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60234         Likewise.
60235
60236         [BZ #14871]
60237         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
60238         input for small inputs.  Return +/- pi/2 for large inputs.
60239         * math/libm-test.inc (atan_test): Add more tests.
60240
60241         * sysdeps/generic/unwind-dw2-fde-glibc.c
60242         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
60243         __attribute__ ((unused)).
60244
60245         [BZ #14645]
60246         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
60247         x * y if x and y are nonzero and z is zero.
60248
60249         [BZ #14811]
60250         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
60251         nonzero exponents with absolute value below 0x1p-117 to +/-
60252         0x1p-117.
60253
60254         [BZ #14869]
60255         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
60256         up arguments below 2**-450, not just those below 2**-500.
60257         * math/libm-test.inc (hypot_test): Add another test.
60258
60259         [BZ #14868]
60260         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
60261         Return a+b for ratio over 2**120, not 2**60.
60262         * math/libm-test.inc (hypot_test): Add another test.
60263
60264         * math/libm-test.inc (clog_test): Use
60265         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
60266         (clog10_test): Likewise.
60267
60268         [BZ #6778]
60269         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
60270
60271 2012-11-22  Andreas Schwab  <schwab@suse.de>
60272
60273         * sysdeps/i386/fpu/libm-test-ulps: Update.
60274
60275 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
60276
60277         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
60278         printf output with newline.
60279
60280 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
60281
60282         [BZ #14865]
60283         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
60284         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
60285         -z nodlopen, -z initfirst and -z execstack support.
60286         * configure: Regenerated.
60287
60288         * elf/elf.h (DF_1_NODIRECT): New macro.
60289         (DF_1_IGNMULDEF): Likewise.
60290         (DF_1_NOKSYMS): Likewise.
60291         (DF_1_NOHDR): Likewise.
60292         (DF_1_EDITED): Likewise.
60293         (DF_1_NORELOC): Likewise.
60294         (DF_1_SYMINTPOSE): Likewise.
60295         (DF_1_GLOBAUDIT): Likewise.
60296         (DF_1_SINGLETON): Likewise.
60297         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
60298         DT_1_SUPPORTED_MASK bits.
60299         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
60300
60301 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
60302
60303         * sysdeps/unix/make-syscalls.sh: Document prefixes.
60304
60305 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
60306
60307         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
60308         macro.
60309
60310         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
60311         (sendmmsg): Move declarations...
60312         * socket/sys/socket.h: ... here.
60313         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
60314         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
60315         include it from...
60316         * socket/recvmmsg.c: ... this new file.
60317         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
60318         (sendmmsg): Rename to __sendmmsg, create weak alias and make
60319         definition of __sendmmsg hidden.
60320         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
60321         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
60322         Move ENOSYS stub into and include it from...
60323         * socket/sendmmsg.c: ... this new file.
60324         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
60325         (sysdep_routines): Move recvmmsg and sendmmsg...
60326         * socket/Makefile (routines): ... here.
60327         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
60328         (GLIBC_PRIVATE): Add __sendmmsg.
60329         * include/sys/socket.h (__sendmmsg): Add declarations.
60330         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
60331         sendmmsg.
60332
60333 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
60334
60335         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
60336         variable I1 with __attribute__ ((unused)).
60337         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
60338
60339 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60340
60341         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
60342         DUMMY variables with __attribute__ ((unused)).
60343
60344         * bits/byteswap.h: Include <bits/types.h>.
60345         (__bswap_64): Use __uint64_t instead of unsigned long long int.
60346
60347 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60348
60349         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
60350         string_t.  Do not manually set errno.
60351         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
60352         length with __strnlen.  Make sure to both set errno and return it on
60353         failure.
60354
60355 2012-11-19  David S. Miller  <davem@davemloft.net>
60356
60357         With help from Joseph Myers.
60358         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
60359         very large arguments properly.
60360         * math/libm-test.inc (atan_test): New tests.
60361         (atan2_test): New tests.
60362         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60363         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60364
60365 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60366
60367         [BZ #14856]
60368         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
60369         Define to 3.
60370
60371         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
60372         [POSIX] (EADDRNOTAVAIL): Likewise.
60373         [POSIX] (EAFNOSUPPORT): Likewise.
60374         [POSIX] (EALREADY): Likewise.
60375         [POSIX] (ECONNABORTED): Likewise.
60376         [POSIX] (ECONNREFUSED): Likewise.
60377         [POSIX] (ECONNRESET): Likewise.
60378         [POSIX] (EDESTADDRREQ): Likewise.
60379         [POSIX] (EDQUOT): Likewise.
60380         [POSIX] (EHOSTUNREACH): Likewise.
60381         [POSIX] (EIDRM): Likewise.
60382         [POSIX] (EISCONN): Likewise.
60383         [POSIX] (ELOOP): Likewise.
60384         [POSIX] (EMULTIHOP): Likewise.
60385         [POSIX] (ENETDOWN): Likewise.
60386         [POSIX] (ENETUNREACH): Likewise.
60387         [POSIX] (ENOBUFS): Likewise.
60388         [POSIX] (ENODATA): Likewise.
60389         [POSIX] (ENOLINK): Likewise.
60390         [POSIX] (ENOMSG): Likewise.
60391         [POSIX] (ENOPROTOOPT): Likewise.
60392         [POSIX] (ENOSR): Likewise.
60393         [POSIX] (ENOSTR): Likewise.
60394         [POSIX] (ENOTCONN): Likewise.
60395         [POSIX] (ENOTSOCK): Likewise.
60396         [POSIX] (EOPNOTSUPP): Likewise.
60397         [POSIX] (EOVERFLOW): Likewise.
60398         [POSIX] (EPROTO): Likewise.
60399         [POSIX] (EPROTONOSUPPORT): Likewise.
60400         [POSIX] (EPROTOTYPE): Likewise.
60401         [POSIX] (ESTALE): Likewise.
60402         [POSIX] (ETIME): Likewise.
60403         [POSIX] (ETXTBSY): Likewise.
60404         [POSIX] (EWOULDBLOCK): Likewise.
60405         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
60406         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
60407         [POSIX] (SEEK_CUR): Likewise.
60408         [POSIX] (SEEK_END): Likewise.
60409         [POSIX || UNIX98] (mode_t): Do not require.
60410         [POSIX] (off_t): Likewise.
60411         [POSIX] (pid_t): Likewise.
60412         [POSIX] (sys/stat.h): Do not allow header.
60413         [POSIX] (unistd.h): Likewise.
60414         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
60415         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
60416         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
60417         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
60418         require.
60419         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
60420         sigevent): Specify elements.
60421         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
60422         entry.
60423         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
60424         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
60425
60426         * conform/data/cpio.h-data [POSIX]: Disable whole file.
60427         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
60428         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
60429         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
60430         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
60431         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
60432         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
60433         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
60434         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
60435         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
60436         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
60437         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
60438         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
60439         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
60440         Likewise.
60441         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
60442         Likewise.
60443         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
60444         Likewise.
60445         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
60446         Likewise.
60447         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
60448         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
60449         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
60450         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
60451         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
60452         Specify lower bound on value.
60453         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
60454         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
60455         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
60456         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
60457         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
60458         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
60459         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
60460         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
60461         value.
60462         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
60463         as optional.
60464         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
60465         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
60466         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
60467         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
60468         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
60469         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
60470         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
60471         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
60472         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
60473         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
60474         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
60475         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
60476         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
60477         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
60478         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
60479         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
60480         entry.
60481         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
60482         optional.
60483         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
60484         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
60485         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
60486         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
60487         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
60488         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
60489         Likewise.
60490         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
60491         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
60492         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
60493         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
60494         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
60495         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
60496         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
60497         as optional.
60498         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
60499         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
60500         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
60501         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
60502         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
60503         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
60504         specify as optional.
60505         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
60506         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
60507         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
60508         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
60509         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
60510         [XPG3] (NL_LANGMAX): Likewise.
60511         [POSIX || XPG3] (NL_MSGMAX): Likewise.
60512         [POSIX || XPG3] (NL_NMAX): Likewise.
60513         [POSIX || XPG3] (NL_SETMAX): Likewise.
60514         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
60515         [XPG3] (NZERO): Likewise.
60516         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
60517         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
60518         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
60519         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
60520         (REG_ERANGE): Expect.
60521         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
60522         optional-constant.
60523         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
60524         Use (void) in prototype.
60525         [POSIX] (*_t): Allow.
60526         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
60527         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
60528         (WRDE_BADVAL): Expect.
60529
60530         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
60531         expect.
60532         [XPG3 || XPG4] (O_RSYNC): Likewise.
60533         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
60534         Likewise.
60535         [XPG3 || XPG4] (pthread_sigmask): Likewise.
60536         [XPG3 || XPG4] (sigqueue): Likewise.
60537         [XPG3 || XPG4] (sigtimedwait): Likewise.
60538         [XPG3 || XPG4] (sigwaitinfo): Likewise.
60539         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
60540         [XPG3 || XPG4] (vsnprintf): Likewise.
60541         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
60542         Likewise.
60543         [XPG3 || XPG4] (blksize_t): Likewise.
60544         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
60545         Likewise.
60546         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
60547         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
60548         [XPG3 || XPG4] (struct itimerspec): Likewise.
60549         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
60550         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
60551         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
60552         [XPG3 || XPG4] (clockid_t): Likewise.
60553         [XPG3 || XPG4] (timer_t): Likewise.
60554         [XPG3 || XPG4] (clock_getres): Likewise.
60555         [XPG3 || XPG4] (clock_gettime): Likewise.
60556         [XPG3 || XPG4] (clock_settime): Likewise.
60557         [XPG3 || XPG4] (nanosleep): Likewise.
60558         [XPG3 || XPG4] (timer_create): Likewise.
60559         [XPG3 || XPG4] (timer_delete): Likewise.
60560         [XPG3 || XPG4] (timer_gettime): Likewise.
60561         [XPG3 || XPG4] (timer_getoverrun): Likewise.
60562         [XPG3 || XPG4] (timer_settime): Likewise.
60563         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
60564         [XPG3 || XPG4] (getlogin_r): Likewise.
60565         [XPG3 || XPG4] (pread): Likewise.
60566         [XPG3 || XPG4] (pthread_atfork): Likewise.
60567         [XPG3 || XPG4] (pwrite): Likewise.
60568
60569         [BZ #14835]
60570         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
60571         <bits/siginfo.h>.
60572
60573 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60574
60575         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
60576         finalizing MALLSTREAM.
60577
60578         * sysdeps/mach/hurd/syncfs.c: New file.
60579
60580 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
60581
60582         [BZ #14719]
60583         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
60584         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
60585         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
60586         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
60587         (_nss_dns_gethostbyname4_r): Likewise.
60588         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
60589         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
60590
60591 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
60592
60593         [BZ #13763]
60594         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
60595
60596 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
60597
60598         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
60599         * elf/cache.c (print_entry): Print ",AArch64" for
60600         FLAG_AARCH64_LIB64
60601
60602         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
60603         * elf/cache.c (print_entry): Print ",hard-float" for
60604         FLAG_ARM_LIBHF.
60605
60606 2012-11-18  David S. Miller  <davem@davemloft.net>
60607
60608         With help from Joseph Myers.
60609         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
60610         cutoff to 2**-13.
60611         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
60612         cutoff to 2**-25.
60613         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
60614         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
60615         small.
60616         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
60617         * math/libm-test.inc (y0_test): New tests.
60618         (y1_test): New tests.
60619         * sysdeps/i386/fpu/libm-test-ulps: Update.
60620         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60621         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60622
60623 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
60624
60625         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
60626         64-bit targets.
60627         * configure: Regenerated.
60628
60629 2012-11-17  David S. Miller  <davem@davemloft.net>
60630
60631         [BZ #14811]
60632         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
60633         nonzero exponents with absolute value below 0x1p-128 to +/-
60634         0x1p-128.
60635
60636 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
60637
60638         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
60639
60640         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
60641
60642         * posix/getconf-speclist.c: New file.
60643         * posix/posix-envs.def: Likewise.
60644         * posix/confstr.c (START_ENV_GROUP): New macro.
60645         (END_ENV_GROUP): Likewise.
60646         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
60647         (KNOWN_PRESENT_ENV_STRING): Likewise.
60648         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
60649         (UNKNOWN_ENVIRONMENT): Likewise.
60650         (confstr): Include posix-envs.def instead of handling
60651         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
60652         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
60653         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
60654         (END_ENV_GROUP): Likewise.
60655         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
60656         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
60657         (UNKNOWN_ENVIRONMENT): Likewise.
60658         (__sysconf): Include posix-envs.def instead of handling associated
60659         cases directly here.
60660         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
60661         preprocessing getconf-speclist.c rather than running getconf or
60662         generating empty file.
60663
60664 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
60665
60666         * scripts/check-local-headers.sh: Ignore 'mach' headers.
60667
60668 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
60669
60670         [BZ #14672]
60671         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
60672
60673 2012-11-16  David S. Miller  <davem@davemloft.net>
60674
60675         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
60676         smaller than LDBL_EPSILON/2.0L, just return xm1.
60677
60678 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
60679
60680         * elf/tst-array1.c (init): Set constructor priority to 1000.
60681         (fini): Set destructor priority to 1000.
60682         * elf/tst-array2dep.c: Likewise.
60683
60684 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
60685
60686         [BZ #11741]
60687         * libio/fileops.c (_IO_new_file_write): Correctly return error.
60688         (_IO_new_file_xsputn): Also return EOF if none of the input
60689         data was written when overflow failed.
60690         * libio/iopadn.c (_IO_padn): Likewise.
60691         * libio/iowpadn.c (_IO_wpadn): Likewise.
60692         * stdio-common/tst-put-error.c: Add copyright notice.
60693         (do_test): Add case for printing padded string.
60694         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
60695         _IO_padn returned error.
60696         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
60697         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
60698         return EOF.
60699
60700 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
60701
60702         * libio/libioP.h: Add comment note that the references to C++
60703         bits are now obsolete.
60704
60705 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60706
60707         * math/libm-test.inc (check_complex): Use asprintf.
60708
60709 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
60710
60711         * debug/pcprofiledump.c (print_version): Update copyright year.
60712         * malloc/memusagestat.c (print_version): Likewise.
60713
60714 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
60715
60716         [BZ #14831]
60717         * elf/Makefile (tests): Add tst-audit8.
60718         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
60719         ($(objpfx)tst-audit8.out): New target.
60720         (tst-audit8-ENV): New variable.
60721         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
60722         audit if l_reloc_result is NULL.
60723         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
60724         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
60725         * elf/tst-audit8.c: New file.
60726
60727 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60728
60729         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
60730         * misc/Makefile (CFLAGS-select.c): Define.
60731         * posix/Makefile (CFLAGS-pause.c): Define.
60732
60733 2012-11-13  David S. Miller  <davem@davemloft.net>
60734
60735         * crypt/Makefile: Move test targets after toplevel Rules
60736         inclusion.  Grab any necessary sysdep routines when linking.
60737         * crypt/md5.c (md5_process_block): Remove define, we will always
60738         name it __md5_process_block.
60739         (md5_finish_ctx): Update md5_process_block call.
60740         (md5_stream): Likewise.
60741         (md5_process_bytes): Likewise.
60742         (md5_process_block): Rename to __md5_process_block and move to ...
60743         * crypt/md5-block.c: ... here.
60744         * crypt/sha256.c (sha256_process_block): Move to ...
60745         * crypt/sha256-block.c: ... here.
60746         * crypt/sha512.c (sha512_process_block): Move to ...
60747         * crypt/sha512-block.c: ... here.
60748         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
60749         path.
60750         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
60751         * sysdeps/sparc/sparc64/multiarch/Makefile
60752         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
60753         crypt subdir.
60754         (localedef-aux): Add md5 crypto assembler when in locale subdir.
60755         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
60756         multiarch changes.
60757         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
60758         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
60759         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
60760         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
60761         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
60762         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
60763         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
60764         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
60765         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
60766         file.
60767         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
60768         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
60769         file.
60770         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
60771
60772 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
60773
60774         * timezone/tzselect.ksh: Update from tzcode git revision
60775         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
60776         * timezone/zdump.c: Likewise.
60777         * timezone/zic.c: Likewise.
60778         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
60779         in TZVERSION setting, not $(PKGVERSION).
60780         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
60781         REPORT_BUGS_TO settings.
60782
60783         [BZ #14838]
60784         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
60785         macro.
60786
60787 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60788
60789         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
60790         detection to immediately after _FP_ROUND().
60791         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
60792         bits are 0.
60793
60794 2012-11-11  David S. Miller  <davem@davemloft.net>
60795
60796         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
60797         inttypes.h
60798         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
60799         __close rather than their public counterparts.
60800
60801 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
60802
60803         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
60804         file.
60805         [UNIX98] (sem_timedwait): Do not expect.
60806         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
60807         [XPG4 || UNIX98] (sockatmark): Do not expect.
60808         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
60809         (clock_getcpuclockid): Do not expect.
60810         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
60811         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
60812         Do not expect.
60813         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
60814         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
60815         [UNIX98] (vwscanf): Likewise.
60816         [UNIX98] (vswscanf): Likewise.
60817
60818 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
60819
60820         * timezone/version.h: Remove file.
60821         * timezone/README: Do not refer to version.h.
60822         * timezone/Makefile ($(objpfx)zic.o): New dependency on
60823         $(objpfx)version.h.
60824         ($(objpfx)zdump.o): Likewise.
60825         ($(objpfx)version.h): New target.
60826
60827         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
60828         2012i.
60829         * timezone/README: Don't mention modification to tzselect.ksh.
60830         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
60831         work on unmodified tzselect.ksh.  Substitute version numbers in
60832         tzselect.ksh.
60833
60834         * Makefile (format-me): Remove.
60835         (INSTALL): Adjust indentation.  Use commands directly instead of
60836         using $(format-me).
60837
60838         * aclocal.m4 (ACX_PKGVERSION): New macro.
60839         (ACX_BUGURL): Likewise.
60840         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
60841         (PKGVERSION): New AC_DEFINE_UNQUOTED.
60842         (REPORT_BUGS_TO): Likewise.
60843         * configure: Regenerated.
60844         * config.h.in (PKGVERSION): New macro.
60845         (REPORT_BUGS_TO): Likewise.
60846         * config.make.in (PKGVERSION): New variable.
60847         (PKGVERSION_TEXI): Likewise.
60848         (REPORT_BUGS_TO): Likewise.
60849         (REPORT_BUGS_TEXI): Likewise.
60850         * Makefile (format-me): Use -I$(common-objpfx)manual.
60851         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
60852         ($(common-objpfx)manual/%): New target.
60853         (manual/%): Remove target.
60854         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
60855         (print_version): Use PKGVERSION.
60856         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
60857         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
60858         and REPORT_BUGS_TO.
60859         ($(objpfx)xtrace): Likewise.
60860         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
60861         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
60862         (print_version): Use PKGVERSION.
60863         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
60864         (do_version): Use PKGVERSION.
60865         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
60866         REPORT_BUGS_TO.
60867         (common-ldd-rewrite): Likewise.
60868         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
60869         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
60870         (print_version): Use PKGVERSION.
60871         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
60872         * elf/pldd.c (argp_program_bug_address): Remove variable.
60873         (more_help): New function.
60874         (argp): Use more_help.
60875         (print_version): Use PKGVERSION.
60876         * elf/sln.c (main): Use PKGVERSION.
60877         (usage): Use REPORT_BUGS_TO.
60878         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
60879         (top level): Use PKGVERSION.
60880         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
60881         (print_version): Use PKGVERSION.
60882         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
60883         (print_version): Use PKGVERSION.
60884         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
60885         (print_version): Use PKGVERSION.
60886         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
60887         (print_version): Use PKGVERSION.
60888         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
60889         (print_version): Use PKGVERSION.
60890         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
60891         (print_version): Use PKGVERSION.
60892         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
60893         and BUGURL.
60894         ($(objpfx)memusage): Likewise.
60895         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
60896         (do_version): Use PKGVERSION.
60897         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
60898         (print_version): Use PKGVERSION.
60899         * malloc/mtrace.pl ($PACKAGE): Remove variable.
60900         ($PKGVERSION): New variable.
60901         ($REPORT_BUGS_TO): Likewise.
60902         (usage): Use $REPORT_BUGS_TO.
60903         (top level): Use $PKGVERSION.
60904         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
60905         ($(objpfx)pkgvers.texi): New rule.
60906         ($(objpfx)stamp-pkgvers): Likewise.
60907         * manual/install.texi: Include pkgvers.texi.
60908         (--with-pkgversion): Document new configure option.
60909         (--with-bugurl): Likewise.
60910         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
60911         than necessarily for this particular distribution.  Use
60912         REPORT_BUGS_TO for where to report bugs.
60913         * INSTALL: Regenerated.
60914         * manual/libc.texinfo: Include pkgvers.texi.
60915         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
60916         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
60917         (print_version): Use PKGVERSION.
60918         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
60919         (print_version): Use PKGVERSION.
60920         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
60921         (print_version): Use PKGVERSION.
60922         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
60923         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
60924         macro.
60925         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
60926         (print_version): Use PKGVERSION.
60927         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
60928         (print_version): Use PKGVERSION.
60929         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
60930         and PKGVERSION.
60931
60932         * timezone/checktab.awk: Update from tzcode 2012i.
60933         * timezone/ialloc.c: Likewise.
60934         * timezone/private.h: Likewise.
60935         * timezone/scheck.c: Likewise.
60936         * timezone/tzfile.h: Likewise.
60937         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
60938         (TZVERSION): Hardcode tzcode version number.
60939         * timezone/zdump.c: Update from tzcode 2012i.
60940         * timezone/zic.c: Likewise.
60941         * timezone/version.h: New file.
60942         * timezone/README: Describe version.h.  Update upstream location.
60943
60944         [BZ #14824]
60945         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
60946         (mktemp): Enable declaration.
60947         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
60948         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
60949         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
60950         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
60951         Likewise.
60952         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
60953         Likewise.
60954         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
60955         Likewise.
60956         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
60957         Likewise.
60958         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
60959         Likewise.
60960         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
60961         Likewise.
60962
60963         [BZ #14821]
60964         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
60965         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
60966         for copies of such integer values.
60967         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
60968         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
60969
60970 2012-11-09  Andreas Jaeger  <aj@suse.de>
60971
60972         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
60973         definitions and declarations that are provided by
60974         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
60975
60976 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60977
60978         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
60979         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
60980         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
60981         definition.
60982
60983 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60984
60985         * elf/elf.h: Update comment before AArch64 relocations.
60986
60987 2012-11-07  David S. Miller  <davem@davemloft.net>
60988
60989         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
60990         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
60991         (__start_context): Declare.
60992         (__makecontext_ret): Delete.
60993         (__makecontext): Hook up __start_context instead of
60994         __makecontext_ret.
60995         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
60996         (sysdep_routines): Add __start_context when in stdlib.
60997
60998 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
60999
61000         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
61001         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
61002         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
61003         hardcoded "nm".
61004         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
61005         (READELF): New variable.  Use it instead of hardcoded "readelf".
61006
61007 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
61008
61009         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
61010         * sysdeps/x86/Makefile: Here.
61011         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
61012         * sysdeps/x86/tst-xmmymm.sh: This.
61013
61014 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61015
61016         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
61017         expectations.
61018         [UNIX98] (pthread_barrier_t): Do not expect.
61019         [UNIX98] (pthread_barrierattr_t): Likewise.
61020         [UNIX98] (pthread_spinlock_t): Likewise.
61021         [UNIX98] (pthread_barrier_destroy): Likewise.
61022         [UNIX98] (pthread_barrier_init): Likewise.
61023         [UNIX98] (pthread_barrier_wait): Likewise.
61024         [UNIX98] (pthread_barrierattr_destroy): Likewise.
61025         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
61026         [UNIX98] (pthread_barrierattr_init): Likewise.
61027         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
61028         [UNIX98] (pthread_getcpuclockid): Likewise.
61029         [UNIX98] (pthread_mutex_timedlock): Likewise.
61030         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
61031         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
61032         [UNIX98] (pthread_sigmask): Likewise.
61033         [UNIX98] (pthread_spin_destroy): Likewise.
61034         [UNIX98] (pthread_spin_init): Likewise.
61035         [UNIX98] (pthread_spin_lock): Likewise.
61036         [UNIX98] (pthread_spin_trylock): Likewise.
61037         [UNIX98] (pthread_spin_unlock): Likewise.
61038         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
61039         Do not expect.
61040         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
61041         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
61042         [XPG3 || XPG4] (pthread_cond_t): Likewise.
61043         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
61044         [XPG3 || XPG4] (pthread_key_t): Likewise.
61045         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
61046         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
61047         [XPG3 || XPG4] (pthread_once_t): Likewise.
61048         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
61049         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
61050         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
61051         [XPG3 || XPG4] (pthread_t): Likewise.
61052
61053         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
61054         not expect.
61055         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
61056
61057         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
61058         Change function return type to int.
61059
61060         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
61061         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
61062         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
61063         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
61064         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
61065         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
61066         [!POSIX] (posix_madvise): Likewise.
61067         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
61068         && !UNIX98].
61069         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
61070         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
61071         (mode_t): Likewise.
61072         (posix_mem_offset): Likewise.
61073         (posix_typed_mem_get_info): Likewise.
61074         (posix_typed_mem_open): Likewise.
61075
61076         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
61077         Change condition to [XOPEN2K8].
61078
61079         * conform/conformtest.pl: Preprocess allow-header data with -x c
61080         instead of from stdin.
61081         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
61082         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
61083         [C99-based standards] (cerfc): Likewise.
61084         [C99-based standards] (cexp2): Likewise.
61085         [C99-based standards] (cexpm1): Likewise.
61086         [C99-based standards] (clog10): Likewise.
61087         [C99-based standards] (clog1p): Likewise.
61088         [C99-based standards] (clog2): Likewise.
61089         [C99-based standards] (clgamma): Likewise.
61090         [C99-based standards] (ctgamma): Likewise.
61091         [C99-based standards] (cerff): Likewise.
61092         [C99-based standards] (cerfcf): Likewise.
61093         [C99-based standards] (cexp2f): Likewise.
61094         [C99-based standards] (cexpm1f): Likewise.
61095         [C99-based standards] (clog10f): Likewise.
61096         [C99-based standards] (clog1pf): Likewise.
61097         [C99-based standards] (clog2f): Likewise.
61098         [C99-based standards] (clgammaf): Likewise.
61099         [C99-based standards] (ctgammaf): Likewise.
61100         [C99-based standards] (cerfl): Likewise.
61101         [C99-based standards] (cerfcl): Likewise.
61102         [C99-based standards] (cexp2l): Likewise.
61103         [C99-based standards] (cexpm1l): Likewise.
61104         [C99-based standards] (clog10l): Likewise.
61105         [C99-based standards] (clog1pl): Likewise.
61106         [C99-based standards] (clog2l): Likewise.
61107         [C99-based standards] (clgammal): Likewise.
61108         [C99-based standards] (ctgammal): Likewise.
61109         * conform/data/inttypes.h-data [C99-based standards]: Include
61110         stdint.h-data.  Remove all expectations for stdint.h contents.
61111         [C99-based standards] (PRI*): Do not allow.
61112         [C99-based standards] (SCN*): Likewise.
61113         [C99-based standards] (*_t): Likewise.
61114         [C99-based-standards] (PRId8): Expect macro.
61115         [C99-based-standards] (PRIi8): Likewise.
61116         [C99-based-standards] (PRIo8): Likewise.
61117         [C99-based-standards] (PRIu8): Likewise.
61118         [C99-based-standards] (PRIx8): Likewise.
61119         [C99-based-standards] (PRIX8): Likewise.
61120         [C99-based-standards] (SCNd8): Likewise.
61121         [C99-based-standards] (SCNi8): Likewise.
61122         [C99-based-standards] (SCNo8): Likewise.
61123         [C99-based-standards] (SCNu8): Likewise.
61124         [C99-based-standards] (SCNx8): Likewise.
61125         [C99-based-standards] (PRIdLEAST8): Likewise.
61126         [C99-based-standards] (PRIiLEAST8): Likewise.
61127         [C99-based-standards] (PRIoLEAST8): Likewise.
61128         [C99-based-standards] (PRIuLEAST8): Likewise.
61129         [C99-based-standards] (PRIxLEAST8): Likewise.
61130         [C99-based-standards] (PRIXLEAST8): Likewise.
61131         [C99-based-standards] (SCNdLEAST8): Likewise.
61132         [C99-based-standards] (SCNiLEAST8): Likewise.
61133         [C99-based-standards] (SCNoLEAST8): Likewise.
61134         [C99-based-standards] (SCNuLEAST8): Likewise.
61135         [C99-based-standards] (SCNxLEAST8): Likewise.
61136         [C99-based-standards] (PRIdFAST8): Likewise.
61137         [C99-based-standards] (PRIiFAST8): Likewise.
61138         [C99-based-standards] (PRIoFAST8): Likewise.
61139         [C99-based-standards] (PRIuFAST8): Likewise.
61140         [C99-based-standards] (PRIxFAST8): Likewise.
61141         [C99-based-standards] (PRIXFAST8): Likewise.
61142         [C99-based-standards] (SCNdFAST8): Likewise.
61143         [C99-based-standards] (SCNiFAST8): Likewise.
61144         [C99-based-standards] (SCNoFAST8): Likewise.
61145         [C99-based-standards] (SCNuFAST8): Likewise.
61146         [C99-based-standards] (SCNxFAST8): Likewise.
61147         [C99-based-standards] (PRId16): Likewise.
61148         [C99-based-standards] (PRIi16): Likewise.
61149         [C99-based-standards] (PRIo16): Likewise.
61150         [C99-based-standards] (PRIu16): Likewise.
61151         [C99-based-standards] (PRIx16): Likewise.
61152         [C99-based-standards] (PRIX16): Likewise.
61153         [C99-based-standards] (SCNd16): Likewise.
61154         [C99-based-standards] (SCNi16): Likewise.
61155         [C99-based-standards] (SCNo16): Likewise.
61156         [C99-based-standards] (SCNu16): Likewise.
61157         [C99-based-standards] (SCNx16): Likewise.
61158         [C99-based-standards] (PRIdLEAST16): Likewise.
61159         [C99-based-standards] (PRIiLEAST16): Likewise.
61160         [C99-based-standards] (PRIoLEAST16): Likewise.
61161         [C99-based-standards] (PRIuLEAST16): Likewise.
61162         [C99-based-standards] (PRIxLEAST16): Likewise.
61163         [C99-based-standards] (PRIXLEAST16): Likewise.
61164         [C99-based-standards] (SCNdLEAST16): Likewise.
61165         [C99-based-standards] (SCNiLEAST16): Likewise.
61166         [C99-based-standards] (SCNoLEAST16): Likewise.
61167         [C99-based-standards] (SCNuLEAST16): Likewise.
61168         [C99-based-standards] (SCNxLEAST16): Likewise.
61169         [C99-based-standards] (PRIdFAST16): Likewise.
61170         [C99-based-standards] (PRIiFAST16): Likewise.
61171         [C99-based-standards] (PRIoFAST16): Likewise.
61172         [C99-based-standards] (PRIuFAST16): Likewise.
61173         [C99-based-standards] (PRIxFAST16): Likewise.
61174         [C99-based-standards] (PRIXFAST16): Likewise.
61175         [C99-based-standards] (SCNdFAST16): Likewise.
61176         [C99-based-standards] (SCNiFAST16): Likewise.
61177         [C99-based-standards] (SCNoFAST16): Likewise.
61178         [C99-based-standards] (SCNuFAST16): Likewise.
61179         [C99-based-standards] (SCNxFAST16): Likewise.
61180         [C99-based-standards] (PRId32): Likewise.
61181         [C99-based-standards] (PRIi32): Likewise.
61182         [C99-based-standards] (PRIo32): Likewise.
61183         [C99-based-standards] (PRIu32): Likewise.
61184         [C99-based-standards] (PRIx32): Likewise.
61185         [C99-based-standards] (PRIX32): Likewise.
61186         [C99-based-standards] (SCNd32): Likewise.
61187         [C99-based-standards] (SCNi32): Likewise.
61188         [C99-based-standards] (SCNo32): Likewise.
61189         [C99-based-standards] (SCNu32): Likewise.
61190         [C99-based-standards] (SCNx32): Likewise.
61191         [C99-based-standards] (PRIdLEAST32): Likewise.
61192         [C99-based-standards] (PRIiLEAST32): Likewise.
61193         [C99-based-standards] (PRIoLEAST32): Likewise.
61194         [C99-based-standards] (PRIuLEAST32): Likewise.
61195         [C99-based-standards] (PRIxLEAST32): Likewise.
61196         [C99-based-standards] (PRIXLEAST32): Likewise.
61197         [C99-based-standards] (SCNdLEAST32): Likewise.
61198         [C99-based-standards] (SCNiLEAST32): Likewise.
61199         [C99-based-standards] (SCNoLEAST32): Likewise.
61200         [C99-based-standards] (SCNuLEAST32): Likewise.
61201         [C99-based-standards] (SCNxLEAST32): Likewise.
61202         [C99-based-standards] (PRIdFAST32): Likewise.
61203         [C99-based-standards] (PRIiFAST32): Likewise.
61204         [C99-based-standards] (PRIoFAST32): Likewise.
61205         [C99-based-standards] (PRIuFAST32): Likewise.
61206         [C99-based-standards] (PRIxFAST32): Likewise.
61207         [C99-based-standards] (PRIXFAST32): Likewise.
61208         [C99-based-standards] (SCNdFAST32): Likewise.
61209         [C99-based-standards] (SCNiFAST32): Likewise.
61210         [C99-based-standards] (SCNoFAST32): Likewise.
61211         [C99-based-standards] (SCNuFAST32): Likewise.
61212         [C99-based-standards] (SCNxFAST32): Likewise.
61213         [C99-based-standards] (PRId64): Likewise.
61214         [C99-based-standards] (PRIi64): Likewise.
61215         [C99-based-standards] (PRIo64): Likewise.
61216         [C99-based-standards] (PRIu64): Likewise.
61217         [C99-based-standards] (PRIx64): Likewise.
61218         [C99-based-standards] (PRIX64): Likewise.
61219         [C99-based-standards] (SCNd64): Likewise.
61220         [C99-based-standards] (SCNi64): Likewise.
61221         [C99-based-standards] (SCNo64): Likewise.
61222         [C99-based-standards] (SCNu64): Likewise.
61223         [C99-based-standards] (SCNx64): Likewise.
61224         [C99-based-standards] (PRIdLEAST64): Likewise.
61225         [C99-based-standards] (PRIiLEAST64): Likewise.
61226         [C99-based-standards] (PRIoLEAST64): Likewise.
61227         [C99-based-standards] (PRIuLEAST64): Likewise.
61228         [C99-based-standards] (PRIxLEAST64): Likewise.
61229         [C99-based-standards] (PRIXLEAST64): Likewise.
61230         [C99-based-standards] (SCNdLEAST64): Likewise.
61231         [C99-based-standards] (SCNiLEAST64): Likewise.
61232         [C99-based-standards] (SCNoLEAST64): Likewise.
61233         [C99-based-standards] (SCNuLEAST64): Likewise.
61234         [C99-based-standards] (SCNxLEAST64): Likewise.
61235         [C99-based-standards] (PRIdFAST64): Likewise.
61236         [C99-based-standards] (PRIiFAST64): Likewise.
61237         [C99-based-standards] (PRIoFAST64): Likewise.
61238         [C99-based-standards] (PRIuFAST64): Likewise.
61239         [C99-based-standards] (PRIxFAST64): Likewise.
61240         [C99-based-standards] (PRIXFAST64): Likewise.
61241         [C99-based-standards] (SCNdFAST64): Likewise.
61242         [C99-based-standards] (SCNiFAST64): Likewise.
61243         [C99-based-standards] (SCNoFAST64): Likewise.
61244         [C99-based-standards] (SCNuFAST64): Likewise.
61245         [C99-based-standards] (SCNxFAST64): Likewise.
61246         [C99-based-standards] (PRIdMAX): Likewise.
61247         [C99-based-standards] (PRIiMAX): Likewise.
61248         [C99-based-standards] (PRIoMAX): Likewise.
61249         [C99-based-standards] (PRIuMAX): Likewise.
61250         [C99-based-standards] (PRIxMAX): Likewise.
61251         [C99-based-standards] (PRIXMAX): Likewise.
61252         [C99-based-standards] (SCNdMAX): Likewise.
61253         [C99-based-standards] (SCNiMAX): Likewise.
61254         [C99-based-standards] (SCNoMAX): Likewise.
61255         [C99-based-standards] (SCNuMAX): Likewise.
61256         [C99-based-standards] (SCNxMAX): Likewise.
61257         [C99-based-standards] (PRIdPTR): Likewise.
61258         [C99-based-standards] (PRIiPTR): Likewise.
61259         [C99-based-standards] (PRIoPTR): Likewise.
61260         [C99-based-standards] (PRIuPTR): Likewise.
61261         [C99-based-standards] (PRIxPTR): Likewise.
61262         [C99-based-standards] (PRIXPTR): Likewise.
61263         [C99-based-standards] (SCNdPTR): Likewise.
61264         [C99-based-standards] (SCNiPTR): Likewise.
61265         [C99-based-standards] (SCNoPTR): Likewise.
61266         [C99-based-standards] (SCNuPTR): Likewise.
61267         [C99-based-standards] (SCNxPTR): Likewise.
61268         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
61269         allow.
61270         * conform/data/stdint.h-data: Update comments to clarify
61271         requirements.
61272         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
61273         type.
61274         [C99-based standards] (INT8_MAX): Likewise.
61275         [C99-based standards] (INT16_MIN): Likewise.
61276         [C99-based standards] (INT16_MAX): Likewise.
61277         [C99-based standards] (INT32_MIN): Likewise.
61278         [C99-based standards] (INT32_MAX): Likewise.
61279         [C99-based standards] (INT64_MIN): Likewise.
61280         [C99-based standards] (INT64_MAX): Likewise.
61281         [C99-based standards] (UINT8_MAX): Likewise.
61282         [C99-based standards] (UINT16_MAX): Likewise.
61283         [C99-based standards] (UINT32_MAX): Likewise.
61284         [C99-based standards] (UINT64_MAX): Likewise.
61285         [C99-based standards] (INT_LEAST8_MIN): Likewise.
61286         [C99-based standards] (INT_LEAST8_MAX): Likewise.
61287         [C99-based standards] (INT_LEAST16_MIN): Likewise.
61288         [C99-based standards] (INT_LEAST16_MAX): Likewise.
61289         [C99-based standards] (INT_LEAST32_MIN): Likewise.
61290         [C99-based standards] (INT_LEAST32_MAX): Likewise.
61291         [C99-based standards] (INT_LEAST64_MIN): Likewise.
61292         [C99-based standards] (INT_LEAST64_MAX): Likewise.
61293         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
61294         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
61295         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
61296         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
61297         [C99-based standards] (INT_FAST8_MIN): Likewise.
61298         [C99-based standards] (INT_FAST8_MAX): Likewise.
61299         [C99-based standards] (INT_FAST16_MIN): Likewise.
61300         [C99-based standards] (INT_FAST16_MAX): Likewise.
61301         [C99-based standards] (INT_FAST32_MIN): Likewise.
61302         [C99-based standards] (INT_FAST32_MAX): Likewise.
61303         [C99-based standards] (INT_FAST64_MIN): Likewise.
61304         [C99-based standards] (INT_FAST64_MAX): Likewise.
61305         [C99-based standards] (UINT_FAST8_MAX): Likewise.
61306         [C99-based standards] (UINT_FAST16_MAX): Likewise.
61307         [C99-based standards] (UINT_FAST32_MAX): Likewise.
61308         [C99-based standards] (UINT_FAST64_MAX): Likewise.
61309         [C99-based standards] (INTPTR_MIN): Likewise.
61310         [C99-based standards] (INTPTR_MAX): Likewise.
61311         [C99-based standards] (UINTPTR_MAX): Likewise.
61312         [C99-based standards] (INTMAX_MIN): Likewise.
61313         [C99-based standards] (INTMAX_MAX): Likewise.
61314         [C99-based standards] (UINTMAX_MAX): Likewise.
61315         [C99-based standards] (PTRDIFF_MIN): Likewise.
61316         [C99-based standards] (PTRDIFF_MAX): Likewise.
61317         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
61318         [C99-based standards] (SIZE_MAX): Likewise.
61319         [C99-based standards] (WCHAR_MAX): Likewise.
61320         [C99-based standards] (WINT_MAX): Likewise.
61321         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
61322         constraint on value.
61323         [C99-based standards] (WCHAR_MIN): Likewise.
61324         [C99-based standards] (WINT_MIN): Likewise.
61325         [C99-based standards] (*_t): Allow.
61326         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
61327         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
61328         Include math.h-data and complex.h-data.  Remove all expectations
61329         of math.h and complex.h contents.
61330         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
61331         at end of line.
61332         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
61333         (struct tm): Expect tag.
61334         [C99-based-standards] (wcstof): Expect function.
61335         [C99-based-standards] (wcstold): Likewise.
61336         [C99-based-standards] (wcstoll): Likewise.
61337         [C99-based-standards] (wcstoull): Likewise.
61338         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
61339         macro-int-constant.  Specify type.
61340         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
61341         constraint on value.
61342         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61343         Specify type.
61344         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
61345         Specify value.
61346         [ISO C standards]: Do not allow headers.
61347         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
61348         wcs[abcdefghijklmnopqrstuvwxyz]*.
61349         [ISO C standards] (*_t): Do not allow.
61350         * conform/data/wctype.h-data [C99-based standards] (iswblank):
61351         Expect function.
61352         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
61353         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61354         Specify type.
61355         [ISO C standards]: Do not allow headers.
61356         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
61357         is[abcdefghijklmnopqrstuvwxyz]*.
61358         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
61359         to[abcdefghijklmnopqrstuvwxyz]*.
61360         [ISO C standards] (*_t): Do not allow.
61361         * conform/data/stdalign.h-data: New file.
61362         * conform/data/stdbool.h-data: Likewise.
61363         * conform/data/stdnoreturn.h-data: Likewise.
61364
61365 2012-11-07  Roland McGrath  <roland@hack.frob.com>
61366
61367         [BZ #14815]
61368         * manual/filesys.texi (Directory Entries): Typo fix.
61369         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
61370
61371 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61372
61373         * elf/elf.h (EM_AARCH64): New macro.
61374         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
61375         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
61376         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
61377         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
61378         (R_AARCH64_TLSDESC): Likewise.
61379         (NT_ARM_TLS): Likewise.
61380         (NT_ARM_HW_BREAK): Likewise.
61381         (NT_ARM_HW_WATCH): Likewise.
61382
61383 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61384
61385         [BZ #14811]
61386         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
61387         (__ieee754_powl): Saturate nonzero exponents with absolute value
61388         below 0x1p-79 to +/- 0x1p-79.
61389         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
61390         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
61391         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
61392         nonzero exponents with absolute value below 0x1p-32 to +/-
61393         0x1p-32.
61394         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
61395         (__ieee754_powl): Saturate nonzero exponents with absolute value
61396         below 0x1p-79 to +/- 0x1p-79.
61397         * math/libm-test.inc (pow_test): Add more tests.
61398
61399 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61400
61401         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
61402         _dl_s390_cap_flags with kernel. Increase string length.
61403         (_dl_s390_platforms): Add z196 and zEC12.
61404
61405 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61406
61407         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
61408         Change XOPEN21K to XOPEN2K.
61409
61410 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
61411
61412         * string/memmove.c: Use memcpy when possible.
61413
61414 2012-11-06  Andreas Jaeger  <aj@suse.de>
61415
61416         * po/eo.po: Update from translation team.
61417
61418 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
61419
61420         [BZ #14793]
61421         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
61422         exponent and small x and y exponents, scale x or y up.  Increase
61423         by 2 the exponent used in scaling up.
61424         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61425         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61426         * math/libm-test.inc (fma_test): Add more tests.
61427         (fma_test_towardzero): Likewise.
61428         (fma_test_downward): Likewise.
61429         (fma_test_upward): Likewise.
61430
61431 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
61432
61433         [BZ #14805]
61434         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
61435         fenv_t *.
61436
61437         [BZ #14801]
61438         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
61439         namespace for names of struct fields.
61440         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
61441         fenv_t fields.
61442         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
61443         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
61444
61445 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
61446
61447         [BZ #3665]
61448         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
61449
61450 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61451
61452         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
61453         PTR_DEMANGLE.
61454
61455         [BZ #5246]
61456         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
61457         PTR_DEMANGLE.
61458
61459 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
61460
61461         [BZ #14797]
61462         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
61463         definitely overflow as x * y not x * y + z.
61464         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61465         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61466         * math/libm-test.inc (fma_test): Add more tests.
61467         (fma_test_towardzero): Likewise.
61468         (fma_test_downward): Likewise.
61469         (fma_test_upward): Likewise.
61470
61471 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61472
61473         [BZ #157]
61474
61475         * include/stub-tag.h: Remove file.
61476         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
61477         '#include' of it.
61478         * manual/maint.texi (Porting): Don't reference it.
61479         * Makerules ($(objpfx)stubs): Likewise.
61480         * dirent/closedir.c: Don't include <stub-tag.h>.
61481         * dirent/dirfd.c: Likewise.
61482         * dirent/fdopendir.c: Likewise.
61483         * dirent/getdents.c: Likewise.
61484         * dirent/getdents64.c: Likewise.
61485         * dirent/opendir.c: Likewise.
61486         * dirent/readdir.c: Likewise.
61487         * dirent/readdir64.c: Likewise.
61488         * dirent/readdir64_r.c: Likewise.
61489         * dirent/readdir_r.c: Likewise.
61490         * dirent/rewinddir.c: Likewise.
61491         * dirent/seekdir.c: Likewise.
61492         * dirent/telldir.c: Likewise.
61493         * gmon/profil.c: Likewise.
61494         * grp/setgroups.c: Likewise.
61495         * inet/if_index.c: Likewise.
61496         * io/access.c: Likewise.
61497         * io/chdir.c: Likewise.
61498         * io/chmod.c: Likewise.
61499         * io/chown.c: Likewise.
61500         * io/close.c: Likewise.
61501         * io/dup.c: Likewise.
61502         * io/dup2.c: Likewise.
61503         * io/dup3.c: Likewise.
61504         * io/euidaccess.c: Likewise.
61505         * io/faccessat.c: Likewise.
61506         * io/fchdir.c: Likewise.
61507         * io/fchmod.c: Likewise.
61508         * io/fchmodat.c: Likewise.
61509         * io/fchown.c: Likewise.
61510         * io/fchownat.c: Likewise.
61511         * io/fcntl.c: Likewise.
61512         * io/flock.c: Likewise.
61513         * io/fstatfs.c: Likewise.
61514         * io/fstatfs64.c: Likewise.
61515         * io/fstatvfs.c: Likewise.
61516         * io/fstatvfs64.c: Likewise.
61517         * io/futimens.c: Likewise.
61518         * io/fxstat.c: Likewise.
61519         * io/fxstat64.c: Likewise.
61520         * io/fxstatat.c: Likewise.
61521         * io/fxstatat64.c: Likewise.
61522         * io/getcwd.c: Likewise.
61523         * io/isatty.c: Likewise.
61524         * io/lchmod.c: Likewise.
61525         * io/lchown.c: Likewise.
61526         * io/link.c: Likewise.
61527         * io/linkat.c: Likewise.
61528         * io/lseek.c: Likewise.
61529         * io/lseek64.c: Likewise.
61530         * io/lxstat64.c: Likewise.
61531         * io/mkdir.c: Likewise.
61532         * io/mkdirat.c: Likewise.
61533         * io/mkfifo.c: Likewise.
61534         * io/mkfifoat.c: Likewise.
61535         * io/open.c: Likewise.
61536         * io/open64.c: Likewise.
61537         * io/openat.c: Likewise.
61538         * io/openat64.c: Likewise.
61539         * io/pipe.c: Likewise.
61540         * io/pipe2.c: Likewise.
61541         * io/poll.c: Likewise.
61542         * io/posix_fadvise.c: Likewise.
61543         * io/posix_fadvise64.c: Likewise.
61544         * io/posix_fallocate.c: Likewise.
61545         * io/posix_fallocate64.c: Likewise.
61546         * io/read.c: Likewise.
61547         * io/readlink.c: Likewise.
61548         * io/readlinkat.c: Likewise.
61549         * io/rmdir.c: Likewise.
61550         * io/sendfile.c: Likewise.
61551         * io/sendfile64.c: Likewise.
61552         * io/statfs.c: Likewise.
61553         * io/statfs64.c: Likewise.
61554         * io/statvfs.c: Likewise.
61555         * io/statvfs64.c: Likewise.
61556         * io/symlink.c: Likewise.
61557         * io/symlinkat.c: Likewise.
61558         * io/ttyname.c: Likewise.
61559         * io/ttyname_r.c: Likewise.
61560         * io/umask.c: Likewise.
61561         * io/unlink.c: Likewise.
61562         * io/unlinkat.c: Likewise.
61563         * io/utime.c: Likewise.
61564         * io/utimensat.c: Likewise.
61565         * io/write.c: Likewise.
61566         * io/xmknod.c: Likewise.
61567         * io/xmknodat.c: Likewise.
61568         * io/xstat.c: Likewise.
61569         * io/xstat64.c: Likewise.
61570         * login/getpt.c: Likewise.
61571         * login/grantpt.c: Likewise.
61572         * login/unlockpt.c: Likewise.
61573         * math/e_acoshl.c: Likewise.
61574         * math/e_acosl.c: Likewise.
61575         * math/e_asinl.c: Likewise.
61576         * math/e_atan2l.c: Likewise.
61577         * math/e_atanhl.c: Likewise.
61578         * math/e_coshl.c: Likewise.
61579         * math/e_expl.c: Likewise.
61580         * math/e_fmodl.c: Likewise.
61581         * math/e_gammal_r.c: Likewise.
61582         * math/e_hypotl.c: Likewise.
61583         * math/e_j0l.c: Likewise.
61584         * math/e_j1l.c: Likewise.
61585         * math/e_jnl.c: Likewise.
61586         * math/e_lgammal_r.c: Likewise.
61587         * math/e_log10l.c: Likewise.
61588         * math/e_log2l.c: Likewise.
61589         * math/e_logl.c: Likewise.
61590         * math/e_powl.c: Likewise.
61591         * math/e_rem_pio2l.c: Likewise.
61592         * math/e_sinhl.c: Likewise.
61593         * math/e_sqrtl.c: Likewise.
61594         * math/fclrexcpt.c: Likewise.
61595         * math/fedisblxcpt.c: Likewise.
61596         * math/feenablxcpt.c: Likewise.
61597         * math/fegetenv.c: Likewise.
61598         * math/fegetexcept.c: Likewise.
61599         * math/fegetround.c: Likewise.
61600         * math/feholdexcpt.c: Likewise.
61601         * math/fesetenv.c: Likewise.
61602         * math/fesetround.c: Likewise.
61603         * math/feupdateenv.c: Likewise.
61604         * math/fgetexcptflg.c: Likewise.
61605         * math/fraiseexcpt.c: Likewise.
61606         * math/fsetexcptflg.c: Likewise.
61607         * math/ftestexcept.c: Likewise.
61608         * math/k_cosl.c: Likewise.
61609         * math/k_rem_pio2l.c: Likewise.
61610         * math/k_sinl.c: Likewise.
61611         * math/k_tanl.c: Likewise.
61612         * math/s_asinhl.c: Likewise.
61613         * math/s_atanl.c: Likewise.
61614         * math/s_cbrtl.c: Likewise.
61615         * math/s_erfl.c: Likewise.
61616         * math/s_expm1l.c: Likewise.
61617         * math/s_log1pl.c: Likewise.
61618         * math/s_tanhl.c: Likewise.
61619         * misc/acct.c: Likewise.
61620         * misc/brk.c: Likewise.
61621         * misc/chflags.c: Likewise.
61622         * misc/chroot.c: Likewise.
61623         * misc/fchflags.c: Likewise.
61624         * misc/fgetxattr.c: Likewise.
61625         * misc/flistxattr.c: Likewise.
61626         * misc/fremovexattr.c: Likewise.
61627         * misc/fsetxattr.c: Likewise.
61628         * misc/fsync.c: Likewise.
61629         * misc/ftruncate.c: Likewise.
61630         * misc/futimes.c: Likewise.
61631         * misc/futimesat.c: Likewise.
61632         * misc/getdomain.c: Likewise.
61633         * misc/getdtsz.c: Likewise.
61634         * misc/gethostid.c: Likewise.
61635         * misc/gethostname.c: Likewise.
61636         * misc/getloadavg.c: Likewise.
61637         * misc/getpagesize.c: Likewise.
61638         * misc/getsysstats.c: Likewise.
61639         * misc/getxattr.c: Likewise.
61640         * misc/gtty.c: Likewise.
61641         * misc/ioctl.c: Likewise.
61642         * misc/lgetxattr.c: Likewise.
61643         * misc/listxattr.c: Likewise.
61644         * misc/llistxattr.c: Likewise.
61645         * misc/lremovexattr.c: Likewise.
61646         * misc/lsetxattr.c: Likewise.
61647         * misc/lutimes.c: Likewise.
61648         * misc/madvise.c: Likewise.
61649         * misc/mincore.c: Likewise.
61650         * misc/mlock.c: Likewise.
61651         * misc/mlockall.c: Likewise.
61652         * misc/mmap.c: Likewise.
61653         * misc/mprotect.c: Likewise.
61654         * misc/msync.c: Likewise.
61655         * misc/munlock.c: Likewise.
61656         * misc/munlockall.c: Likewise.
61657         * misc/munmap.c: Likewise.
61658         * misc/preadv.c: Likewise.
61659         * misc/preadv64.c: Likewise.
61660         * misc/ptrace.c: Likewise.
61661         * misc/pwritev.c: Likewise.
61662         * misc/pwritev64.c: Likewise.
61663         * misc/readv.c: Likewise.
61664         * misc/reboot.c: Likewise.
61665         * misc/remap_file_pages.c: Likewise.
61666         * misc/removexattr.c: Likewise.
61667         * misc/revoke.c: Likewise.
61668         * misc/select.c: Likewise.
61669         * misc/setdomain.c: Likewise.
61670         * misc/setegid.c: Likewise.
61671         * misc/seteuid.c: Likewise.
61672         * misc/sethostid.c: Likewise.
61673         * misc/sethostname.c: Likewise.
61674         * misc/setregid.c: Likewise.
61675         * misc/setreuid.c: Likewise.
61676         * misc/setxattr.c: Likewise.
61677         * misc/sstk.c: Likewise.
61678         * misc/stty.c: Likewise.
61679         * misc/swapoff.c: Likewise.
61680         * misc/swapon.c: Likewise.
61681         * misc/sync.c: Likewise.
61682         * misc/syncfs.c: Likewise.
61683         * misc/syscall.c: Likewise.
61684         * misc/truncate.c: Likewise.
61685         * misc/ualarm.c: Likewise.
61686         * misc/usleep.c: Likewise.
61687         * misc/ustat.c: Likewise.
61688         * misc/utimes.c: Likewise.
61689         * misc/vhangup.c: Likewise.
61690         * misc/writev.c: Likewise.
61691         * posix/_exit.c: Likewise.
61692         * posix/alarm.c: Likewise.
61693         * posix/execve.c: Likewise.
61694         * posix/fexecve.c: Likewise.
61695         * posix/fork.c: Likewise.
61696         * posix/fpathconf.c: Likewise.
61697         * posix/getaddrinfo.c: Likewise.
61698         * posix/getegid.c: Likewise.
61699         * posix/geteuid.c: Likewise.
61700         * posix/getgid.c: Likewise.
61701         * posix/getgroups.c: Likewise.
61702         * posix/getlogin.c: Likewise.
61703         * posix/getlogin_r.c: Likewise.
61704         * posix/getpgid.c: Likewise.
61705         * posix/getpid.c: Likewise.
61706         * posix/getppid.c: Likewise.
61707         * posix/getresgid.c: Likewise.
61708         * posix/getresuid.c: Likewise.
61709         * posix/getsid.c: Likewise.
61710         * posix/getuid.c: Likewise.
61711         * posix/glob64.c: Likewise.
61712         * posix/nanosleep.c: Likewise.
61713         * posix/pathconf.c: Likewise.
61714         * posix/pause.c: Likewise.
61715         * posix/posix_madvise.c: Likewise.
61716         * posix/pread.c: Likewise.
61717         * posix/pread64.c: Likewise.
61718         * posix/pwrite.c: Likewise.
61719         * posix/pwrite64.c: Likewise.
61720         * posix/sched_getaffinity.c: Likewise.
61721         * posix/sched_getp.c: Likewise.
61722         * posix/sched_gets.c: Likewise.
61723         * posix/sched_primax.c: Likewise.
61724         * posix/sched_primin.c: Likewise.
61725         * posix/sched_rr_gi.c: Likewise.
61726         * posix/sched_setaffinity.c: Likewise.
61727         * posix/sched_setp.c: Likewise.
61728         * posix/sched_sets.c: Likewise.
61729         * posix/sched_yield.c: Likewise.
61730         * posix/setgid.c: Likewise.
61731         * posix/setlogin.c: Likewise.
61732         * posix/setpgid.c: Likewise.
61733         * posix/setresgid.c: Likewise.
61734         * posix/setresuid.c: Likewise.
61735         * posix/setsid.c: Likewise.
61736         * posix/setuid.c: Likewise.
61737         * posix/sleep.c: Likewise.
61738         * posix/spawni.c: Likewise.
61739         * posix/sysconf.c: Likewise.
61740         * posix/times.c: Likewise.
61741         * posix/wait.c: Likewise.
61742         * posix/wait3.c: Likewise.
61743         * posix/wait4.c: Likewise.
61744         * posix/waitpid.c: Likewise.
61745         * resolv/gai_sigqueue.c: Likewise.
61746         * resource/getpriority.c: Likewise.
61747         * resource/getrlimit.c: Likewise.
61748         * resource/getrusage.c: Likewise.
61749         * resource/nice.c: Likewise.
61750         * resource/setpriority.c: Likewise.
61751         * resource/setrlimit.c: Likewise.
61752         * resource/ulimit.c: Likewise.
61753         * rt/aio_cancel.c: Likewise.
61754         * rt/aio_fsync.c: Likewise.
61755         * rt/aio_read.c: Likewise.
61756         * rt/aio_sigqueue.c: Likewise.
61757         * rt/aio_suspend.c: Likewise.
61758         * rt/aio_write.c: Likewise.
61759         * rt/clock_getres.c: Likewise.
61760         * rt/clock_gettime.c: Likewise.
61761         * rt/clock_nanosleep.c: Likewise.
61762         * rt/clock_settime.c: Likewise.
61763         * rt/lio_listio.c: Likewise.
61764         * rt/mq_close.c: Likewise.
61765         * rt/mq_getattr.c: Likewise.
61766         * rt/mq_notify.c: Likewise.
61767         * rt/mq_open.c: Likewise.
61768         * rt/mq_receive.c: Likewise.
61769         * rt/mq_send.c: Likewise.
61770         * rt/mq_setattr.c: Likewise.
61771         * rt/mq_timedreceive.c: Likewise.
61772         * rt/mq_timedsend.c: Likewise.
61773         * rt/mq_unlink.c: Likewise.
61774         * rt/shm_open.c: Likewise.
61775         * rt/shm_unlink.c: Likewise.
61776         * rt/timer_create.c: Likewise.
61777         * rt/timer_delete.c: Likewise.
61778         * rt/timer_getoverr.c: Likewise.
61779         * rt/timer_gettime.c: Likewise.
61780         * rt/timer_settime.c: Likewise.
61781         * setjmp/__longjmp.c: Likewise.
61782         * setjmp/setjmp.c: Likewise.
61783         * signal/kill.c: Likewise.
61784         * signal/killpg.c: Likewise.
61785         * signal/raise.c: Likewise.
61786         * signal/sigaction.c: Likewise.
61787         * signal/sigaltstack.c: Likewise.
61788         * signal/sigblock.c: Likewise.
61789         * signal/sigignore.c: Likewise.
61790         * signal/sigintr.c: Likewise.
61791         * signal/signal.c: Likewise.
61792         * signal/sigpause.c: Likewise.
61793         * signal/sigpending.c: Likewise.
61794         * signal/sigqueue.c: Likewise.
61795         * signal/sigreturn.c: Likewise.
61796         * signal/sigset.c: Likewise.
61797         * signal/sigsetmask.c: Likewise.
61798         * signal/sigstack.c: Likewise.
61799         * signal/sigsuspend.c: Likewise.
61800         * signal/sigtimedwait.c: Likewise.
61801         * signal/sigvec.c: Likewise.
61802         * signal/sigwait.c: Likewise.
61803         * signal/sigwaitinfo.c: Likewise.
61804         * signal/sysv_signal.c: Likewise.
61805         * socket/accept.c: Likewise.
61806         * socket/accept4.c: Likewise.
61807         * socket/bind.c: Likewise.
61808         * socket/connect.c: Likewise.
61809         * socket/getpeername.c: Likewise.
61810         * socket/getsockname.c: Likewise.
61811         * socket/getsockopt.c: Likewise.
61812         * socket/isfdtype.c: Likewise.
61813         * socket/listen.c: Likewise.
61814         * socket/recv.c: Likewise.
61815         * socket/recvfrom.c: Likewise.
61816         * socket/recvmsg.c: Likewise.
61817         * socket/send.c: Likewise.
61818         * socket/sendmsg.c: Likewise.
61819         * socket/sendto.c: Likewise.
61820         * socket/setsockopt.c: Likewise.
61821         * socket/shutdown.c: Likewise.
61822         * socket/sockatmark.c: Likewise.
61823         * socket/socket.c: Likewise.
61824         * socket/socketpair.c: Likewise.
61825         * stdio-common/ctermid.c: Likewise.
61826         * stdio-common/cuserid.c: Likewise.
61827         * stdio-common/remove.c: Likewise.
61828         * stdio-common/rename.c: Likewise.
61829         * stdio-common/renameat.c: Likewise.
61830         * stdio-common/tempname.c: Likewise.
61831         * stdlib/getcontext.c: Likewise.
61832         * stdlib/makecontext.c: Likewise.
61833         * stdlib/setcontext.c: Likewise.
61834         * stdlib/swapcontext.c: Likewise.
61835         * stdlib/system.c: Likewise.
61836         * streams/fattach.c: Likewise.
61837         * streams/fdetach.c: Likewise.
61838         * streams/getmsg.c: Likewise.
61839         * streams/getpmsg.c: Likewise.
61840         * streams/putmsg.c: Likewise.
61841         * streams/putpmsg.c: Likewise.
61842         * sysdeps/unix/bsd/getpt.c: Likewise.
61843         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
61844         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
61845         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
61846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
61847         Likewise.
61848         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
61849         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
61850         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
61851         * sysvipc/msgctl.c: Likewise.
61852         * sysvipc/msgget.c: Likewise.
61853         * sysvipc/msgrcv.c: Likewise.
61854         * sysvipc/msgsnd.c: Likewise.
61855         * sysvipc/semctl.c: Likewise.
61856         * sysvipc/semget.c: Likewise.
61857         * sysvipc/semop.c: Likewise.
61858         * sysvipc/semtimedop.c: Likewise.
61859         * sysvipc/shmat.c: Likewise.
61860         * sysvipc/shmctl.c: Likewise.
61861         * sysvipc/shmdt.c: Likewise.
61862         * sysvipc/shmget.c: Likewise.
61863         * termios/tcdrain.c: Likewise.
61864         * termios/tcflow.c: Likewise.
61865         * termios/tcflush.c: Likewise.
61866         * termios/tcgetattr.c: Likewise.
61867         * termios/tcgetpgrp.c: Likewise.
61868         * termios/tcsendbrk.c: Likewise.
61869         * termios/tcsetattr.c: Likewise.
61870         * termios/tcsetpgrp.c: Likewise.
61871         * time/adjtime.c: Likewise.
61872         * time/clock.c: Likewise.
61873         * time/getitimer.c: Likewise.
61874         * time/gettimeofday.c: Likewise.
61875         * time/setitimer.c: Likewise.
61876         * time/settimeofday.c: Likewise.
61877         * time/stime.c: Likewise.
61878         * time/time.c: Likewise.
61879
61880 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
61881
61882         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
61883         /usr/old/bin.
61884
61885         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
61886         instead of spaces.
61887         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
61888
61889 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
61890
61891         [BZ #14796]
61892         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
61893         FE_TONEAREST before applying Dekker multiplication and Knuth
61894         addition.  Clear inexact exceptions and check for exact zero
61895         results afterwards.
61896         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61897         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
61898         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61899         * math/libm-test.inc (fma_test): Add more tests.
61900         (fma_test_towardzero): Likewise.
61901         (fma_test_downward): Likewise.
61902         (fma_test_upward): Likewise.
61903         * sysdeps/generic/math_private.h (default_libc_fesetround): New
61904         function.
61905         (libc_fesetround): New macro.
61906         (libc_fesetroundf): Likewise.
61907         (libc_fesetroundl): Likewise.
61908         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
61909         function.
61910         (libc_fesetround_387): Likewise.
61911         (libc_fesetroundf): New macro.
61912         (libc_fesetround): Likewise.
61913         (libc_fesetroundl): Likewise.
61914         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
61915         function.
61916         (libc_fesetroundf): New macro.
61917         (libc_fesetround): Likewise.
61918         (libc_fesetroundl): Likewise.
61919         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
61920         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
61921         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
61922         libm_hidden_ver.
61923         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
61924         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
61925         libm_hidden_def.
61926         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
61927         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
61928         libm_hidden_ver.
61929         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
61930         libm_hidden_def.
61931
61932         [BZ #3439]
61933         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
61934         integer constant usable in #if and use that to give value to enum
61935         constant.
61936         (FE_DIVBYZERO): Likewise.
61937         (FE_UNDERFLOW): Likewise.
61938         (FE_OVERFLOW): Likewise.
61939         (FE_INVALID): Likewise.
61940         (FE_INVALID_SNAN): Likewise.
61941         (FE_INVALID_ISI): Likewise.
61942         (FE_INVALID_IDI): Likewise.
61943         (FE_INVALID_ZDZ): Likewise.
61944         (FE_INVALID_IMZ): Likewise.
61945         (FE_INVALID_COMPARE): Likewise.
61946         (FE_INVALID_SOFTWARE): Likewise.
61947         (FE_INVALID_SQRT): Likewise.
61948         (FE_INVALID_INTEGER_CONVERSION): Likewise.
61949         (FE_TONEAREST): Likewise.
61950         (FE_TOWARDZERO): Likewise.
61951         (FE_UPWARD): Likewise.
61952         (FE_DOWNWARD): Likewise.
61953         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
61954         (FE_DIVBYZERO): Likewise.
61955         (FE_OVERFLOW): Likewise.
61956         (FE_UNDERFLOW): Likewise.
61957         (FE_INEXACT): Likewise.
61958         (FE_TONEAREST): Likewise.
61959         (FE_DOWNWARD): Likewise.
61960         (FE_UPWARD): Likewise.
61961         (FE_TOWARDZERO): Likewise.
61962         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
61963         (FE_UNDERFLOW): Likewise.
61964         (FE_OVERFLOW): Likewise.
61965         (FE_DIVBYZERO): Likewise.
61966         (FE_INVALID): Likewise.
61967         (FE_TONEAREST): Likewise.
61968         (FE_TOWARDZERO): Likewise.
61969         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
61970         (FE_OVERFLOW): Likewise.
61971         (FE_UNDERFLOW): Likewise.
61972         (FE_DIVBYZERO): Likewise.
61973         (FE_INEXACT): Likewise.
61974         (FE_TONEAREST): Likewise.
61975         (FE_TOWARDZERO): Likewise.
61976         (FE_UPWARD): Likewise.
61977         (FE_DOWNWARD): Likewise.
61978         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
61979         (FE_DIVBYZERO): Likewise.
61980         (FE_OVERFLOW): Likewise.
61981         (FE_UNDERFLOW): Likewise.
61982         (FE_INEXACT): Likewise.
61983         (FE_TONEAREST): Likewise.
61984         (FE_DOWNWARD): Likewise.
61985         (FE_UPWARD): Likewise.
61986         (FE_TOWARDZERO): Likewise.
61987
61988 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
61989
61990         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
61991
61992 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
61993
61994         * scripts/cross-test-ssh.sh (command): Use newlines to separate
61995         commands.  Quote $PWD.
61996         (blacklist_exports): Don't use remove_newlines.  Replace "declare
61997         -x" by "export".
61998         (remove_newlines): Remove.
61999
62000 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
62001
62002         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
62003         * stdlib/stdlib.h (atof): Moved to ...
62004         * include/bits/stdlib-float.h: Here.  New file.
62005         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
62006         * stdlib/bits/stdlib-float.h: New file.
62007         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
62008         -mno-sse -mno-mmx.
62009         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
62010         <xmmintrin.h>.
62011
62012 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62013
62014         * conform/conformtest.pl (@headers): Add fenv.h.
62015         * conform/data/fenv.h-data: New file.
62016         * include/fenv.h [_ISOMAC]: Disable all contents of file except
62017         include of <math/fenv.h>.
62018
62019         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
62020         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
62021         && !UNIX98].  Enables tests for XOPEN2K8.
62022         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
62023         POSIX2008]: Likewise.
62024
62025         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
62026         (struct rusage): Do not expect type or its members.
62027
62028         [BZ #3439]
62029         * math/math.h (FP_NAN): Define macro to integer constant usable in
62030         #if and use that to give value to enum constant.
62031         (FP_INFINITE): Likewise.
62032         (FP_ZERO): Likewise.
62033         (FP_SUBNORMAL): Likewise.
62034         (FP_NORMAL): Likewise.
62035
62036 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
62037
62038         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
62039         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
62040         arguments.
62041
62042 2012-11-02  Roland McGrath  <roland@hack.frob.com>
62043
62044         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
62045         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
62046         autoconf-time if not.
62047         * configure.in: Remove AC_PREREQ.
62048
62049 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62050
62051         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
62052         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
62053         of the internal implementation.
62054
62055 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62056
62057         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
62058         except include of <misc/sys/syslog.h>.
62059
62060 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62061
62062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
62063         function returns with a NULL context exit with zero.
62064
62065 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62066
62067         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
62068
62069 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
62070
62071         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
62072         (run_program_cmd): This.
62073         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
62074         (tst_langinfo): New variable.  Use it.
62075
62076 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
62077
62078         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
62079         floating point opcodes.
62080
62081 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62082
62083         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
62084         variable.
62085
62086         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
62087
62088         * sysdeps/mach/hurd/powerpc: Remove directory.
62089         * sysdeps/mach/powerpc: Likewise.
62090
62091 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62092
62093         * scripts/check-local-headers.sh: Ignore c++ headers.
62094
62095 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62096
62097         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
62098         __libc_cleanup_region_start argument.
62099
62100 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
62101
62102         [BZ #14784]
62103         [BZ #14785]
62104         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
62105         x * y using scaling, not as x * y + z.
62106         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62107         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62108         * math/libm-test.inc (fma_test): Add more tests.
62109         (fma_test_towardzero): Likewise.
62110         (fma_test_downward): Likewise.
62111         (fma_test_upward): Likewise.
62112
62113 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62114
62115         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
62116
62117 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62118
62119         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
62120         New variable.
62121
62122 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
62123
62124         * rt/tst-shm.c (worker): Correct checking for mmap failure.
62125
62126 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62127
62128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62129         Fix sort order.
62130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62131         Likewise.
62132
62133 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62134
62135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62136         Fix the order of the list for glibc 2.17.
62137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62138         Likewise.
62139
62140 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62141
62142         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62143
62144 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62145
62146         [BZ #14610]
62147         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
62148         for low part of x being zero before using __atanl (y).
62149         * math/libm-test.inc (atan2_test): Add another test.
62150
62151         * manual/install.texi (Configuring and compiling): Document
62152         general use of test-wrapper and test-wrapper-env.
62153         * INSTALL: Regenerated.
62154
62155         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
62156         (__fma): Do not extract and scale down low bits on after-rounding
62157         systems when result rounded to normal precision would have normal
62158         exponent.
62159         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
62160         (__fmal): Do not extract and scale down low bits on after-rounding
62161         systems when result rounded to normal precision would have normal
62162         exponent.
62163         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
62164         (__fmal): Do not extract and scale down low bits on after-rounding
62165         systems when result rounded to normal precision would have normal
62166         exponent.
62167         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
62168         macro.
62169         (fma_test): Add more tests.
62170         (fma_test_towardzero): Likewise.
62171         (fma_test_downward): Likewise.
62172         (fma_test_upward): Likewise.
62173
62174 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
62175
62176         * sysdeps/i386/tininess.h: Renamed to ...
62177         * sysdeps/x86/tininess.h: This.
62178         * sysdeps/x86_64/tininess.h: Removed.
62179
62180 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62181
62182         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
62183         input.  Use $(build-program-cmd).
62184         ($(objpfx)tst-array1-static.out): Likewise.
62185         ($(objpfx)tst-array2.out): Likewise.
62186         ($(objpfx)tst-array3.out): Likewise.
62187         ($(objpfx)tst-array4.out): Likewise.
62188         ($(objpfx)tst-array5.out): Likewise.
62189         ($(objpfx)tst-array5-static.out): Likewise.
62190
62191 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
62192
62193         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
62194         if defined.
62195
62196         * nss/nsswitch.h (nss_interface_function): Provide new
62197         macro for use with NSS functions.
62198         * grp/initgroups.c: Use new macro.
62199         * nss/getXXbyYY.c: Likewise.
62200         * nss/getXXbyYY_r.c: Likewise.
62201         * nss/getXXent.c: Likewise.
62202         * nss/getXXent_r.c: Likewise.
62203         * sysdeps/posix/getaddrinfo.c: Likewise.
62204
62205 2012-10-30  Andreas Jaeger  <aj@suse.de>
62206
62207         * po/ru.po: Update Russion translation from translation project.
62208
62209 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62210
62211         [BZ #14152]
62212         [BZ #14783]
62213         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
62214         result and shift together with sticky bit instead of replicating
62215         round-to-nearest rounding.
62216         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62217         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62218         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
62219         missing underflow exceptions.
62220         (fma_test_towardzero): Add more tests.
62221         (fma_test_downward): Likewise.
62222         (fma_test_upward): Likewise.
62223
62224         [BZ #14047]
62225         * sysdeps/generic/tininess.h: New file.
62226         * sysdeps/i386/tininess.h: Likewise.
62227         * sysdeps/sh/tininess.h: Likewise.
62228         * sysdeps/x86_64/tininess.h: Likewise.
62229         * stdlib/tst-strtod-underflow.c: Likewise.
62230         * stdlib/tst-tininess.c: Likewise.
62231         * stdlib/strtod_l.c: Include <tininess.h>.
62232         (round_and_return): Do not set errno for exact underflow cases.
62233         Force an underflow exception when setting errno for underflow.
62234         Determine underflow based on rounding to normal precision if
62235         TININESS_AFTER_ROUNDING.
62236         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
62237         ERANGE for exact underflow cases.
62238         * stdlib/Makefile (tests): Add tst-tininess and
62239         tst-strtod-underflow.
62240         ($(objpfx)tst-tininess): Use $(link-libm).
62241         ($(objpfx)tst-strtod-underflow): Likewise.
62242
62243 2012-10-30  Andreas Jaeger  <aj@suse.de>
62244
62245         [BZ#14767]
62246         * elf/Makefile (tests): Remove conditional for have-initfini-array
62247         since this is now always required and the variable does not exist
62248         anymore.
62249         (tests-static): Likewise.
62250         (modules-names): Likewise.
62251
62252         * po/eo.po: Add Esperanto translation from translation project.
62253
62254         * elf/tst-array1.c (fini_array): Make writeable so that it can be
62255         merged with constructor/destructor.
62256         (init_array): Likewise.
62257         * elf/tst-array2dep.c (fini_array): Likewise.
62258         (init_array): Likewise.
62259
62260 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
62261
62262         * manual/message.texi: Delete @cartouche tags.
62263
62264 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
62265
62266         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
62267         EOPNOTSUPP.
62268         * sysdeps/mach/hurd/fsync.c: Likewise.
62269
62270         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
62271         [_POSIX_REALTIME_SIGNALS]: Change condition to
62272         [_POSIX_REALTIME_SIGNALS > 0].
62273
62274 2012-10-27  Andreas Jaeger  <aj@suse.de>
62275
62276         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
62277         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
62278         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
62279         [__WORDSIZE != 64]: Likewise.
62280
62281 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
62282
62283         *  iconvdata/tst-table.sh: Remove ${SHELL}.
62284         *  iconvdata/tst-tables.sh: Likewise.
62285
62286 2012-10-25  David S. Miller  <davem@davemloft.net>
62287
62288         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62289         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
62290         of strtoull.
62291
62292         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
62293         ifunc-impl-list.c
62294         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
62295         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
62296         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
62297         file.
62298
62299 2012-10-25  Roland McGrath  <roland@hack.frob.com>
62300
62301         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62302         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
62303         __getdirentries.
62304
62305 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62306             Jim Blandy  <jimb@codesourcery.com>
62307
62308         * scripts/cross-test-ssh.sh: New file.
62309         * manual/install.texi (Configuring and compiling): Document use of
62310         cross-test-ssh.sh.
62311         * INSTALL: Regenerated.
62312
62313 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
62314
62315         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
62316         EOPNOTSUPP.
62317
62318 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62319
62320         * Makeconfig (run-program-prefix): Fix comment.
62321
62322 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62323             Jim Blandy  <jimb@codesourcery.com>
62324
62325         * Makeconfig (test-wrapper): New variable,
62326         (test-wrapper-env): Likewise.
62327         [$(cross-compiling) = yes && $(test-wrapper) != ""]
62328         (run-built-tests): Define to yes.
62329         (run-program-prefix): Use $(test-wrapper).
62330         (built-program-cmd): Likewise.
62331         * Rules (make-test-out): Use $(test-wrapper-env) and
62332         $(host-built-program-cmd).
62333         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
62334         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
62335         tst-pathopt.sh.
62336         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
62337         $(test-wrapper-env) to tst-rtld-load-self.sh.
62338         ($(objpfx)order2.out): Use $(test-wrapper).
62339         ($(objpfx)tst-initorder.out): Likewise.
62340         ($(objpfx)tst-initorder2.out): Likewise.
62341         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
62342         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
62343         (test_wrapper_env): New variable.  Use it to run ld.so.
62344         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
62345         Use it to run ld.so.
62346         (test_wrapper_env): Likewise.
62347         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
62348         $(test-wrapper) to run-iconv-test.sh.
62349         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
62350         (ICONV): Use $test_wrapper.
62351         * posix/Makefile ($(objpfx)globtest.out): Pass
62352         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
62353         globtest.sh, not $(run-program-prefix).
62354         * posix/globtest.sh (run_via_rtld_prefix): New variable.
62355         (test_wrapper): Likewise.
62356         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
62357         set together with run_via_rtld_prefix.
62358         (run_program_prefix): Define in terms of test_wrapper and
62359         run_via_rtld_prefix.
62360
62361 2012-10-24  Roland McGrath  <roland@hack.frob.com>
62362
62363         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
62364         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
62365         Targets removed.
62366
62367         [BZ #14743]
62368         * include/time.h: Remove librt_hidden_proto (clock_gettime).
62369         Declare __clock_getres, __clock_gettime, __clock_settime,
62370         __clock_nanosleep, and __clock_getcpuclockid.
62371         * rt/clock_gettime.c: Define __clock_gettime as an alias.
62372         Remove librt_hidden_def (clock_gettime).
62373         * sysdeps/unix/clock_gettime.c: Likewise.
62374         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
62375         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
62376         * rt/clock_getres.c: Define __clock_getres as an alias.
62377         * sysdeps/posix/clock_getres.c: Likewise.
62378         * rt/clock_settime.c: Define __clock_settime as an alias.
62379         * sysdeps/unix/clock_settime.c: Likewise.
62380         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
62381         * sysdeps/unix/clock_nanosleep.c: Likewise.
62382         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
62383         * rt/clock-compat.c: New file.
62384         * rt/Makefile (librt-routines): Add clock-compat and move
62385         $(clock-routines) to ...
62386         (routines): ... here, new variable.
62387         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
62388         Don't add get_clockfreq here.
62389         * rt/Versions (libc: GLIBC_2.17): New version set.
62390         Add clock_* symbols here.
62391         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
62392         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
62393         (GLIBC_2.17): Add clock_* symbols.
62394         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
62395         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
62396         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
62397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62398         Likewise.
62399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62400         Likewise.
62401         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
62402         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
62403         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
62404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
62405         * NEWS: Mention the move.
62406
62407         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
62408         Use __open, __read, __close rather than their public counterparts.
62409         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62410         (__get_clockfreq_via_cpuinfo): Likewise.
62411         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
62412         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
62413
62414         * config.h.in (HAVE_IFUNC): New #undef.
62415         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
62416         was successful.
62417         * configure: Regenerated.
62418
62419 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62420
62421         * configure.in: Move READELF check to start of file.
62422         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
62423         libc_cv_asm_gnu_indirect_function in the process.
62424         * configure: Regenerated.
62425
62426 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62427
62428         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
62429         send the output to /dev/null.
62430         (libc_cv_cc_with_libunwind): Likewise.
62431         (libc_cv_as_noexecstack): Likewise.
62432         * configure: Regenerate.
62433
62434 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62435
62436         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
62437
62438         * posix/globtest.sh (TMPDIR): Do not set.
62439         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
62440         (testout): Likewise.
62441
62442 2012-10-24  Andreas Jaeger  <aj@suse.de>
62443
62444         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
62445         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
62446         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
62447         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
62448         posix_fadvise64, posix_fallocate64.
62449
62450         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
62451         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
62452         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
62453         Likewise.
62454         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
62455         Likewise.
62456         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
62457
62458         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
62459         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
62460         <bits/fcntl-linux.h>.
62461         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
62462
62463         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
62464         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
62465         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
62466         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
62467         [__WORDSIZE != 64]: Likewise.
62468
62469 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62470
62471         * Makeconfig (run-built-tests): New variable.
62472         * Rules [$(cross-compiling) = yes]: Change condition to
62473         [$(run-built-tests) = no].
62474         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
62475         to [$(run-built-tests) = yes].
62476         * elf/Makefile [$(cross-compiling) = no]: Likewise.
62477         * grp/Makefile [$(cross-compiling) = no]: Likewise.
62478         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
62479         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
62480         * intl/Makefile [$(cross-compiling) = no]: Likewise.
62481         * io/Makefile [$(cross-compiling) = no]: Likewise.
62482         * libio/Makefile [$(cross-compiling) = no]: Likewise.
62483         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
62484         * misc/Makefile [$(cross-compiling) = no]: Likewise.
62485         * posix/Makefile [$(cross-compiling) = no]: Likewise.
62486         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
62487         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
62488         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
62489         * string/Makefile [$(cross-compiling) = no]: Likewise.
62490
62491         * posix/Makefile ($(objpfx)globtest.out): Pass
62492         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
62493         $(rtld-installed-name).
62494         * posix/globtest.sh (elf_objpfx): Remove variable.
62495         (rtld_installed_name): Likewise.
62496         (library_path): Likewise.
62497         (run_program_prefix): New variable.  Use for running globtest
62498         binary.
62499
62500 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
62501             Joseph Myers  <joseph@codesourcery.com>
62502
62503         * Makeconfig (host-built-program-cmd): New variable.
62504         * elf/Makefile (tst-stackguard1-ARGS): Use
62505         $(host-built-program-cmd).
62506         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
62507         (tst-spawn-ARGS): Likewise.
62508         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
62509
62510 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62511             Jim Blandy  <jimb@codesourcery.com>
62512
62513         * Makeconfig (run-via-rtld-prefix): New variable.
62514         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
62515         (built-program-cmd): Likewise.
62516
62517 2012-10-22  Andreas Jaeger  <aj@suse.de>
62518
62519         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
62520         __O_RSYNC if it exists, otherwise to O_SYNC.
62521
62522 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
62523             Joseph Myers  <joseph@codesourcery.com>
62524
62525         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
62526         /dev/null.
62527         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
62528         from /dev/null
62529         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
62530         /dev/null.
62531
62532 2012-10-22  Andreas Jaeger  <aj@suse.de>
62533
62534         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
62535         Define always.
62536         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
62537
62538         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
62539         bits/fcntl-linux.h.
62540
62541         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
62542         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
62543
62544         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
62545         to __O_LARGEFILE.
62546         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
62547         to __O_LARGEFILE.
62548
62549 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
62550             Joseph Myers  <joseph@codesourcery.com>
62551
62552         * config.make.in (NM): New variable.
62553
62554 2012-10-21  Andreas Jaeger  <aj@suse.de>
62555
62556         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
62557         definitions and declarations that are provided by
62558         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
62559
62560 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62561
62562         [BZ #14683]
62563         * elf/Makefile (tests-static): Add tst-leaks1-static.
62564         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
62565         ($(objpfx)tst-leaks1-static): New rule.
62566         ($(objpfx)tst-leaks1-static-mem): Likewise.
62567         (tst-leaks1-static-ENV): New macro.
62568         * elf/dl-open.c (dl_open_worker): Check the main application
62569         only if SHARED is defined.
62570         * elf/tst-leaks1-static.c: New file.
62571
62572 2012-10-20  Andreas Jaeger  <aj@suse.de>
62573
62574         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
62575         generic values for Linux.
62576         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
62577         and declarations that are provided by <bits/fcntl-linux.h> and
62578         include <bits/fcntl-linux.h>.
62579         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
62580         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
62581
62582 2012-10-20  Roland McGrath  <roland@hack.frob.com>
62583
62584         * io/fcntl.h: Move include of <bits/types.h> to the top and
62585         include it unconditionally.
62586
62587 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62588
62589         * wcsmbs/Makefile (tests-ifunc): New variable.
62590         (tests): Add $(tests-ifunc).
62591         * wcsmbs/test-wcschr-ifunc.c: New file.
62592         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
62593         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
62594         * wcsmbs/test-wcslen-ifunc.c: Likewise.
62595         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
62596         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
62597
62598         * string/Makefile (tests-ifunc): New variable.
62599         (tests): Add $(tests-ifunc).
62600         * string/test-memccpy.c (TEST_NAME): New macro.
62601         * string/test-memchr.c (TEST_NAME): Likewise.
62602         * string/test-memcmp.c (TEST_NAME): Likewise.
62603         * string/test-memcpy.c (TEST_NAME): Likewise.
62604         * string/test-memmem.c (TEST_NAME): Likewise.
62605         * string/test-memmove.c (TEST_NAME): Likewise.
62606         * string/test-memset.c (TEST_NAME): Likewise.
62607         * string/test-rawmemchr.c (TEST_NAME): Likewise.
62608         * string/test-stpcpy.c (TEST_NAME): Likewise.
62609         * string/test-stpncpy.c (TEST_NAME): Likewise.
62610         * string/test-strcasecmp.c (TEST_NAME): Likewise.
62611         * string/test-strcasestr.c (TEST_NAME): Likewise.
62612         * string/test-strcat.c (TEST_NAME): Likewise.
62613         * string/test-strchr.c (TEST_NAME): Likewise.
62614         * string/test-strcmp.c(TEST_NAME): Likewise.
62615         * string/test-strcpy.c (TEST_NAME): Likewise.
62616         * string/test-strcspn.c (TEST_NAME): Likewise.
62617         * string/test-strlen.c (TEST_NAME): Likewise.
62618         * string/test-strncasecmp.c (TEST_NAME): Likewise.
62619         * string/test-strncmp.c (TEST_NAME): Likewise.
62620         * string/test-strncpy.c (TEST_NAME): Likewise.
62621         * string/test-strnlen.c (TEST_NAME): Likewise.
62622         * string/test-strpbrk.c (TEST_NAME): Likewise.
62623         * string/test-strrchr.c (TEST_NAME): Likewise.
62624         * string/test-strspn.c (TEST_NAME): Likewise.
62625         * string/test-strstr.c (TEST_NAME): Likewise.
62626         * string/test-bcopy-ifunc.c: New file.
62627         * string/test-bzero-ifunc.c: Likewise.
62628         * string/test-memccpy-ifunc.c: Likewise.
62629         * string/test-memchr-ifunc.c: Likewise.
62630         * string/test-memcmp-ifunc.c: Likewise.
62631         * string/test-memcpy-ifunc.c: Likewise.
62632         * string/test-memmem-ifunc.c: Likewise.
62633         * string/test-memmove-ifunc.c: Likewise.
62634         * string/test-mempcpy-ifunc.c: Likewise.
62635         * string/test-memset-ifunc.c: Likewise.
62636         * string/test-rawmemchr-ifunc.c: Likewise.
62637         * string/test-stpcpy-ifunc.c: Likewise.
62638         * string/test-stpncpy-ifunc.c: Likewise.
62639         * string/test-strcasecmp-ifunc.c: Likewise.
62640         * string/test-strcasestr-ifunc.c: Likewise.
62641         * string/test-strcat-ifunc.c: Likewise.
62642         * string/test-strchr-ifunc.c: Likewise.
62643         * string/test-strchrnul-ifunc.c: Likewise.
62644         * string/test-strcmp-ifunc.c: Likewise.
62645         * string/test-strcpy-ifunc.c: Likewise.
62646         * string/test-strcspn-ifunc.c: Likewise.
62647         * string/test-strlen-ifunc.c: Likewise.
62648         * string/test-strncasecmp-ifunc.c: Likewise.
62649         * string/test-strncat-ifunc.c: Likewise.
62650         * string/test-strncmp-ifunc.c: Likewise.
62651         * string/test-strncpy-ifunc.c: Likewise.
62652         * string/test-strnlen-ifunc.c: Likewise.
62653         * string/test-strpbrk-ifunc.c: Likewise.
62654         * string/test-strrchr-ifunc.c: Likewise.
62655         * string/test-strspn-ifunc.c: Likewise.
62656         * string/test-strstr-ifunc.c: Likewise.
62657
62658         * debug/Makefile (tests-ifunc): New variable.
62659         (tests): Add $(tests-ifunc).
62660         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
62661         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
62662         * debug/test-stpcpy_chk-ifunc.c: New file.
62663         * debug/test-strcpy_chk-ifunc.c: Likewise.
62664
62665 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
62666
62667         [BZ #13601]
62668         * elf/dl-load.c (open_verify): Retry read if the entire ELF
62669         header is not read in.
62670
62671 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
62672
62673         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
62674         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
62675         directly.  Pass built executable to script as
62676         $(built-program-cmd).
62677         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
62678         $testprogram without using LD_LIBRARY_PATH and $ldso.
62679
62680         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
62681         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
62682         $(rtld-installed-name).
62683         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
62684         (rtld_installed_name): Likewise.
62685         (library_path): Likewise.
62686         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
62687         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
62688         $(run-program-prefix) to tst-tables.sh.
62689         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
62690         it to run tst-table-from and tst-table-to.
62691         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
62692         Pass it to tst-table.sh.
62693         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
62694         $(run-program-prefix) to tst-gettext.sh.
62695         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
62696         tst-translit.sh.
62697         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
62698         tst-gettext2.sh.
62699         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
62700         to run tst-gettext.
62701         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
62702         to run tst-gettext2.
62703         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
62704         to run tst-translit.
62705         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
62706         $(run-program-prefix) to tst-mtrace.sh.
62707         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
62708         to run tst-mtrace.
62709         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
62710         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
62711         $(rtld-installed-name).
62712         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
62713         (rtld_installed_name): Likewise.
62714         (run_program_prefix): New variable.  Use it to run wordexp-test.
62715
62716         * Makeconfig (ARCH): Remove all definitions.
62717         (machine): Likewise.
62718         [ARCH]: Remove conditional code.
62719         [!objdir]: Give error.
62720         [!objdir] (objpfx): Remove.
62721         [!objdir] (common-objpfx): Likewise.
62722         [!objdir] (common-objdir): Likewise.
62723         * configure.in (config_makefile): Remove.  Hardcode Makefile in
62724         AC_CONFIG_FILES call.
62725         * configure: Regenerated.
62726
62727         [BZ #13888]
62728         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
62729         or TMPDIR.
62730         (testout): Likewise.
62731
62732         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
62733         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
62734         $(rtld-installed-name).
62735         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
62736         (rtld_installed_name): Likwise.
62737         (runit): Remove function.
62738         (run_getconf): New variable,  Use it for running getconf binary.
62739
62740 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
62741
62742         [BZ #14716]
62743         * string/test-memmem.c (check_result): New function.
62744         (do_one_test): Use it.
62745         (check1): New function.
62746         (test_main): Use it.
62747
62748 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
62749
62750         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
62751
62752 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
62753
62754         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
62755         (_G_LSEEK64): Likewise.
62756         (_G_MMAP64): Likewise.
62757         (_G_FSTAT64): Likewise.
62758         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
62759         (_G_LSEEK64): Likewise.
62760         (_G_MMAP64): Likewise.
62761         (_G_FSTAT64): Likewise.
62762         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
62763         unconditional.  Call __mmap64 directly.
62764         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
62765         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
62766         __lseek64 directly.
62767         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
62768         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
62769         __mmap64 directly.
62770         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
62771         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
62772         __lseek64 directly.
62773         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
62774         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
62775         __lseek64 directly.
62776         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
62777         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
62778         __lseek64 directly.
62779         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
62780         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
62781         __fxstat64 directly.
62782         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
62783         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
62784         unconditional.
62785         (freopen64) [!_G_OPEN64]: Remove conditional code.
62786         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
62787         unconditional.
62788         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
62789         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
62790         unconditional.
62791         (ftello64) [!_G_LSEEK64]: Remove conditional code.
62792         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
62793         unconditional.
62794         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
62795         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
62796         unconditional.
62797         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
62798         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
62799         unconditional.
62800         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
62801         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
62802         unconditional.
62803         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
62804         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
62805         unconditional.
62806         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
62807
62808 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
62809
62810         [BZ #12140]
62811         * manual/memory.texi (Malloc Tunable Parameters): Add note
62812         about free list pointers overwriting some perturb bytes.
62813         Wording suggested by Roland McGrath.
62814
62815 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
62816
62817         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
62818         (lgamma_test): Likewise.
62819         (tgamma_test): Likewise.
62820
62821 2012-10-16  Florian Weimer  <fweimer@redhat.com>
62822
62823         [BZ #14700]
62824         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
62825         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
62826
62827 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
62828
62829         * NEWS: Mention BZ #14716.
62830         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
62831         when removing AVAILABLE1_USES_J macro.
62832
62833 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
62834
62835         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
62836         (__bswap_64): __uint64_t for unsigned 64-bit int.
62837
62838 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
62839
62840         * include/string.h (memmem): Declare libc hidden alias.
62841         * string/memmem.c (memmem): Define libc hidden alias.
62842         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
62843         __read, __close instead of open, read, close.
62844
62845 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
62846
62847         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
62848         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
62849         global and hidden.
62850         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
62851         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
62852         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
62853         Likewise.
62854         (__rawmemchr_sse2): Likewise.
62855         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
62856         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
62857         (__strchr_sse2): Likewise.
62858         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
62859         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
62860         (__strcasecmp_sse2): Likewise.
62861         (__strncasecmp_sse2): Likewise.
62862         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
62863         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
62864         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
62865         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
62866         (__strrchr_sse2): Likewise.
62867         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
62868         ifunc-impl-list.c.
62869         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
62870         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
62871         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
62872         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
62873         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
62874         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
62875         * sysdeps/x86_64/multiarch/memset.S: Likewise.
62876         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
62877         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
62878         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
62879         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
62880         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
62881         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
62882         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
62883         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
62884         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
62885         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
62886         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
62887         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
62888         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
62889         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
62890         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
62891         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
62892         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
62893         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
62894         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
62895         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
62896         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
62897         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
62898         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
62899
62900         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
62901         global and hidden.
62902         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
62903         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
62904         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
62905         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
62906         Likewise.
62907         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
62908         Likewise.
62909         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
62910         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
62911         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
62912         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
62913         ifunc-impl-list.c.
62914         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
62915         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
62916         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
62917         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
62918         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
62919         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
62920         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
62921         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
62922         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
62923         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
62924         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
62925         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
62926         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
62927         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
62928         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
62929         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
62930         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
62931         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
62932         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
62933         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
62934         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
62935         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
62936         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
62937         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
62938         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
62939         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
62940         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
62941         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
62942         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
62943         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
62944         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
62945         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
62946         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
62947         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
62948         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
62949         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
62950         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
62951         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
62952         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
62953         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
62954         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
62955
62956         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
62957         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
62958         * include/ifunc-impl-list.h: New file.
62959         * misc/ifunc-impl-list.c: Likewise.
62960         * misc/Makefile (routines): Add ifunc-impl-list.
62961         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
62962         * string/test-string.h: Include <ifunc-impl-list.h>.
62963         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
62964         TEST_NAME]: New variables.
62965         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
62966         are defined.
62967         (test_init): Call __libc_ifunc_impl_list to initialize
62968         func_list if TEST_IFUNC and TEST_NAME are defined.
62969
62970         * string/Makefile (strop-tests): Add bcopy and bzero.
62971         * string/test-bcopy.c: New file.
62972         * string/test-bzero.c: Likewise.
62973         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
62974         defined.
62975         * string/test-memset.c: Support bzero test if TEST_BZERO is
62976         defined.
62977         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
62978         __libc_memmove.
62979         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
62980         __libc_memset.
62981         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
62982         of memset.
62983
62984 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
62985
62986         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
62987         * configure: Regenerated.
62988
62989         * Makeconfig (+link-static-before-libc): Don't include
62990         $(link-static-libc).
62991
62992         * libio/libio.h (_IO_pos_t): Remove.
62993
62994 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
62995
62996         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
62997         McGrath.
62998
62999 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63000
63001         * crypt/crypt-entry.c: Include fips-private.h.
63002         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
63003         * crypt/md5c-test.c (main): Tolerate disabled MD5.
63004         * sysdeps/unix/sysv/linux/fips-private.h: New file.
63005         * sysdeps/generic/fips-private.h: New file, dummy fallback.
63006
63007 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63008
63009         * crypt/crypt-private.h: Include stdbool.h.
63010         (_ufc_setup_salt_r): Return bool.
63011         * crypt/crypt-entry.c: Include errno.h.
63012         (__crypt_r): Return NULL with EINVAL for bad salt.
63013         * crypt/crypt_util.c (bad_for_salt): New.
63014         (_ufc_setup_salt_r): Check that salt is long enough and within
63015         the specified alphabet.
63016         * crypt/badsalttest.c: New file.
63017         * crypt/Makefile (tests): Add it.
63018         ($(objpfx)badsalttest): New.
63019
63020 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
63021
63022         * NEWS: Add entry for BZ #14602.
63023
63024 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63025
63026         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
63027         type-generic.
63028         * math/libm-test.inc: Update comment listing what functions and
63029         macros are tested.
63030         (isgreater_test): New function.
63031         (isgreaterequal_test): Likewise.
63032         (isless_test): Likewise.
63033         (islessequal_test): Likewise.
63034         (islessgreater_test): Likewise.
63035         (isunordered_test): Likewise.
63036         (main): Call the new functions.
63037
63038 2012-10-09  Roland McGrath  <roland@hack.frob.com>
63039
63040         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
63041         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
63042         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
63043         * sysdeps/i386/configure: Regenerated.
63044         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
63045         * sysdeps/mach/configure: Regenerated.
63046         * sysdeps/mach/hurd/configure: Regenerated.
63047         * sysdeps/powerpc/configure: Regenerated.
63048         * sysdeps/powerpc/powerpc32/configure: Regenerated.
63049         * sysdeps/powerpc/powerpc64/configure: Regenerated.
63050         * sysdeps/s390/s390-32/configure: Regenerated.
63051         * sysdeps/s390/s390-64/configure: Regenerated.
63052         * sysdeps/sh/configure: Regenerated.
63053         * sysdeps/sparc/configure: Regenerated.
63054         * sysdeps/unix/sysv/linux/configure: Regenerated.
63055         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
63056         * sysdeps/x86_64/configure: Regenerated.
63057
63058         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
63059         defined.  Don't check if MAP is NULL.
63060
63061 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63062
63063         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
63064         (_G_stat64): Likewise.
63065         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
63066         (_G_stat64): Likewise.
63067         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
63068         instead of struct _G_stat64.
63069         * libio/fileops.c (mmap_remap_check): Likewise.
63070         (decide_maybe_mmap): Likewise.
63071         (_IO_new_file_seekoff): Likewise.
63072         (_IO_file_stat): Likewise.
63073         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
63074         _G_off64_t.
63075         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
63076         instead of struct _G_stat64.
63077         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63078
63079 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
63080
63081         [BZ #14602]
63082         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63083         Replace with ...
63084         (CHECK_EOL): New macro.
63085         (two_way_short_needle): Check beginning of haystack for EOL.  Use
63086         CHECK_EOL.
63087         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63088         Replace with CHECK_EOL.
63089         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63090         Replace with CHECK_EOL.
63091
63092 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
63093
63094         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
63095         type-generic.
63096         * math/libm-test.inc: Update comment listing what functions and
63097         macros are tested.
63098         (finite_test): New function.
63099         (isinf_test): Likewise.
63100         (isnan_test): Likewise.
63101         (fpclassify_test): Test subnormal input.
63102         (isfinite_test): Likewise.
63103         (isnormal_test): Likewise.
63104         (main): Call the new functions.
63105
63106 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
63107
63108         [BZ #14660]
63109         * Makerules (%.dynsym): Force C locale when running
63110         $(OBJDUMP) --dynamic-syms.
63111
63112 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
63113
63114         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
63115         <stdint.h>.
63116
63117 2012-10-06  David S. Miller  <davem@davemloft.net>
63118
63119         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
63120         upper 32-bits of the length value in %o2 since we use branch-on-register
63121         tests which consider the entire 64-bit register.
63122
63123 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
63124
63125         * string/test-strstr.c (check2): Add a test for page boundary.
63126
63127 2012-10-05  David S. Miller  <davem@davemloft.net>
63128
63129         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
63130         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
63131         file.
63132         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63133         sysdep_routines.
63134         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63135         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
63136         and bzero when HWCAP_SPARC_CRYPTO is present.
63137
63138 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
63139
63140         [BZ #14602]
63141         * string/test-strstr.c (check2): New function.
63142         (test_main): Call check2.
63143
63144         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
63145         and bug-strchr1.
63146         * string/bug-strcasestr1.c (do_test): Moved to ...
63147         * string/test-strcasestr.c (check1): Here.  New function.
63148         (do_one_test): Break out result checking code into ...
63149         (check_result): This.  New function.
63150         (do_one_test): Call check_result.
63151         (test_main): Call check1.
63152         * string/bug-strchr1.c (do_test): Moved to ...
63153         * string/test-strchr.c (check1): Here.  New function.
63154         (do_one_test): Break out result checking code into ...
63155         (check_result): This.  New function.
63156         (do_one_test): Call check_result.
63157         (test_main): Call check1.
63158         * string/bug-strstr1.c (main): Moved to ...
63159         * string/test-strstr.c (check1): Here.  New function.
63160         (do_one_test): Break out result checking code into ...
63161         (check_result): This.  New function.
63162         (do_one_test): Call check_result.
63163         (test_main): Call check1.
63164         * string/bug-strcasestr1.c: Removed.
63165         * string/bug-strchr1.c: Likewise.
63166         * string/bug-strstr1.c: Likewise.
63167
63168         * elf/Makefile (dl-routines): Add hwcaps.
63169         * elf/dl-support.c (_dl_important_hwcaps): Removed.
63170         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
63171         (_dl_important_hwcaps): Moved to ...
63172         * elf/dl-hwcaps.c: Here.  New file.
63173         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
63174
63175         [BZ #14557]
63176         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
63177         if IS_IN_rtld isn't defined.
63178
63179         * elf/dl-support.c (_dl_sysinfo_map): New.
63180         Include "get-dynamic-info.h" and "setup-vdso.h".
63181         (_dl_non_dynamic_init): Call setup_vdso.
63182         * elf/dynamic-link.h: Don't include <assert.h>.
63183         (elf_get_dynamic_info): Moved to ...
63184         * elf/get-dynamic-info.h: Here.  New file.
63185         * elf/dynamic-link.h: Include "get-dynamic-info.h".
63186         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
63187         * elf/setup-vdso.h: Here.  New file.
63188         * elf/rtld.c: Include "setup-vdso.h".
63189         (dl_main): Call setup_vdso.
63190
63191 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
63192
63193         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
63194         creal in comment listing functions tested.  List finite, isinf,
63195         isnan, isless, islessequal, isgreater, isgreaterequal,
63196         islessgreater, isunordered, lgamma_r and pow10 as functions and
63197         macros not tested.  Mention which functions not tested are aliases
63198         for other functions.  Fix typo.  Note that signs of NaNs are not
63199         tested.
63200
63201         * scripts/config.guess: Update from config.git.
63202         * scripts/config.sub: Likewise.
63203
63204 2012-10-04  Roland McGrath  <roland@hack.frob.com>
63205
63206         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
63207         * misc/madvise.c (madvise): Renamed to __madvise.
63208         Make madvise a weak alias.
63209         * include/sys/mman.h: Declare __madvise.
63210         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
63211         * sysdeps/unix/syscalls.list
63212         (madvise): Make __madvise the strong name, and madvise a weak alias.
63213         * sysdeps/unix/sysv/linux/syscalls.list
63214         (madvise, mmap): Remove redundant entries.
63215         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
63216         * malloc/malloc.c (mtrim): Likewise.
63217         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
63218
63219 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63220
63221         * sysdeps/mach/hurd/dl-cache.c: File removed.
63222         * config.h.in (USE_LDCONFIG): New #undef.
63223         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
63224         * configure: Regenerated.
63225         * elf/Makefile (dl-routines): Add dl-cache only under
63226         [$(use-ldconfig) = yes].
63227         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
63228         cache on [USE_LDCONFIG].
63229         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
63230         [USE_LDCONFIG].
63231         * elf/rtld.c (dl_main): Likewise.
63232
63233 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
63234
63235         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
63236         _SC_LEVEL4_CACHE_LINESIZE.
63237
63238 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63239
63240         * sysdeps/unix/bsd/confstr.h: File removed.
63241
63242 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
63243
63244         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
63245         sys/sdt-config.h.
63246
63247 2012-10-02  Roland McGrath  <roland@hack.frob.com>
63248
63249         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
63250         Make 'mapoff' field ElfW(Off) rather than off_t.
63251
63252 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63253
63254         * nscd/Makefile: Remove nscd-cflags and all its users.
63255         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
63256         (CFLAGS-nonlib): Add compiler flags for nscd modules.
63257
63258         [BZ #10631]
63259         * malloc.c (malloc_printerr): Clarify error message.
63260
63261 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
63262
63263         [BZ #14648]
63264         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63265         Set bit_FMA_Usable if FMA is supported.
63266         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
63267         macro.
63268         (bit_FMA4_Usable): Updated.
63269         (index_FMA_Usable): New macro.
63270         (CPUID_FMA): Likewise.
63271         (HAS_FMA): Defined with bit_FMA_Usable.
63272
63273 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63274
63275         * bits/types.h (__swblk_t): Type removed.
63276         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
63277         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
63278         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63279         (__SWBLK_T_TYPE): Likewise.
63280         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
63281         (__SWBLK_T_TYPE): Likewise.
63282         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63283         (__SWBLK_T_TYPE): Likewise.
63284         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63285         (__SWBLK_T_TYPE): Likewise.
63286
63287 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
63288             Honza Horak <hhorak@redhat.com>
63289
63290         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
63291         (xdr_mapname): Use YPMAXMAP as maxsize.
63292         (xdr_peername): Use YPMAXPEER as maxsize.
63293         (xdr_keydat): Use YPAXRECORD as maxsize.
63294         (xdr_valdat): Use YPMAXRECORD as maxsize.
63295
63296 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63297
63298         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
63299
63300         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
63301         * csu/init-first.c: ... here.
63302         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
63303         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
63304         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
63305         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
63306         * sysdeps/i386/init-first.c: File removed.
63307         * sysdeps/sh/init-first.c: File removed.
63308
63309 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
63310
63311         [BZ #14645]
63312         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
63313         if x * y might underflow to zero and z is zero.
63314         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
63315         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63316         * math/libm-test.inc (min_subnorm_value): New variable.
63317         (fma_test): Add more tests.
63318         (fma_test_towardzero): Likewise.
63319         (fma_test_downward): Likewise.
63320         (fma_test_upward): Likewise.
63321         (initialize): Set min_subnorm_value.
63322
63323 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
63324
63325         [BZ #14638]
63326         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
63327         0 + 0.
63328         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
63329         mode for addition resulting in exact zero.
63330         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
63331         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
63332         exact 0 + 0.
63333         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
63334         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63335         * math/libm-test.inc (fma_test): Add more tests.
63336         (fma_test_towardzero): New function.
63337         (fma_test_downward): Likewise.
63338         (fma_test_upward): Likewise.
63339         (main): Call the new functions.
63340
63341 2012-09-28  David S. Miller  <davem@davemloft.net>
63342
63343         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
63344
63345 2012-09-28  Roland McGrath  <roland@hack.frob.com>
63346
63347         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
63348         instead of SIGALRM.
63349
63350         * sysdeps/gnu/_G_config.h: Moved to ...
63351         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
63352         * sysdeps/mach/hurd/_G_config.h: Moved to ...
63353         * sysdeps/generic/_G_config.h: ... here.
63354
63355         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
63356
63357         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
63358
63359         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
63360         Conditionalize target on [libnss_test1.so-version].
63361
63362         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
63363
63364         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
63365         (elfobjdir): Move out of conditionals.
63366
63367         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
63368         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
63369         (__nss_lookup_function): Conditionalize label remove_from_tree on
63370         [!DO_STATIC_NSS || SHARED], matching its only use.
63371
63372 2012-09-28  David S. Miller  <davem@davemloft.net>
63373
63374         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
63375         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
63376         file.
63377         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63378         sysdep_routines.
63379         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63380         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
63381         when HWCAP_SPARC_CRYPTO is present.
63382
63383 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63384
63385         * io/tst-mknodat.c: Create a FIFO instead of a socket.
63386
63387 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
63388
63389         [BZ #6530]
63390         * stdio-common/vfprintf.c (process_string_arg): Revert
63391         2000-07-22 change.
63392
63393 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
63394
63395         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
63396         for testcase.
63397         * stdio-common/tst-sprintf.c: Include <locale.h>
63398         (main): Test sprintf's handling of incomplete multibyte
63399         characters.
63400
63401 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
63402
63403         * elf/dl-runtime.c (VERSYMIDX): Removed.
63404         * elf/dl-version.c (VERSYMIDX): Likewise.
63405         * elf/do-rel.h (VERSYMIDX): Likewise.
63406         (VALIDX): Likewise.
63407         * elf/dynamic-link.h (VERSYMIDX): Likewise.
63408         * elf/rtld.c (VALIDX): Likewise.
63409         (ADDRIDX): Likewise.
63410         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
63411         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
63412         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
63413         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
63414         (VALIDX): Likewise.
63415         (ADDRIDX): Likewise.
63416
63417 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63418
63419         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
63420
63421 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
63422
63423         [BZ #11438]
63424         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
63425         to global scope.
63426         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
63427         addresses are in the same scope as 192.0.2/24.
63428         * posix/gai.conf: Document new scope table defaults.
63429
63430 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63431
63432         [BZ #5298]
63433         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
63434         for ftell.  Compute offsets from write pointers instead.
63435         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63436
63437 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63438
63439         [BZ #14543]
63440         * libio/Makefile (tests): New test case tst-fseek.
63441         * libio/tst-fseek.c: New test case to verify that fseek/ftell
63442         combination works in wide mode.
63443         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
63444         state when the external buffer state changes.
63445
63446 2012-09-27  David S. Miller  <davem@davemloft.net>
63447
63448         [BZ #14376]
63449         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
63450         pass reloc->r_addend in as the 'high' argument to
63451         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
63452
63453         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63454
63455 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63456
63457         * rt/tst-aio2.c: Include <pthread.h>.
63458         * rt/tst-aio3.c: Likewise.
63459
63460 2012-09-27  Steve Ellcey  <sellcey@mips.com>
63461
63462         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
63463
63464 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
63465
63466         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
63467         contents on [SHARED].
63468
63469 2012-09-26  Marek Polacek  <polacek@redhat.com>
63470
63471         [BZ #14530]
63472         [BZ #13741]
63473         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
63474         for C++ and GCC <4.3 as well as for non GCC compilers.
63475
63476 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
63477
63478         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63479
63480 2012-09-25  Roland McGrath  <roland@hack.frob.com>
63481
63482         * Makefile.in (all, install): Declare with .PHONY.
63483         Reported by Michael Hope <michael.hope@linaro.org>.
63484
63485 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63486
63487         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
63488         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
63489         system header.
63490         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
63491         Likewise.
63492         (sydep_routines): Add the new and the internal functions.
63493         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
63494         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
63495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
63496         (GLIBC_2.17): Add the new function.
63497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
63498         (GLIBC_2.17): Likewise.
63499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
63500         (GLIBC_2.17): Likewise.
63501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
63502         (GLIBC_2.17): Likewise.
63503         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
63504
63505 2012-09-25  Alan Modra  <amodra@gmail.com>
63506
63507         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
63508         Add release barrier before setting once_control to say
63509         initialisation is done.  Add hints on lwarx.  Use macro in
63510         place of isync.
63511         (clear_once_control): Add release barrier.
63512
63513 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63514
63515         [BZ #13629]
63516         * math/s_clog.c (__clog): Handle more values close to |z| = 1
63517         specially.
63518         * math/s_clog10.c (__clog10): Likewise.
63519         * math/s_clog10f.c (__clog10f): Likewise.
63520         * math/s_clog10l.c (__clog10l): Likewise.
63521         * math/s_clogf.c (__clogf): Likewise.
63522         * math/s_clogl.c (__clogl): Likewise.
63523         * math/Makefile (libm-calls): Add x2y2m1.
63524         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
63525         (__x2y2m1): Likewise.
63526         (__x2y2m1l): Likewise.
63527         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
63528         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
63529         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
63530         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
63531         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
63532         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
63533         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
63534         * sysdeps/i386/fpu/libm-test-ulps: Update.
63535         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63536
63537         [BZ #14621]
63538         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
63539         int as type of variable DEPTH.
63540         (glob): Use size_t instead of int as type of variables NEWCOUNT
63541         and OLD_PATHC.
63542
63543 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63544
63545         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
63546         Add s_sincosf-sse2.
63547         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
63548         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
63549         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
63550         macros for using routine as __sincosf_ia32.
63551         Use macro for function declaration and weak_alias.
63552         * sysdeps/i386/fpu/libm-test-ulps: Update.
63553
63554         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
63555         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63556
63557         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
63558         subnormal argument.
63559         * math/s_cexpf.c (__cexpf): Likewise.
63560         * math/s_csinf.c (__csinf): Likewise.
63561         * math/s_csinhf.c (__csinhf): Likewise.
63562         * math/s_ctanf.c (__ctanf): Likewise.
63563         * math/s_ctanhf.c (__ctanhf): Likewise.
63564         * math/s_ccosh.c (__ccoshf): Likewise.
63565         * math/s_cexp.c (__cexpl): Likewise.
63566         * math/s_csin.c (__csin): Likewise.
63567         * math/s_csinh.c (__csinh): Likewise.
63568         * math/s_ctan.c (__ctan): Likewise.
63569         * math/s_ctanh.c (ctanh): Likewise.
63570         * math/s_ccoshl.c (__ccoshl): Likewise.
63571         * math/s_cexpl.c (__cexpl): Likewise.
63572         * math/s_csinl.c (__csinl): Likewise.
63573         * math/s_csinhl.c (__csinhl): Likewise.
63574         * math/s_ctanl.c (__ctanl): Likewise.
63575         * math/s_ctanhl.c (__ctanhl): Likewise.
63576
63577 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63578
63579         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
63580         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
63581         (_IO_off_t): Define to __off_t, not _G_off_t.
63582         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
63583         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
63584         (_IO_wint_t): Define to wint_t, not _G_wint_t.
63585         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
63586         type of __dummy and __dummy2 fields.
63587         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
63588         (_G_ssize_t): Likewise.
63589         (_G_off_t): Likewise.
63590         (_G_pid_t): Likewise.
63591         (_G_uid_t): Likewise.
63592         (_G_wchar_t): Likewise.
63593         (_G_wint_t): Likewise.
63594         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
63595         (_G_ssize_t): Likewise.
63596         (_G_off_t): Likewise.
63597         (_G_pid_t): Likewise.
63598         (_G_uid_t): Likewise.
63599         (_G_wchar_t): Likewise.
63600         (_G_wint_t): Likewise.
63601         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
63602         (_G_ssize_t): Likewise.
63603         (_G_off_t): Likewise.
63604         (_G_pid_t): Likewise.
63605         (_G_uid_t): Likewise.
63606         (_G_wchar_t): Likewise.
63607         (_G_wint_t): Likewise.
63608
63609 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63610
63611         * malloc/arena.c: Include malloc-sysdep.h.
63612         (shrink_heap): Use check_may_shrink_heap to decide if madvise
63613         is sufficient to shrink the heap or an unmap is needed.
63614         * sysdeps/generic/malloc-sysdep.h: New file.  Define
63615         new function check_may_shrink_heap.
63616         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
63617         new function check_may_shrink_heap.
63618
63619 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63620
63621         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
63622         comments.
63623
63624 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
63625
63626         * catgets/test-gencat.sh: Add "set -e".
63627         * elf/tst-pathopt.sh: Likewise.
63628         * grp/tst_fgetgrent.sh: Likewise.
63629         * iconvdata/run-iconv-test.sh: Likewise.
63630         * intl/tst-gettext.sh: Likewise.
63631         * intl/tst-gettext2.sh: Likewise.
63632         * intl/tst-gettext4.sh: Likewise.
63633         * intl/tst-gettext6.sh: Likewise.
63634         * intl/tst-translit.sh: Likewise.
63635         * io/ftwtest-sh: Likewise.
63636         * libio/test-freopen.sh: Likewise.
63637         * malloc/tst-mtrace.sh: Likewise.
63638         * posix/globtest.sh: Likewise.
63639         * posix/tst-getconf.sh: Likewise.
63640         * posix/wordexp-tst.sh: Likewise.
63641         * stdio-common/tst-printf.sh: Likewise.
63642         * stdio-common/tst-unbputc.sh: Likewise.
63643         * stdlib/tst-fmtmsg.sh: Likewise.
63644         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
63645         * catgets/Makefile: Do not specify -e option when running
63646         testsuite shell scripts.
63647         * elf/Makefile: Likewise.
63648         * grp/Makefile: Likewise.
63649         * iconvdata/Makefile: Likewise.
63650         * intl/Makefile: Likewise.
63651         * io/Makefile: Likewise.
63652         * libio/Makefile: Likewise.
63653         * malloc/Makefile: Likewise.
63654         * posix/Makefile: Likewise.
63655         * stdio-common/Makefile: Likewise.
63656         * stdlib/Makefile: Likewise.
63657         * sysdeps/x86_64/Makefile: Likewise.
63658
63659         * io/ftwtest-sh: Add copyright header.
63660         * posix/globtest.sh: Likewise.
63661         * posix/tst-getconf.sh: Likewise.
63662         * posix/wordexp-tst.sh: Likewise.
63663         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
63664
63665 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
63666
63667         [BZ #13679]
63668         * Makeconfig (+link): Defined as $(+link-static) if
63669         $(build-shared) isn't yes.
63670         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
63671         isn't yes.
63672         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
63673
63674         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
63675
63676         [BZ #14562]
63677         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
63678         new chunk size with MALLOC_ALIGN_MASK.
63679
63680 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
63681
63682         [BZ #5044]
63683         * stdio-common/printf_fphex.c: Include <stdbool.h> and
63684         <rounding-mode.h>.
63685         (__printf_fphex): Determine rounding using get_rounding_mode and
63686         round_away.
63687         * stdio-common/tst-printf-round.c (struct hex_test): New
63688         structure.
63689         (hex_tests): New variable.
63690         (test_hex_in_one_mode): New function.
63691         (do_test): Also run tests for hex float output.
63692
63693 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
63694
63695         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
63696         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
63697         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
63698         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
63699         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
63700         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
63701         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
63702         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
63703
63704 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
63705
63706         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
63707         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
63708         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
63709         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
63710
63711 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
63712
63713         [BZ #14579]
63714         * elf/rtld.c (dl_main): Limit the check for self loading to normal
63715         mode only.
63716         * elf/tst-rtld-load-self.sh: New test.
63717         * elf/Makefile: Run it.
63718
63719 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
63720
63721         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
63722         (tst-writev-ENV): Remove.
63723         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
63724
63725 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
63726
63727         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
63728
63729 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
63730
63731         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
63732         unconditional.
63733         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
63734         Likewise.
63735         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
63736         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
63737         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
63738         Likewise.
63739
63740 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
63741
63742         [BZ #14587]
63743         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
63744         * config.make.in (have-cpp-asm-debuginfo): Removed.
63745         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
63746         * configure: Regenerated.
63747
63748 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
63749
63750         [BZ #5044]
63751         * stdio-common/printf_fp.c: Include <stdbool.h> and
63752         <rounding-mode.h>.
63753         (___printf_fp): Determine rounding using get_rounding_mode and
63754         round_away.
63755         * stdio-common/tst-printf-round.c: New file.
63756         * stdio-common/Makefile (tests): Add tst-printf-round.
63757         (link-libm): New variable.
63758         ($(objpfx)tst-printf-round): Depend in $(link-libm).
63759
63760 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
63761
63762         [BZ #14576]
63763         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
63764         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
63765         Likewise.
63766         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
63767         Likewise.
63768
63769 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
63770
63771         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
63772         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
63773         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
63774         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
63775
63776 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
63777
63778         [BZ #14518]
63779         * include/rounding-mode.h: New file.
63780         * sysdeps/generic/get-rounding-mode.h: Likewise.
63781         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
63782         * stdlib/strtod_l.c: Include <rounding-mode.h>.
63783         (MAX_VALUE): New macro.
63784         (MIN_VALUE): Likewise.
63785         (overflow_value): New function.
63786         (underflow_value): Likewise.
63787         (round_and_return): Use overflow_value and underflow_value to
63788         determine return values in overflow and underflow cases.  Use
63789         round_away to determine rounding depending on rounding mode.
63790         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
63791         determine return values in overflow and underflow cases.
63792         * stdlib/tst-strtod-round.c: Include <fenv.h>.
63793         (struct test_results): New structure.
63794         (struct test): Use struct test_results to store expected results
63795         for all rounding modes.
63796         (TEST): Include expected results for all rounding modes.
63797         (test_in_one_mode): New function.
63798         (do_test): Use test_in_one_mode to compute and check results.
63799         Check results for all rounding modes.
63800         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
63801         $(link-libm).
63802
63803 2012-12-09  Allan McRae  <allan@archlinux.org>
63804
63805         * sysdeps/i386/fpu/libm-test-ulps: Update
63806
63807 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
63808
63809         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
63810         (_G_int32_t): Likewise.
63811         (_G_uint16_t): Likewise.
63812         (_G_uint32_t): Likewise.
63813         (_G_HAVE_BOOL): Likewise.
63814         (_G_HAVE_ATEXIT): Likewise.
63815         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
63816         (_G_HAVE_IO_FILE_OPEN): Likewise.
63817         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
63818         (_G_int32_t): Likewise.
63819         (_G_uint16_t): Likewise.
63820         (_G_uint32_t): Likewise.
63821         (_G_HAVE_BOOL): Likewise.
63822         (_G_HAVE_ATEXIT): Likewise.
63823         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
63824         (_G_HAVE_IO_FILE_OPEN): Likewise.
63825         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
63826         (_G_int32_t): Likewise.
63827         (_G_uint16_t): Likewise.
63828         (_G_uint32_t): Likewise.
63829         (_G_HAVE_BOOL): Likewise.
63830         (_G_HAVE_ATEXIT): Likewise.
63831         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
63832         (_G_HAVE_IO_FILE_OPEN): Likewise.
63833
63834 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
63835
63836         * csu/libc-tls.c: Update copyright years.
63837
63838 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
63839
63840         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
63841         [!_G_USING_THUNKS]: Remove conditional code.
63842         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
63843         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
63844
63845         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
63846         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
63847         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
63848         (_G_VTABLE_LABEL_PREFIX): Likewise.
63849         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
63850         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
63851         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
63852         (_G_VTABLE_LABEL_PREFIX): Likewise.
63853         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
63854         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
63855         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
63856         (_G_VTABLE_LABEL_PREFIX): Likewise.
63857         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
63858
63859 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
63860
63861         * libio/Makefile: Include ../Makeconfig before tests.
63862         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
63863         only if $(build-shared) is yes.
63864
63865         * iconv/gconv_db.c: Update copyright years.
63866
63867 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63868
63869         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
63870         unwind info if defined PIC. Fix special cases description.
63871         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
63872
63873         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
63874         DP_HI_MASK entry.
63875         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
63876
63877 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
63878
63879         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
63880
63881         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
63882         is NULL.
63883
63884         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
63885         (LDLIBS-tst-chk4): This.
63886         (LDFLAGS-tst-chk5): Renamed to ...
63887         (LDLIBS-tst-chk5): This.
63888         (LDFLAGS-tst-chk6): Renamed to ...
63889         (LDLIBS-tst-chk6): This.
63890         (LDFLAGS-tst-lfschk4): Renamed to ...
63891         (LDLIBS-tst-lfschk4): This.
63892         (LDFLAGS-tst-lfschk5): Renamed to ...
63893         (LDLIBS-tst-lfschk5): This.
63894         (LDFLAGS-tst-lfschk6): Renamed to ...
63895         (LDLIBS-tst-lfschk6): This.
63896
63897         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
63898         on $(common-objpfx)soversions.mk.
63899
63900 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
63901
63902         [BZ #10014]
63903         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
63904         example host name.
63905
63906 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
63907
63908         * malloc/arena.c (arena_get_retry): New function that gets
63909         another arena for the caller to try its request on.
63910         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
63911         current arena cannot fulfill the request.
63912         (__libc_memalign): Likewise.
63913         (__libc_memalign): Likewise.
63914         (__libc_pvalloc): Likewise.
63915         (__libc_calloc): Likewise.
63916
63917 2012-09-05  John Tobey  <john.tobey@gmail.com>
63918
63919         [BZ #13542]
63920         * manual/arith.texi (Operations on Complex): Fix description
63921         of carg branch cut.
63922
63923 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
63924
63925         [BZ #10014]
63926         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
63927         host name.
63928
63929         [BZ #10038]
63930         * manual/memory.texi (Memory): Make order of menu items match
63931         order of sections.
63932
63933 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
63934
63935         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
63936         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
63937         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
63938
63939 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
63940
63941         * csu/libc-tls.c (static_dtv): Renamed to ...
63942         (_dl_static_dtv): This.  Make it global.
63943         (_dl_initial_dtv): Removed.
63944         (__libc_setup_tls): Updated.
63945         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
63946         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
63947         DL_INITIAL_DTV.
63948
63949 2012-09-06  Petr Machata  <pmachata@redhat.com>
63950
63951         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
63952         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
63953         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
63954         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
63955
63956 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
63957
63958         [BZ #14545]
63959         * csu/libc-tls.c (_dl_initial_dtv): New variable.
63960         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
63961         freeing dtv[-1].
63962
63963 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
63964
63965         [BZ #14544]
63966         * Makeconfig (link-static-before-libc): Replace $(+prector)
63967         with $(+prectorT).
63968         (link-static-after-libc): Replace $(+postctor) with
63969         $(+postctorT).
63970         (link-bounded): Replace $(+prector)/$(+postctor) with
63971         $(+prectorT)/$(+postctorT).
63972         (+prectorT): New macro.
63973         (+postctorT): Likewise.
63974
63975 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
63976
63977         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
63978         (round_str): Handle values above the maximum for IBM long double
63979         as inexact.
63980         * stdlib/tst-strtod-round.c (tests): Regenerated.
63981
63982 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63983
63984         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
63985         assembler flag.
63986         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
63987         zarch_nohighgprs around the zarch optimized routines.
63988         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
63989         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
63990         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
63991         for zarch.
63992
63993 2012-09-05  David S. Miller  <davem@davemloft.net>
63994
63995         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63996
63997         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
63998         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
63999         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
64000         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
64001         entries.
64002
64003 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64004
64005         * malloc/arena.c: Fold copyright years.
64006         * malloc/mcheck.c, malloc/memusage.c: Likewise.
64007
64008 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64009
64010         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
64011
64012 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64013
64014         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
64015
64016 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64017
64018         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
64019         change internal state upon failure.
64020
64021 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64022
64023         * malloc/mcheck.c (mcheck_check_all): Fix typo.
64024         * malloc/memusage.c (mmap): Likewise.
64025         (mmap64, mremap): Likewise.  Adjust name in comment.
64026
64027 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64028
64029         * libio/fileops.c: Fix typos in comments.
64030         * libio/oldfileops.c: Likewise.
64031         * libio/wfileops.c: Likewise.
64032
64033 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64034
64035         [BZ #1349]
64036         * malloc/Makefile (tests): Add tst-malloc-usable test case.
64037         (tst-malloc-usable-ENV): Set environment for test case.
64038         * malloc/hooks.c (malloc_check_get_size): New function to get
64039         requested size.
64040         * malloc/malloc.c (musable): Use malloc_check_get_size.
64041         * malloc/tst-malloc-usable.c: New test case.
64042
64043 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64044
64045         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
64046
64047 2012-09-05  Allan McRae  <allan@archlinux.org>
64048
64049         [BZ #13966]
64050         * configure.in (CXX_SYSINCLUDES): Use compiler output to
64051         determine header location.
64052         * configure: Regenerated.
64053
64054 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64055
64056         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
64057         float format.
64058         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
64059         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
64060         format.
64061         (test): Regenerate.
64062
64063 2012-09-04  David S. Miller  <davem@davemloft.net>
64064
64065         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
64066         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
64067         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
64068
64069 2012-09-04  Florian Weimer  <fweimer@redhat.com>
64070
64071         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
64072         failures.
64073
64074         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
64075
64076 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
64077
64078         [BZ #9914]
64079         * libio/iogetdelim.c: Include <limits.h>.
64080         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
64081         + len + 1 would overflow.
64082
64083 2012-09-03  Andreas Jaeger  <aj@suse.de>
64084
64085         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64086         * sysdeps/i386/fpu/libm-test-ulps: Update.
64087
64088 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64089
64090         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
64091         Add s_sinf-sse2, s_conf-sse2.
64092
64093         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
64094         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
64095         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
64096         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
64097
64098         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
64099         for using routine as __sinf_ia32.
64100         Use macro for function declaration and weak_alias.
64101         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
64102         for using routine as __cosf_ia32.
64103         Use macro for function declaration and weak_alias.
64104
64105         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
64106         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
64107
64108         * sysdeps/x86_64/fpu/s_sinf.S: New file.
64109         * sysdeps/x86_64/fpu/s_cosf.S: New file.
64110         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64111
64112         * math/libm-test.inc (cos_test): Add more test cases.
64113         (sin_test): Likewise.
64114         (sincos_test): Likewise.
64115
64116 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64117
64118         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
64119         (IFUNC_RESOLVE): Make pointers to the specialized implementations
64120         hidden.
64121         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64122
64123 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
64124
64125         [BZ #14538]
64126         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
64127         first element of the GOT.
64128         (elf_machine_load_address): Return the difference between
64129         the runtime address of _DYNAMIC and elf_machine_dynamic ().
64130
64131 2012-09-01  Allan McRae  <allan@archlinux.org>
64132
64133         [BZ #13412]
64134         * configure.in (AWK): Require gawk version 3.0 or later.
64135         * configure: Regenerated.
64136
64137 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
64138
64139         * sysdeps/unix/sysv/linux/kernel-features.h
64140         (__ASSUME_POSIX_CPU_TIMERS): Remove.
64141         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
64142         [__NR_clock_getres]: Make code unconditional.
64143         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
64144         (clock_getcpuclockid): Remove code left unreachable by removal of
64145         conditionals.
64146         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
64147         code unconditional.
64148         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64149         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64150         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
64151         Make code unconditional.
64152         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64153         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64154         * sysdeps/unix/sysv/linux/clock_settime.c
64155         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
64156         conditional code.
64157         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
64158         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64159
64160 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
64161
64162         [BZ #14476]
64163         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
64164         scripts/test-installation.pl.
64165
64166         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
64167         and $ld_so_version if it is set.
64168
64169 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
64170
64171         [BZ #14516]
64172         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
64173         failure if reading from procfs failed.
64174         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
64175
64176 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64177
64178         * sysdeps/unix/sysv/linux/kernel-features.h
64179         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
64180         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64181         Remove conditional code.
64182         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64183         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
64184         Remove conditional code.
64185         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64186         * sysdeps/unix/sysv/linux/i386/fxstat.c
64187         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64188         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64189         * sysdeps/unix/sysv/linux/i386/fxstatat.c
64190         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64191         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64192         * sysdeps/unix/sysv/linux/i386/lxstat.c
64193         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64194         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64195         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
64196         Remove conditional code.
64197         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64198         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64199         Remove conditional code.
64200         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64201         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
64202         <kernel-features.h>.
64203         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
64204         Remove.
64205         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
64206         Remove conditional code.
64207         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64208         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
64209         Remove conditional.
64210
64211 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
64212
64213         [BZ #5400]
64214         * NEWS: Add fixed bug number.
64215
64216 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64217
64218         [BZ #14519]
64219         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
64220         underflowing exponent in case of negative sign.
64221         * stdlib/tst-strtod-round-data: Add more tests.
64222         * stdlib/tst-strtod-round.c (tests): Regenerated.
64223
64224         [BZ #3479]
64225         * stdlib/strtod_l.c (NDIG): Remove.
64226         (HEXNDIG): Likewise.
64227         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
64228         smallest representable value.
64229         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
64230         lie within an exact representation of 1/2 ulp of the result.
64231         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
64232         unconditionally.
64233         (TENS_P9_IDX): Define unconditionally.
64234         (TENS_P9_SIZE): Likewise.
64235         (TENS_P10_IDX): Likewise.
64236         (TENS_P10_SIZE): Likewise.
64237         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
64238         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
64239         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
64240         entries for 10^2^13 and 10^2^14.
64241         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
64242         (TENS_P13_IDX): Define.
64243         (TENS_P13_SIZE): Likewise.
64244         (TENS_P14_IDX): Likewise.
64245         (TENS_P14_SIZE): Likewise.
64246         (_fpioconst_pow10): Change array size to
64247         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
64248         unconditional.
64249         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
64250         1024]: Add entries for 10^2^13 and 10^2^14.
64251         [LAST_POW10 > _LAST_POW10]: Remove #error.
64252         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
64253         (_fpioconst_pow10): Change array size to
64254         FPIOCONST_POW10_ARRAY_SIZE.
64255         * stdlib/gen-fpioconst.c: New file.
64256         * stdlib/gen-tst-strtod-round.c: Likewise.
64257         * stdlib/tst-strtod-round-data: Likewise.
64258         * stdlib/tst-strtod-round.c: Likewise.
64259         * stdlib/Makefile (tests): Add tst-strtod-round.
64260
64261         [BZ #14459]
64262         * stdlib/strtod_l.c: Include <stdint.h>.
64263         (NDEBUG): Do not define.
64264         (round_and_return): Change EXPONENT parameter to type intmax_t.
64265         Rearrange calculations to avoid internal overflow possibilities.
64266         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
64267         Rearrange calculations to avoid internal overflow possibilities.
64268         Assert that number fits inside MPNSIZE limbs.
64269         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
64270         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
64271         calculations and add assertions to avoid internal overflow
64272         possibilities.  Add casts to avoid signed/unsigned operations.
64273         * stdlib/tst-strtod-overflow.c: New file.
64274         * stdlib/Makefile (tests): Add tst-strtod-overflow.
64275
64276 2012-08-25  Marek Polacek  <polacek@redhat.com>
64277
64278         * time/time.h: Fix some typos in comments.
64279
64280 2012-08-23  Roland McGrath  <roland@hack.frob.com>
64281
64282         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
64283         * posix/tst-rfc3484-2.c: Likewise.
64284         * posix/tst-rfc3484-3.c: Likewise.
64285
64286 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
64287
64288         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
64289         (EF_ARM_ABI_FLOAT_HARD): Likewise.
64290
64291 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
64292
64293         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
64294         #include of fxstatat64.c.
64295
64296 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64297
64298         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
64299         * shadow/getspent_r.c: Likewise.
64300         * shadow/getspnam.c: Likewise.
64301         * shadow/getspnam_r.c: Likewise.
64302         * gshadow/getsgent.c: Likewise.
64303         * gshadow/getsgent_r.c: Likewise.
64304         * gshadow/getsgnam.c: Likewise.
64305         * gshadow/getsgnam_r.c: Likewise.
64306         * inet/getnetbyad.c: Likewise.
64307         * inet/getnetbyad_r.c: Likewise.
64308         * inet/getnetbynm.c: Likewise.
64309         * inet/getnetbynm_r.c: Likewise.
64310         * inet/getnetent.c: Likewise.
64311         * inet/getnetent_r.c: Likewise.
64312         * inet/getproto.c: Likewise.
64313         * inet/getproto_r.c: Likewise.
64314         * inet/getprtent.c: Likewise.
64315         * inet/getprtent_r.c: Likewise.
64316         * inet/getprtname.c: Likewise.
64317         * inet/getprtname_r.c: Likewise.
64318         * inet/getrpcbyname.c: Likewise.
64319         * inet/getrpcbyname_r.c: Likewise.
64320         * inet/getrpcbynumber.c: Likewise.
64321         * inet/getrpcbynumber_r.c: Likewise.
64322         * inet/getrpcent.c: Likewise.
64323         * inet/getrpcent_r.c: Likewise.
64324         * inet/getaliasent.c: Likewise.
64325         * inet/getaliasent_r.c: Likewise.
64326         * inet/getaliasname.c: Likewise.
64327         * inet/getaliasname_r.c: Likewise.
64328         * nscd/getgrgid_r.c: Likewise.
64329         * nscd/getgrnam_r.c: Likewise.
64330         * nscd/gethstbyad_r.c: Likewise.
64331         * nscd/gethstbynm3_r.c: Likewise.
64332         * nscd/getpwnam_r.c: Likewise.
64333         * nscd/getpwuid_r.c: Likewise.
64334         * nscd/getsrvbynm_r.c: Likewise.
64335         * nscd/getsrvbypt_r.c: Likewise.
64336         * nscd/gai.c: Likewise.
64337
64338         * configure.in (build_nscd): New substituted variable, set
64339         by --disable-build-nscd and defaults to $use_nscd.
64340         * configure: Regenerated.
64341         * config.make.in (build-nscd): New substituted variable.
64342         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
64343         Change conditional to require [$(build-nscd) = yes] as well.
64344         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
64345
64346         [BZ# 13696]
64347         * configure.in (use_nscd): New substituted variable, set by
64348         --disable-nscd.  If enabled, define USE_NSCD.
64349         * configure: Regenerated.
64350         * config.h.in: Add USE_NSCD.
64351         * config.make.in (use-nscd): New substituted variable.
64352         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
64353         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
64354         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
64355         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
64356         (CFLAGS-getgrnam_r.c): Likewise.
64357         (CFLAGS-initgroups.c): Likewise.
64358         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
64359         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
64360         Variables removed.
64361         * inet/getnetgrent_r.c
64362         (nscd_setnetgrent): New function, broken out of ...
64363         (setnetgrent): ... here.  Call it.
64364         (innetgr): Conditionalize nscd bits on [USE_NSCD].
64365         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
64366         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
64367         * nscd/Makefile (routines, aux): Move definitions after include of
64368         Makeconfig.  Conditionalize on [$(use-nscd) != no].
64369         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
64370         Conditionalize on [USE_NSCD].
64371         (is_nscd, nscd_init_cb): Likewise.
64372         (nss_load_library): Conditionalize init callback on [USE_NSCD].
64373         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
64374         * nss/nss_db/db-init.c: Likewise.
64375         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
64376         [USE_NSCD].
64377         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
64378         (make_request): Use it.
64379         (cache_valid_p): New function.
64380         (__check_pf): Use it.
64381         * NEWS: Add item for --disable-nscd.
64382
64383 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
64384
64385         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
64386         to support sed >= 4.2.1-20-ga9bf076.
64387         * configure: Regenerated.
64388
64389 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64390
64391         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
64392         Conditionalize whole body on [IREL].
64393
64394 2012-08-22  Jeff Law <law@redhat.com>
64395
64396         [BZ #14505]
64397         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
64398         if the family is PF_UNSPEC.
64399
64400 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
64401
64402         * Makerules (lib-version): Rename from V.
64403         (install-lib-nosubdir): Change V to lib-version.
64404
64405 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
64406
64407         [BZ #14252]
64408         * powerpc32/power6/wcschr.c: New file.
64409         * powerpc32/power6/wcscpy.c: New file.
64410         * powerpc32/power6/wcsrchr.c: New file.
64411         * powerpc64/power6/wcschr.c: New file.
64412         * powerpc64/power6/wcscpy.c: New file.
64413         * powerpc64/power6/wcsrchr.c: New file.
64414
64415 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64416
64417         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
64418         (two_way_short_needle): Use it.
64419         * string/strstr.c (AVAILABLE1_USES_J): Define.
64420         * string/strcasestr.c: Likewise.
64421
64422         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
64423         array references.
64424         * string/strcasestr.c (TOLOWER): Make side-effect safe.
64425
64426         [BZ #11607]
64427         * NEWS: Add an entry.
64428         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
64429         define their defaults.
64430         (two_way_short_needle): Detect end-of-string on-the-fly.
64431         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
64432         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
64433         * string/bug-strcasestr1.c: New test.
64434         * string/Makefile: Run it.
64435
64436 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64437
64438         [BZ #11607]
64439         * string/str-two-way.h (two_way_short_needle): Optimize matching of
64440         the first character.
64441
64442 2012-08-21  Roland McGrath  <roland@hack.frob.com>
64443
64444         * csu/elf-init.c (__libc_csu_irel): Function removed.
64445         * csu/libc-start.c (apply_irel): New function.
64446         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
64447
64448 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
64449
64450         * sysdeps/unix/sysv/linux/kernel-features.h
64451         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
64452         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64453         <kernel-features.h>.
64454         [__NR_fadvise64_64]: Make code unconditional.
64455         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
64456         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64457         !__NR_fadvise64_64)]: Likewise.
64458         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64459         !__NR_fadvise64_64))]: Likewise.
64460         [__NR_fadvise64]: Make code unconditional.
64461         [!__NR_fadvise64]: Remove conditional code.
64462         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
64463         <kernel-features.h>.
64464         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64465         unconditional.
64466         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64467         conditional code.
64468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
64469         not include <kernel-features.h>.
64470         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64471         unconditional.
64472         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64473         conditional code.
64474         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
64475         include <kernel-features.h>.
64476         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64477         unconditional.
64478         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64479         conditional code.
64480
64481 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
64482
64483         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
64484         slight instruction rearrangements per scrollpipe analysis.
64485         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
64486
64487 2012-08-20  Roland McGrath  <roland@hack.frob.com>
64488
64489         * manual/syslog.texi (syslog; vsyslog, closelog):
64490         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
64491         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
64492
64493         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
64494         DSOCAPS to match condition on defining it.
64495
64496 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
64497
64498         * sysdeps/unix/sysv/linux/kernel-features.h
64499         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
64500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
64501         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64502         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
64504         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64505         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
64507         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64508         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64509
64510         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
64511         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
64512
64513         * sysdeps/unix/sysv/linux/kernel-features.h
64514         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
64515         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
64516         unconditional.
64517         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64518         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
64519         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64520         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64521         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
64522         Make code unconditional.
64523         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64524         (__mmap64) [!__NR_mmap2]: Likewise.
64525         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
64526         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64527         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64528         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
64529         [__NR_mmap2]: Make code unconditional.
64530         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64531         (__mmap64) [!__NR_mmap2]: Likewise.
64532
64533 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64534
64535         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
64536
64537 2012-08-18  Andreas Jaeger  <aj@suse.de>
64538
64539         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
64540
64541 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64542
64543         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
64544         * include/unistd.h (__have_sock_cloexec): Likewise.
64545         (__have_pipe2): Likewise.
64546         (__have_dup3): Likewise.
64547
64548 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64549
64550         [BZ #9685]
64551         * include/unistd.h (__have_pipe2): Change define into an extern int.
64552         (__have_dup3): Likewise.
64553         * socket/have_sock_cloexec.c: Include fcntl.h.
64554         (__have_pipe2): New variable.
64555         (__have_dup3): Likewise.
64556
64557 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
64558
64559         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
64560
64561 2012-08-17  Marek Polacek  <polacek@redhat.com>
64562
64563         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
64564         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
64565
64566 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64567
64568         * configure.in: Add AC_SUBST for sysheaders.
64569         * configure: Regenerated.
64570         * config.make.in (sysheaders): New substituted variable.
64571
64572         * sysdeps/unix/mkfifo.c: Moved ...
64573         * sysdeps/posix/mkfifo.c: ... here.
64574         * sysdeps/unix/mkfifoat.c: Moved ...
64575         * sysdeps/posix/mkfifoat.c: ... here.
64576
64577         * sysdeps/unix/utime.c: Moved ...
64578         * sysdeps/posix/utime.c: ... here.
64579
64580         * sysdeps/unix/time.c: Moved ...
64581         * sysdeps/posix/time.c: ... here.
64582         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
64583         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
64584
64585         * sysdeps/unix/nice.c: Moved ...
64586         * sysdeps/posix/nice.c: ... here.
64587
64588         * sysdeps/unix/alarm.c: Moved ...
64589         * sysdeps/posix/alarm.c: ... here.
64590
64591         * intl/Makefile ($(codeset_mo)): Depend on the input file.
64592
64593 2012-08-17  Jeff Law <law@redhat.com>
64594
64595         * intl/Makefile (codeset_mo): New variable.
64596         ($(codeset_mo)): New target.
64597         (tst-codeset.out): Depend on that.  Remove explicit rule.
64598         (tst-gettext3.out, tst-gettext5.out): Likewise.
64599         (LOCPATH-ENV, tst-codeset-ENV): New variables.
64600         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
64601         * intl/tst-codeset.sh: Remove.
64602         * intl/tst-gettext3.sh: Likewise.
64603         * intl/tst-gettext5.sh: Likewise.
64604
64605 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64606
64607         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
64608         * sysdeps/unix/syscalls.list: ... here.
64609
64610         * sysdeps/posix/getaddrinfo.c
64611         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
64612         (gaiconf_init, gaiconf_reload): Use them.
64613         [!_STATBUF_ST_NSEC]
64614         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
64615         Define using time_t rather than struct timespec.
64616
64617         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
64618         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
64619         Macros removed.
64620         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
64621         [!NO_THREADS].
64622         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
64623         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
64624         Likewise.
64625
64626         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
64627         __libc_cleanup_push argument.
64628
64629         * bits/param.h: New file.
64630         * misc/sys/param.h: New file.
64631         * include/sys/param.h: New file.
64632         * misc/Makefile (headers): Add bits/param.h.
64633         * sysdeps/generic/sys/param.h: File removed.
64634         * sysdeps/unix/sysv/linux/bits/param.h: New file.
64635         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
64636         * sysdeps/mach/hurd/bits/param.h: New file.
64637         * sysdeps/mach/hurd/sys/param.h: File removed.
64638
64639         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
64640         last change.
64641
64642         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
64643         [_IO_MTSAFE_IO].
64644         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
64645         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
64646         New macros.
64647
64648         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
64649         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
64650         rather than -D_IO_MTSAFE_IO conditionally.
64651         * stdio-common/Makefile (CPPFLAGS): Likewise.
64652         * wcsmbs/Makefile (CPPFLAGS): Likewise.
64653         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
64654         Use $(libio-mtsafe).
64655         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
64656         of -D_IO_MTSAFE_IO.
64657         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
64658         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
64659         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
64660         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
64661         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
64662         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
64663         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
64664         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
64665         (CFLAGS-fread_u_chk.c): Likewise.
64666         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
64667         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
64668         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
64669         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
64670         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
64671         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
64672         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
64673         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
64674         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
64675
64676         * libio/Makefile: Test [$(libc-reentrant) = yes]
64677         instead of [$(filter %REENTRANT, $(defines)) nonempty].
64678
64679         * Makeconfig
64680         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
64681         * sysdeps/pthread/configure: File removed.
64682         * sysdeps/pthread/Makeconfig: New file.
64683         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
64684         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
64685
64686 2012-08-16  Gary Benson  <gbenson@redhat.com>
64687
64688         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
64689         unmapping the first object in a namespace.
64690
64691 2012-08-16  Roland McGrath  <roland@hack.frob.com>
64692
64693         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
64694         (__internal_setnetgrent): ... this.  Add internal_function to
64695         definition.  Add libc_hidden_def.
64696         (setnetgrent): Update caller.
64697         (internal_endnetgrent): Renamed to ...
64698         (__internal_endnetgrent): ... this.  Add internal_function to
64699         definition.  Add libc_hidden_def.
64700         (endnetgrent): Update caller.
64701         (internal_getnetgrent_r): Renamed to ...
64702         (__internal_getnetgrent_r): ... this.  Add internal_function to
64703         definition.  Add libc_hidden_def.
64704         (__getnetgrent_r): Update caller.
64705         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
64706
64707 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
64708
64709         * stdlib/longlong.h: Update from GCC.
64710
64711 2012-08-16  Roland McGrath  <roland@hack.frob.com>
64712
64713         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
64714         on _QL, which is set by umul_ppmm but never used.
64715         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
64716         variables, which are set by GMP macros but never used.
64717         * stdio-common/_itowa.c (_itowa): Likewise.
64718         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
64719         * stdlib/mod_1.c (mpn_mod_1): Likewise.
64720
64721 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
64722
64723         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
64724         struct La_sh_regs is not constant.
64725         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
64726         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
64727         and struct La_sparc64_regs are not constant.
64728
64729 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
64730
64731         * sysdeps/unix/sysv/linux/kernel-features.h
64732         (__ASSUME_POSIX_TIMERS): Remove.
64733         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
64734         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64735         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
64736         Make code unconditional.
64737         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64738         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
64739         Make code unconditional.
64740         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64741         * sysdeps/unix/sysv/linux/clock_nanosleep.c
64742         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
64743         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64744         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
64745         Make code unconditional.
64746         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64747         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
64748         (__libc_missing_posix_timers): Remove.
64749
64750 2012-08-15  Roland McGrath  <roland@hack.frob.com>
64751
64752         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
64753         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
64754
64755         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
64756
64757         * elf/dl-sym.c: Include <stdlib.h>.
64758
64759         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
64760         constants, which avoids warnings in 32-bit builds.
64761
64762         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
64763         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
64764
64765         * misc/lseek.c: File moved to ...
64766         * io/lseek.c: ... here.
64767
64768         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
64769
64770         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
64771         shifting LEN more than 31 bits at once.
64772
64773 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64774
64775         [BZ #14195]
64776         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
64777         segmentation fault for a case of two empty input strings.
64778         * string/test-strncasecmp.c (check1): Renamed to...
64779         (bz12205): ...this.
64780         (bz14195): Add new testcase for two empty input strings and N > 0.
64781         (test_main): Call new testcase, adapt for renamed function.
64782
64783 2012-08-15  Andreas Jaeger  <aj@suse.de>
64784
64785         [BZ #14090]
64786         * crypt/md5test2.c: New test, based on test supplied by Serge
64787         Belyshev <belyshev@depni.sinp.msu.ru>.
64788         * crypt/Makefile (xtests): Add md5test-giant..
64789         * crypt/Makefile ($(objpfx)md5test-giant): Add.
64790
64791 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64792
64793         [BZ #14090]
64794         * crypt/md5.c (md5_process_block): Don't assume the buffer
64795         length is less than 2**32.
64796         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
64797         length is less than 2**64.
64798
64799 2012-08-15  Roland McGrath  <roland@hack.frob.com>
64800
64801         * string/str-two-way.h: Include <sys/param.h>.
64802         (MAX): Macro removed.
64803
64804         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
64805         Move #define and #undef of memmove to just before and after
64806         including <string.h>.
64807
64808         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
64809         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
64810         and after including <string.h>.  Move declarations of
64811         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
64812         to before #include "string/memmove.c".
64813
64814         * include/dirent.h: Declare __getdirentries.
64815
64816         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
64817         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
64818
64819 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
64820
64821         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
64822         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
64823         * sysdeps/i386/configure: Regenerated.
64824         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
64825         STABS_CURRENT_FILE, and STABS_FUN.
64826         (END): Remove call to STABS_FUN_END.
64827         (STABS_CURRENT_FILE1): Delete.
64828         (STABS_CURRENT_FILE): Likewise.
64829         (STABS_FUN): Likewise.
64830         (STABS_FUN_END): Likewise.
64831         (STABS_FUN2): Likewise.
64832         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
64833         * sysdeps/x86_64/configure: Regenerated.
64834
64835 2012-08-14  Roland McGrath  <roland@hack.frob.com>
64836
64837         * elf/dl-open.c: Include <atomic.h>.
64838         * elf/dl-lookup.c: Likewise.
64839
64840 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
64841
64842         * sysdeps/unix/sysv/linux/kernel-features.h
64843         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
64844         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
64845         unconditionally.
64846         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
64847         unconditionally.
64848         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
64849         condition on __ASSUME_CLONE_THREAD_FLAGS.
64850
64851 2012-08-14  Andreas Jaeger  <aj@suse.de>
64852
64853         * sysdeps/i386/fpu/libm-test-ulps: Update.
64854
64855 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
64856
64857         * include/atomic.h (atomic_exchange_and_add): Split into ...
64858         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
64859         New atomic macros.
64860
64861 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
64862
64863         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64864
64865 2012-08-13  Jeff Law <law@redhat.com>
64866
64867         * manual/stdio.texi (snprintf): Clarify handling of the trailing
64868         null byte in the output string.
64869
64870 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
64871
64872         * sysdeps/unix/sysv/linux/kernel-features.h
64873         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
64874         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
64875         (__ASSUME_ARG_MAX_STACK_BASED): Define.
64876         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
64877         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
64878         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
64879         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
64880
64881 2012-08-09  Jeff Law <law@redhat.com>
64882
64883         [BZ #13939]
64884         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
64885         When avoid_arena is set, don't retry in the that arena.  Pick the
64886         next one, whatever it might be.
64887         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
64888         (arena_lock): Pass in new parameter to arena_get2.
64889         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
64890         arena_get2.
64891         (__libc_malloc): Unify retrying after main arena failure with
64892         __libc_memalign version.
64893         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
64894
64895 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
64896
64897         [BZ #14166]
64898         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
64899         to __redirect_strstr.
64900         (__strstr_sse42): Use typeof __redirect_strstr.
64901         (__strstr_ia32): Likewise.
64902         (__libc_strstr): New prototype.
64903         (strstr): Renamed to ...
64904         (__libc_strstr): This.
64905         (strstr): New strong alias of __libc_strstr.
64906         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
64907         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
64908         __redirect_time.
64909         Include <time.h>.
64910         (__libc_time): New prototype.
64911         (time_ifunc): Replace time with __libc_time.
64912         (time): New strong alias and hidden definition of __libc_time.
64913         (__GI_time): Remove strong alias.
64914         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
64915         Include <stddef.h>.
64916         (memmove): Redefined to __redirect_memmove.
64917         (__memmove_sse2): Use typeof __redirect_memmove.
64918         (__memmove_ssse3): Likewise.
64919         (__memmove_ssse3_back): Likewise.
64920         (__libc_memmove): New prototype.
64921         (memmove): Renamed to ...
64922         (__libc_memmove): This.
64923         (memmove): New strong alias of __libc_memmove.
64924
64925 2012-08-08  Mark Salter  <msalter@redhat.com>
64926
64927         * elf/elf.h
64928         (R_MN10300_TLS_GD): Define.
64929         (R_MN10300_TLS_LD): Likewise.
64930         (R_MN10300_TLS_LDO): Likewise.
64931         (R_MN10300_TLS_GOTIE): Likewise.
64932         (R_MN10300_TLS_IE): Likewise.
64933         (R_MN10300_TLS_LE): Likewise.
64934         (R_MN10300_TLS_DTPMOD): Likewise.
64935         (R_MN10300_TLS_DTPOFF): Likewise.
64936         (R_MN10300_TLS_TPOFF): Likewise.
64937         (R_MN10300_SYM_DIFF): Likewise.
64938         (R_MN10300_ALIGN): Likewise.
64939         (R_MN10300_NUM): Update.
64940
64941 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
64942
64943         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
64944         Remove.
64945
64946 2012-08-08  Roland McGrath  <roland@hack.frob.com>
64947
64948         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
64949
64950         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
64951         sysdeps/unix -> sysdeps/posix move.
64952         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
64953
64954 2012-08-07      Allan McRae     <allan@archlinux.org>
64955
64956         [BZ #14303]
64957         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
64958         (SUNOS_CPP): Likewise.
64959         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
64960         not found.
64961         (open_input): Call CPP using execvp.
64962
64963 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
64964
64965         * sysdeps/unix/sysv/linux/kernel-features.h
64966         (__ASSUME_PROT_GROWSUPDOWN): Remove.
64967         (__ASSUME_NO_CLONE_DETACHED): Likewise.
64968         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
64969         (__ASSUME_WAITID_SYSCALL): Likewise.
64970         * sysdeps/unix/sysv/linux/dl-execstack.c
64971         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
64972         code unconditional.
64973         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
64974         conditional code.
64975         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
64976         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
64977         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
64978         code.
64979         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
64980         unconditional.
64981         [__ASSUME_WAITID_SYSCALL]: Likewise.
64982         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
64983
64984 2012-08-07  Roland McGrath  <roland@hack.frob.com>
64985
64986         * sysdeps/unix/closedir.c: Renamed to ...
64987         * sysdeps/posix/closedir.c: ... here.
64988         * sysdeps/unix/dirfd.c: Renamed to ...
64989         * sysdeps/posix/dirfd.c: ... here.
64990         * sysdeps/unix/dirstream.h: Renamed to ...
64991         * sysdeps/posix/dirstream.h: ... here.
64992         * sysdeps/unix/fdopendir.c: Renamed to ...
64993         * sysdeps/posix/fdopendir.c: ... here.
64994         * sysdeps/unix/opendir.c: Renamed to ...
64995         * sysdeps/posix/opendir.c: ... here.
64996         * sysdeps/unix/readdir.c: Renamed to ...
64997         * sysdeps/posix/readdir.c: ... here.
64998         * sysdeps/unix/readdir_r.c: Renamed to ...
64999         * sysdeps/posix/readdir_r.c: ... here.
65000         * sysdeps/unix/rewinddir.c: Renamed to ...
65001         * sysdeps/posix/rewinddir.c: ... here.
65002         * sysdeps/unix/seekdir.c: Renamed to ...
65003         * sysdeps/posix/seekdir.c: ... here.
65004         * sysdeps/unix/telldir.c: Renamed to ...
65005         * sysdeps/posix/telldir.c: ... here.
65006         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
65007         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
65008         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
65009         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
65010
65011         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
65012         * bits/fcntl.h: ... here.
65013
65014         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
65015         not 0.
65016         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
65017         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
65018         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
65019         (struct flock): Move l_start, l_len to the beginning.
65020         Use __pid_t for l_pid.
65021         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
65022         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
65023         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
65024         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
65025         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
65026         [__USE_LARGEFILE64] (struct flock64): New type.
65027         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
65028
65029         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
65030         * bits/dirent.h: ... here.
65031
65032         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
65033         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
65034
65035 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65036
65037         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65038         Change from 2.6.0 to 2.6.16.
65039         * sysdeps/unix/sysv/linux/configure: Regenerated.
65040         * sysdeps/unix/sysv/linux/kernel-features.h
65041         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
65042         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
65043         version.
65044         (__ASSUME_UTIMES): Likewise.
65045         (__ASSUME_CLONE_STOPPED): Remove.
65046         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
65047         architectures, not kernel version.
65048         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
65049         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65050         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65051         (__ASSUME_WAITID_SYSCALL): Likewise.
65052         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
65053         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
65054         * README: State 2.6.16 as minimum Linux kernel version.  Do not
65055         refer to older versions.
65056
65057 2012-08-06  Roland McGrath  <roland@hack.frob.com>
65058
65059         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
65060         Define alphasort64 as an alias.
65061         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
65062         Define versionsort64 as an alias.
65063         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
65064         Define scandir64 as an alias.
65065         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
65066         Define scandirat64 as an alias.
65067         * dirent/alphasort64.c (alphasort64):
65068         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
65069         * dirent/versionsort64.c: Likewise.
65070         * dirent/scandir64.c: Likewise.
65071         * dirent/scandirat64.c: Likewise.
65072         * sysdeps/wordsize-64/alphasort.c: File removed.
65073         * sysdeps/wordsize-64/alphasort64.c: File removed.
65074         * sysdeps/wordsize-64/scandir.c: File removed.
65075         * sysdeps/wordsize-64/scandir64.c: File removed.
65076         * sysdeps/wordsize-64/scandirat.c: File removed.
65077         * sysdeps/wordsize-64/scandirat64.c: File removed.
65078         * sysdeps/wordsize-64/versionsort.c: File removed.
65079         * sysdeps/wordsize-64/versionsort64.c: File removed.
65080         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
65081         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
65082         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
65083         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
65084         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
65085         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
65086         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
65087         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
65088
65089         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
65090         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65091         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
65092         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65093         [defined __arch64__ || defined __sparcv9]
65094         (__INO_T_MATCHES_INO64_T): New macro.
65095         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65096         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
65097         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
65098         * sysdeps/unix/sysv/linux/bits/dirent.h
65099         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
65100         (_DIRENT_MATCHES_DIRENT64): New macro.
65101
65102         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
65103         Define lockf64 as an alias.
65104         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
65105         Define fseeko64 as an alias.
65106         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
65107         Define ftello64 as an alias.
65108         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
65109         Define _IO_fgetpos64 and fgetpos64 as aliases.
65110         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
65111         Define _IO_fsetpos64 and fsetpos64 as aliases.
65112         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
65113         Conditionalize body on this.
65114         * libio/fseeko64.c: Likewise.
65115         * libio/ftello64.c: Likewise.
65116         * libio/iofgetpos64.c: Likewise.
65117         * libio/iofsetpos64.c: Likewise.
65118         * sysdeps/wordsize-64/lockf.c: File removed.
65119         * sysdeps/wordsize-64/lockf64.c: File removed.
65120         * sysdeps/wordsize-64/fseeko.c: File removed.
65121         * sysdeps/wordsize-64/fseeko64.c: File removed.
65122         * sysdeps/wordsize-64/ftello.c: File removed.
65123         * sysdeps/wordsize-64/ftello64.c: File removed.
65124         * sysdeps/wordsize-64/iofgetpos.c: File removed.
65125         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
65126         * sysdeps/wordsize-64/iofsetpos.c: File removed.
65127         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
65128         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
65129         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
65130         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
65131         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
65132         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
65133         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
65134         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
65135         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
65136         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
65137         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
65138
65139         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65140         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65141         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
65142         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65143         [defined __arch64__ || defined __sparcv9]
65144         (__OFF_T_MATCHES_OFF64_T): New macro.
65145         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65146         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65147         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65148         (__OFF_T_MATCHES_OFF64_T): New macro.
65149
65150 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65151
65152         * stdlib/secure-getenv.c (__secure_getenv): Replace
65153         GLIBC_2_16 with GLIBC_2_17.
65154
65155 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65156
65157         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
65158         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
65159
65160 2012-08-03  David S. Miller  <davem@davemloft.net>
65161
65162         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65163
65164 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65165
65166         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
65167         Remove.
65168         (__ASSUME_CORRECT_SI_PID): Likewise.
65169         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
65170         (__ASSUME_TMPFS_NAME): Likewise.
65171         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
65172         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
65173         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
65174         (HAVE_AUX_SECURE): Make definition unconditional.
65175         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
65176         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
65177
65178 2012-08-03  Roland McGrath  <roland@hack.frob.com>
65179
65180         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
65181         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
65182         * sysdeps/mach/hurd/eloop-threshold.h: New file.
65183         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
65184         __eloop_threshold instead of SYMLOOP_MAX.
65185
65186         * sysdeps/generic/eloop-threshold.h: New file.
65187         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
65188         of MAXSYMLINKS.
65189         * elf/chroot_canon.c (chroot_canon): Likewise.
65190
65191 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65192
65193         [BZ #13717]
65194         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65195         Change to 2.6.0 everywhere.
65196         * sysdeps/unix/sysv/linux/configure: Regenerated.
65197         * sysdeps/unix/sysv/linux/kernel-features.h
65198         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
65199         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
65200         kernel versions.
65201         (__ASSUME_POSIX_TIMERS): Define unconditionally.
65202         (__ASSUME_FUTEX_REQUEUE): Remove.
65203         (__ASSUME_STATFS64): Define unconditionally.
65204         (__ASSUME_AT_SECURE): Likewise.
65205         (__ASSUME_CORRECT_SI_PID): Likewise.
65206         (__ASSUME_TGKILL): Define without depending on kernel version for
65207         i386.
65208         (__ASSUME_UTIMES): Likewise.
65209         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
65210         kernel version.
65211         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
65212         (__ASSUME_TMPFS_NAME): Likewise.
65213         * README: Update reference to Linux kernel versions.
65214
65215 2012-08-02  Marek Polacek  <polacek@redhat.com>
65216
65217         [BZ# 14150]
65218         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
65219         libc_cv_asm_type_prefix with %.
65220         * configure: Regenerated.
65221         * include/libc-symbols.h: Remove comment about
65222         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65223         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
65224         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
65225         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
65226         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
65227         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65228         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
65229         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
65230         * elf/tst-unique2mod1.c: Likewise.
65231         * elf/tst-unique1mod2.c: Likewise.
65232         * elf/tst-unique1mod1.c: Likewise.
65233         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
65234         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
65235         Replace ASM_TYPE_DIRECTIVE with .type.
65236         * sysdeps/s390/s390-64/sysdep.h: Likewise.
65237         * sysdeps/i386/sysdep.h: Likewise.
65238         * sysdeps/x86_64/sysdep.h: Likewise.
65239         * sysdeps/sh/sysdep.h: Likewise.
65240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
65241         Do not define ASM_TYPE_DIRECTIVE.
65242         * sysdeps/powerpc/sysdep.h: Likewise.
65243         * sysdeps/powerpc/powerpc32/sysdep.h:
65244         Replace ASM_TYPE_DIRECTIVE with .type.
65245         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
65246         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
65247         * sysdeps/i386/fpu/e_powf.S: Likewise.
65248         * sysdeps/i386/fpu/e_expl.S: Likewise.
65249         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
65250         * sysdeps/i386/fpu/e_acosh.S: Likewise.
65251         * sysdeps/i386/fpu/e_pow.S: Likewise.
65252         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
65253         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
65254         * sysdeps/i386/fpu/s_expm1.S: Likewise.
65255         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
65256         * sysdeps/i386/fpu/e_log2.S: Likewise.
65257         * sysdeps/i386/fpu/e_log2l.S: Likewise.
65258         * sysdeps/i386/fpu/e_scalb.S: Likewise.
65259         * sysdeps/i386/fpu/e_powl.S: Likewise.
65260         * sysdeps/i386/fpu/e_log10f.S: Likewise.
65261         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
65262         * sysdeps/i386/fpu/e_logl.S: Likewise.
65263         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
65264         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
65265         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
65266         * sysdeps/i386/fpu/e_log2f.S: Likewise.
65267         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
65268         * sysdeps/i386/fpu/e_log.S: Likewise.
65269         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
65270         * sysdeps/i386/fpu/e_logf.S: Likewise.
65271         * sysdeps/i386/fpu/e_log10l.S: Likewise.
65272         * sysdeps/i386/fpu/e_atanh.S: Likewise.
65273         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
65274         * sysdeps/i386/fpu/e_log10.S: Likewise.
65275         * sysdeps/i386/fpu/s_frexp.S: Likewise.
65276         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
65277         * sysdeps/i386/fpu/s_asinh.S: Likewise.
65278         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
65279         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
65280         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
65281         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
65282         * sysdeps/i386/i686/strtok.S: Likewise.
65283         * sysdeps/i386/i386-mcount.S: Likewise.
65284         * sysdeps/i386/strtok.S: Likewise.
65285         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
65286         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
65287         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65288         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
65289         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
65290         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
65291         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
65292         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
65293         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
65294         * sysdeps/x86_64/_mcount.S: Likewise.
65295         * sysdeps/x86_64/strtok.S: Likewise.
65296         * sysdeps/sh/_mcount.S: Likewise.
65297
65298 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65299
65300         * libio/iofopen.c: Include <fcntl.h>.
65301         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
65302         (_IO_fopen64, fopen64): Define as aliases.
65303         * libio/iofopen64.c: Include <fcntl.h>.
65304         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
65305         Conditionalize body on this.
65306         * sysdeps/wordsize-64/iofopen.c: File removed.
65307         * sysdeps/wordsize-64/iofopen64.c: File removed.
65308
65309 2012-08-01  Marek Polacek  <polacek@redhat.com>
65310
65311         * libc/Makeconfig: Use elf in place of binfmt-subdir.
65312         Use dlfcn directly instead of a variable.
65313         (binfmt-subdir): Do not define.
65314         (dlfcn): Likewise.
65315
65316 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
65317
65318         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
65319         Remove all definitions.
65320         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
65321         <kernel-features.h>.
65322         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65323         (miss_F_GETOWN_EX): Remove all definitions.
65324         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
65325         macro definition.
65326         [!__ASSUME_FCNTL64]: Remove conditional code.
65327         [__ASSUME_FCNTL64]: Make code unconditional.
65328         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
65329         <kernel-features.h>.
65330         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65331         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
65332         (lockf64) [__NR_fcntl64]: Make code unconditional.
65333         (lockf64) [__ASSUME_FCNTL64]: Likewise.
65334
65335         * sysdeps/unix/sysv/linux/kernel-features.h
65336         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
65337         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
65338         Make code unconditional.
65339         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65340         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
65342         [__NR_vfork]: Make code unconditional.
65343         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65344         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
65346         [__NR_vfork]: Make code unconditional.
65347         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65348         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65349
65350 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65351
65352         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
65353         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
65354
65355         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65356         Define mkstemp64 as an alias.
65357         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65358         Define mkstemps64 as an alias.
65359         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65360         Define mkostemp64 as an alias.
65361         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65362         Define mkostemps64 as an alias.
65363         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
65364         Conditionalize body on this.
65365         * misc/mkostemp64.c: Likewise.
65366         * misc/mkostemps64.c: Likewise.
65367         * misc/mkstemps64.c: Likewise.
65368         * sysdeps/wordsize-64/mkstemp64.c: File removed.
65369         * sysdeps/wordsize-64/mkostemp64.c: File removed.
65370         * sysdeps/wordsize-64/mkostemp.c: File removed.
65371         * sysdeps/wordsize-64/mkstemp.c: File removed.
65372         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
65373         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
65374         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
65375         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
65376
65377         [BZ #14138]
65378         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
65379         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
65380         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
65381         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
65382
65383         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
65384         compat_symbol macros from <shlib-compat.h> rather than the underlying
65385         default_symbol_version and symbol_version macros, so that DEFAULT
65386         lines in shlib-versions are respected.
65387         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
65388
65389 2012-08-01  Florian Weimer  <fweimer@redhat.com>
65390
65391         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
65392         Declare with warn_unused_result.
65393         (setgid, setregid, setegid, setresgid): Likewise.
65394         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
65395         Likewise.
65396         * WUR-REPORT: Remove set*id functions.
65397
65398 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
65399
65400         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
65401
65402 2012-07-31  Roland McGrath  <roland@hack.frob.com>
65403
65404         [BZ #10191]
65405         * include/sys/socket.h (__libc_accept, __libc_accept4):
65406         Add attribute_hidden.
65407         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
65408
65409         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
65410         use of PTR_MANGLE.
65411         * inet/getnetgrent_r.c (setup): Likewise.
65412
65413         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
65414
65415 2012-07-31  David S. Miller  <davem@davemloft.net>
65416
65417         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65418
65419 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
65420
65421         [BZ #13629]
65422         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
65423         value between 1.0 and 2.0 and smaller part has absolute value less
65424         than 1.0.
65425         * math/s_clog10.c (__clog10): Likewise.
65426         * math/s_clog10f.c (__clog10f): Likewise.
65427         * math/s_clog10l.c (__clog10l): Likewise.
65428         * math/s_clogf.c (__clogf): Likewise.
65429         * math/s_clogl.c (__clogl): Likewise.
65430         * math/libm-test.inc (clog_test): Add more tests.
65431         (clog10_test): Likewise.
65432         * sysdeps/i386/fpu/libm-test-ulps: Update.
65433         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65434
65435 2012-07-31  Florian Weimer  <fweimer@redhat.com>
65436
65437         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
65438         Exit with zero in case no suitable GID is found, and write a
65439         message to standard error.
65440
65441 2012-07-30  Roland McGrath  <roland@hack.frob.com>
65442
65443         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
65444         rather than to 1.
65445         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
65446         (MAXPATHLEN): Removed.
65447         (NOGROUP, NODEV): New macros.
65448         (setbit, clrbit, isset, isclr): New macros.
65449         (howmany, roundup, powerof2): New macros.
65450         (DEV_BSIZE): New macro.
65451
65452         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
65453         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
65454
65455         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
65456         definition on [!__NO_LONG_DOUBLE_MATH].
65457
65458         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
65459         PTR_MANGLE and PTR_DEMANGLE.
65460
65461         * socket/accept4.c (accept4): Rename to __libc_accept4.
65462         Define accept4 as a weak alias.
65463
65464         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
65465         on [_DIRENT_HAVE_D_TYPE].
65466         * io/ftw.c (ftw_dir): Likewise.
65467
65468         * io/xmknod.c (__xmknod): Don't check PATH for being null.
65469
65470         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
65471
65472         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
65473         Use the BSD numbers rather than the arbitrary ones we had.
65474         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
65475         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
65476         (SIGXCPU, SIGXFSZ): New macros.
65477         (_NSIG): Now 32.
65478
65479         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
65480         initializer on [_LIBC_REENTRANT].
65481
65482         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
65483         definitions inside [_POSIX_MAPPED_FILES].
65484
65485         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
65486
65487         * dirent/opendir.c: Include <fcntl.h>.
65488
65489         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
65490         (__libc_getspecific): Likewise.
65491         (__libc_key_create): Likewise.
65492
65493         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
65494         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
65495         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
65496         (tmpfile64): Define as alias.
65497         * sysdeps/wordsize-64/tmpfile.c: File removed.
65498         * sysdeps/wordsize-64/tmpfile64.c: File removed.
65499         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
65500         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
65501
65502         * stdio-common/vfscanf.c: Include <stdbool.h>.
65503         * nss/makedb.c: Likewise.
65504         * stdio-common/_i18n_number.h: Likewise.
65505         * argp/argp-help.c: Likewise.
65506         * posix/wordexp.c: Likewise.
65507         * sysdeps/posix/spawni.c: Likewise.
65508         * nss/nss_files/files-initgroups.c: Likewise.
65509         * stdio-common/reg-modifier.c: Include <stdlib.h>.
65510         * nss/nss_files/files-initgroups.c: Likewise.
65511         * nss/nss_db/db-netgrp.c: Likewise.
65512         * nss/nss_db/db-initgroups.c: Likewise.
65513         * io/fchmodat.c: Include <sys/stat.h>.
65514
65515         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
65516         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
65517
65518         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
65519         [HAVE_MMAP].
65520
65521         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
65522         Add multiple inclusion protection.
65523
65524 2012-07-27  David S. Miller  <davem@davemloft.net>
65525
65526         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65527
65528 2012-07-27  Gary Benson  <gbenson@redhat.com>
65529
65530         [BZ #14298]
65531         * elf/rtld.c: Include <stap-probe.h>.
65532         (dl_main): Added static probes "init_start" and "init_complete".
65533         * elf/dl-load.c: Include <stap-probe.h>.
65534         (lose): Take new parameter "nsid".
65535         Added static probe "map_failed".
65536         (_dl_map_object_from_fd): Pass namespace id to lose.
65537         Added static probe "map_start".
65538         (open_verify): Pass namespace id to lose.
65539         * elf/dl-open.c: Include <stap-probe.h>.
65540         (dl_open_worker) Added static probes "map_complete", "reloc_start"
65541         and "reloc_complete".
65542         * elf/dl-close.c: Include <stap-probe.h>.
65543         (_dl_close_worker): Added static probes "unmap_start" and
65544         "unmap_complete".
65545         * elf/rtld-debugger-interface.txt: New file documenting the above.
65546
65547 2012-07-26  Roland McGrath  <roland@hack.frob.com>
65548
65549         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
65550         rather than a string variable.
65551         * sunrpc/rpc_main.c (h_output): Likewise.
65552         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
65553
65554 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
65555
65556         * inet/check_native.c: New file.
65557
65558 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
65559
65560         [BZ #13629]
65561         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
65562         if larger part has absolute value 1.0.
65563         * math/s_clog10.c (__clog10): Likewise.
65564         * math/s_clog10f.c (__clog10f): Likewise.
65565         * math/s_clog10l.c (__clog10l): Likewise.
65566         * math/s_clogf.c (__clogf): Likewise.
65567         * math/s_clogl.c (__clogl): Likewise.
65568         * math/libm-test.inc (clog_test): Add more tests.
65569         (clog10_test): Likewise.
65570         * sysdeps/i386/fpu/libm-test-ulps: Update.
65571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65572
65573         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
65574         (pltexit): Likewise.
65575         (La_regs): Likewise.
65576         (La_retval): Likewise.
65577         (int_retval): Likewise.
65578         Update #error for removed macros to refer only to definitions in
65579         tst-audit.h.
65580         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
65581         macro.
65582         (pltexit): Likewise.
65583         (La_regs): Likewise.
65584         (La_retval): Likewise.
65585         (int_retval): Likewise.
65586         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
65587         macro.
65588         (pltexit): Likewise.
65589         (La_regs): Likewise.
65590         (La_retval): Likewise.
65591         (int_retval): Likewise.
65592         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
65593         macro.
65594         (pltexit): Likewise.
65595         (La_regs): Likewise.
65596         (La_retval): Likewise.
65597         (int_retval): Likewise.
65598         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
65599         macro.
65600         (pltexit): Likewise.
65601         (La_regs): Likewise.
65602         (La_retval): Likewise.
65603         (int_retval): Likewise.
65604         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
65605         macro.
65606         (pltexit): Likewise.
65607         (La_regs): Likewise.
65608         (La_retval): Likewise.
65609         (int_retval): Likewise.
65610         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
65611         macro.
65612         (pltexit): Likewise.
65613         (La_regs): Likewise.
65614         (La_retval): Likewise.
65615         (int_retval): Likewise.
65616         * sysdeps/generic/tst-audit.h: Update comment to refer only to
65617         macro definitions in tst-audit.h.
65618         * sysdeps/i386/tst-audit.h: New file.
65619         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
65620         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
65621         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
65622         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
65623         * sysdeps/sh/tst-audit.h: Likewise.
65624         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
65625         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
65626         * sysdeps/x86_64/tst-audit.h: Likewise.
65627
65628 2012-07-26  Andreas Jaeger  <aj@suse.de>
65629
65630         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
65631         ptrace.
65632
65633         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
65634         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
65635         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
65636         PTRACE_O_MASK.
65637         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
65638         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
65639         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
65640
65641         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
65642         value.
65643
65644         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
65645         _sigsys.
65646         (si_call_addr, si_syscall, si_arch): Define new macro.
65647         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
65648         _sigsys.
65649         (si_call_addr, si_syscall, si_arch): Define new marcro.
65650         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
65651         _sigsys.
65652         (si_call_addr, si_syscall, si_arch): Define new macro.
65653         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
65654         _sigsys.
65655         (si_call_addr, si_syscall, si_arch): Define new macro.
65656
65657 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
65658
65659         [BZ #13717]
65660         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65661         Change to 2.4.21 where previously 2.4.1.
65662         * sysdeps/unix/sysv/linux/configure: Regenerated.
65663         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
65664         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
65665         Linux kernel version.
65666         (__ASSUME_STD_AUXV): Remove.
65667         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
65668         kernel version.
65669         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
65670         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
65671         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
65672         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
65673         (__ASSUME_NETLINK_SUPPORT): Likewise.
65674         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
65675         (__no_netlink_support): Remove conditional definition.
65676         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
65677         Remove.
65678         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
65679         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
65680         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
65681         (if_nameindex_ioctl): Remove.
65682         (if_nameindex_netlink): Do not handle __no_netlink_support.
65683         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
65684         code.
65685         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
65686         Remove conditional code.
65687         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
65688         code.
65689         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
65690         unconditional.
65691         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
65692         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
65693         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
65694         Remove.
65695         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
65696         [!__ASSUME_STD_AUXV]: Remove conditional code.
65697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
65698         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
65699         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
65700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
65701         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
65702         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
65703         code.
65704         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
65705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
65706         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
65707         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
65708         conditional code.
65709         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
65710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
65711         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
65712         code.
65713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
65714         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
65715         conditional code.
65716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
65717         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
65718         code unconditional.
65719         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65720         conditional code.
65721         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
65722         unconditional.
65723         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65724         conditional code.
65725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
65726         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
65727         unconditional.
65728         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65729         conditional code.
65730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
65731         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
65732         code unconditional.
65733         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65734         conditional code.
65735         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
65736         unconditional.
65737         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65738         conditional code.
65739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
65740         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
65741         code unconditional.
65742         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65743         conditional code.
65744         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
65745         unconditional.
65746         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65747         conditional code.
65748
65749 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
65750
65751         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
65752         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
65753         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
65754         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
65755         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
65756         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
65757         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
65758         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
65759         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
65760         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
65761         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
65762         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
65763         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
65764         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
65765         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
65766         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
65767         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
65768         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
65769         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
65770         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
65771         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
65772         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
65773         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
65774
65775 2012-07-25  Florian Weimer  <fweimer@redhat.com>
65776
65777         * Versions.def: Add GLIBC_2.17.
65778         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
65779         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
65780         Introduce __libc_secure_getenv.
65781         * stdlib/Versions (2.17): Add secure_getenv
65782         (GLIBC_PRIVATE): Add __libc_secure_getenv.
65783         * stdlib/secure-getenv.c: Rename __secure_getenv to
65784         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
65785         symbol __secure_getenv for GLIBC_2.0.
65786         * stdlib/tst-secure-getenv.c: New.
65787         * stdlib/Makefile (tests): Add testcase.
65788         * manual/startup.texi (Environment Access): Document
65789         secure_getenv.
65790         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
65791         __libc_secure_getenv.
65792         * inet/ruserpass.c (ruserpass): Likewise.
65793         * malloc/mtrace.c (mtrace): Likewise.
65794         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
65795         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
65796         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
65797         * sysdeps/posix/tempname.c: Likewise.  Evaluate
65798         HAVE_SECURE_GETENV.
65799         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
65800         __secure_getenv to __libc_secure_getenv.
65801         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
65802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65803         Likewise.
65804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65805         Likewise.
65806         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
65807         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
65808         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
65809         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
65810         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
65811         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
65812         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
65813
65814 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
65815
65816         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
65817         (struct La_i86_retval): Likewise.
65818         (struct La_x86_64_regs): Likewise.
65819         (struct La_x86_64_retval): Likewise.
65820         (struct La_x32_regs): Likewise.
65821         (struct La_x32_retval): Likewise.
65822         (struct La_ppc32_regs): Likewise.
65823         (struct La_ppc32_retval): Likewise.
65824         (struct La_ppc64_regs): Likewise.
65825         (struct La_ppc64_retval): Likewise.
65826         (struct La_sh_regs): Likewise.
65827         (struct La_sh_retval): Likewise.
65828         (struct La_s390_32_regs): Likewise.
65829         (struct La_s390_32_retval): Likewise.
65830         (struct La_s390_64_regs): Likewise.
65831         (struct La_s390_64_retval): Likewise.
65832         (struct La_sparc32_regs): Likewise.
65833         (struct La_sparc32_retval): Likewise.
65834         (struct La_sparc64_regs): Likewise.
65835         (struct La_sparc64_retval): Likewise.
65836         (struct audit_ifaces): Remove architecture-specific pltenter and
65837         pltexit members.
65838         * sysdeps/i386/ldsodefs.h: New file.
65839         * sysdeps/powerpc/ldsodefs.h: Likewise.
65840         * sysdeps/s390/ldsodefs.h: Likewise.
65841         * sysdeps/sh/ldsodefs.h: Likewise.
65842         * sysdeps/sparc/ldsodefs.h: Likewise.
65843         * sysdeps/x86_64/ldsodefs.h: Likewise.
65844
65845 2012-07-25  Marek Polacek  <polacek@redhat.com>
65846
65847         [BZ #6808]
65848         * math/libm-test.inc (yn_test): Add another test.
65849         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
65850         to ERANGE when the result is +-Inf.
65851         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
65852         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
65853         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
65854         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
65855
65856 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
65857
65858         * conform/data/time.h-data (NULL): Use macro-constant.  Require
65859         equal to 0.
65860         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
65861         clock_t.
65862         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
65863
65864 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
65865
65866         * configure.in <sysdeps resolving>: Correct printing
65867         Implies_before.
65868         * configure: Regenerate.
65869
65870 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
65871
65872         * math/w_ilogb.c: Include <limits.h>.
65873         * math/w_ilogbl.c: Likewise.
65874
65875 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
65876
65877         * manual/lang.texi (__va_copy): Document primarily as ISO C99
65878         va_copy.  Document allowing for unavailable va_copy only as
65879         pre-C99 compatibility.
65880         * manual/string.texi (Copying and Concatenation): Use va_copy
65881         instead of __va_copy in concat example.
65882
65883 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
65884
65885         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
65886         (__sendto): Use create_address_port.  Initialize APORT and deallocate
65887         it if not null.
65888
65889         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
65890         with O_NOLINK passed to __file_name_lookup.
65891
65892         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
65893         with O_NOLINK passed to __file_name_lookup.
65894
65895         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
65896         negative N or less than NGIDS.
65897
65898         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
65899         type to string_t.  Set ERANGE as errno and return it if NAME is not big
65900         enough.  Use memcpy instead of strncpy.
65901
65902 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
65903
65904         * elf/Makefile (check-data): Remove.
65905         (localplt.data): New vpath directive.
65906         ($(objpfx)check-localplt.out): Use localplt.data from vpath
65907         instead of $(check-data).
65908         * scripts/data/localplt-generic.data: Move to ...
65909         * sysdeps/generic/localplt.data: ... here.
65910         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
65911         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
65912         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
65913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
65914         ... here.
65915         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
65916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
65917         ... here.
65918         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
65919         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
65920         ... here.
65921         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
65922         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
65923         ... here.
65924         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
65925         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
65926         ... here.
65927         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
65928         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
65929         ... here.
65930
65931 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65932
65933         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
65934         PPC32 and PPC64 files.
65935         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
65936         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
65937
65938 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65939
65940         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
65941         __makecontext_ret to ...
65942         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
65943         ... here and call exit if uc_link is NULL.  New file.
65944         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
65945         __makecontext_ret.S.
65946         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
65947         __makecontext_ret to ...
65948         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
65949         ... here and call exit if uc_link is NULL.  New file.
65950         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
65951         __makecontext_ret.S.
65952
65953 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65954
65955         * elf/elf.h (R_390_IRELATIVE): New definition.
65956         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
65957         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
65958         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
65959         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
65960         (elf_machine_lazy_rel): Likewise.
65961         * sysdeps/s390/dl-irel.h: New file.
65962         * sysdeps/s390/s390-64/memcpy.S: New asm code.
65963         * sysdeps/s390/s390-64/memset.S: New asm code.
65964         * sysdeps/s390/s390-64/memcmp.S: New asm code.
65965         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
65966         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
65967         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
65968         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
65969         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
65970         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
65971         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
65972         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
65973         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
65974         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
65975         * sysdeps/s390/s390-32/memcpy.S: New asm code.
65976         * sysdeps/s390/s390-32/memset.S: New asm code.
65977         * sysdeps/s390/s390-32/memcmp.S: New asm code.
65978
65979 2012-07-17  Marek Polacek  <polacek@redhat.com>
65980
65981         [BZ #14349]
65982         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
65983         * sysdeps/s390/s390-64/configure.in: Likewise.
65984         * sysdeps/sparc/configure.in: Likewise.
65985         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
65986         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
65987         * sysdeps/i386/configure.in: Likewise.
65988         * sysdeps/x86_64/configure.in: Likewise.
65989         * sysdeps/sh/configure.in: Likewise.
65990         * sysdeps/s390/s390-32/configure: Regenerated.
65991         * sysdeps/s390/s390-64/configure: Likewise.
65992         * sysdeps/x86_64/configure: Likewise.
65993         * sysdeps/sh/configure: Likewise.
65994         * sysdeps/powerpc/powerpc64/configure: Likewise.
65995         * sysdeps/powerpc/powerpc32/configure: Likewise.
65996         * sysdeps/sparc/configure: Likwise.
65997         * sysdeps/i386/configure: Likewise.
65998
65999         * elf/dl-open.c: Comment fixes.
66000
66001 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
66002
66003         * Makefile [CXX] (check-data): Remove.
66004         [CXX] (c++-types.data): New vpath directive.
66005         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
66006         vpath.  Do not allow for C++ type data being missing.
66007         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
66008         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
66009         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
66010         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
66011         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
66012         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
66013         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
66014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
66015         ... here.
66016         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
66017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
66018         ... here.
66019         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
66020         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
66021         ... here.
66022         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
66023         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
66024         ... here.
66025         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
66026         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
66027         ... here.
66028         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
66029         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
66030         ... here.
66031         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
66032         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
66033         ... here.
66034         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
66035         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
66036
66037         * elf/tls-macros.h (TLS_LE): Move architecture-specific
66038         definitions to architecture-specific files.
66039         (TLS_IE): Likewise.
66040         (TLS_LD): Likewise.
66041         (TLS_GD): Likewise.
66042         * sysdeps/i386/tls-macros.h: New file.
66043         * sysdeps/powerpc/tls-macros.h: Likewise.
66044         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
66045         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
66046         * sysdeps/sh/tls-macros.h: Likewise.
66047         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
66048         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
66049         * sysdeps/x86_64/tls-macros.h: Likewise.
66050
66051 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66052
66053         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
66054         zero value for regular exit case.
66055
66056         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
66057         (__start_context): Preserve zero value for regular exit case.
66058
66059 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66060             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66061
66062         * manual/setjmp.texi (setcontext): Clarify normal process
66063         termination when uc_link is the null pointer.
66064         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
66065         exit call.
66066
66067 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
66068
66069         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
66070         preprocessor.  Test for each exception mask separately.
66071
66072 2012-07-16  Andreas Jaeger  <aj@suse.de>
66073
66074         * po/ru.po: Update from translation team.
66075
66076 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
66077
66078         * conform/data/string.h-data (NULL): Use macro-constant.  Require
66079         equal to 0.
66080         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
66081         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
66082         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
66083         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
66084         [ISO || ISO99 || ISO11] (*_t): Do not allow.
66085
66086 2012-07-13  Andreas Jaeger  <aj@suse.de>
66087
66088         * po/fr.po: Update from translation team.
66089
66090 2012-07-12  Marek Polacek  <polacek@redhat.com>
66091
66092         [BZ #14173]
66093         * math/libm-test.inc (yn_test): Add test for BZ #14173.
66094         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
66095         loop condition.
66096
66097 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
66098
66099         [BZ #13717]
66100         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66101         Change to 2.4.1 where previously 2.4.0.
66102         * sysdeps/unix/sysv/linux/configure: Regenerated.
66103         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
66104         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
66105         version.
66106         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
66107         (__ASSUME_AT_CLKTCK): Remove.
66108         (__ASSUME_AT_PAGESIZE): Likewise.
66109         (__ASSUME_AT_XID): Likewise.
66110         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
66111         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
66112         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
66113         unconditionally.
66114         (HAVE_AUX_PAGESIZE): Likewise.
66115         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
66116         [__ASSUME_AT_CLKTCK]: Make code unconditional.
66117         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
66118
66119 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
66120
66121         [BZ #14307]
66122         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
66123         the temporary buffer used to invoke __gethostbyname2_r,
66124         __gethostbyaddr_r and gethostbyname4_r to make room for struct
66125         host_data / struct gaih_addrtuple.
66126         * resolv/nss_dns/dns-host.c (global scope): Move definition of
66127         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
66128         header file nss/nsswitch.h.
66129         * nss/nsswitch.h (global scope): Add definition of implementation
66130         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
66131         resolv/nss_dns/dns-host.c).
66132
66133 2012-07-11  Andreas Jaeger  <aj@suse.de>
66134
66135         * po/fr.po: Update from translation team.
66136
66137         * po/sv.po: Update from translation team
66138         * po/fr.po: Another update from translation team.
66139
66140 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66141
66142         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
66143         for subnormals or multiply small sinh result by itself.
66144         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
66145         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66146
66147 2012-07-11  David S. Miller  <davem@davemloft.net>
66148
66149         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66150
66151 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
66152
66153         [BZ #14347]
66154         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
66155         (INTERNAL_MARK): Shift it here.
66156
66157 2012-07-10  Marek Polacek  <polacek@redhat.com>
66158
66159         [BZ #14151]
66160         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
66161         libc_cv_asm_global_directive with .globl.
66162         * configure: Regenerated.
66163         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
66164         with .globl.
66165         * sysdeps/i386/configure: Regenerated.
66166         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
66167         with .globl.
66168         * sysdeps/x86_64/configure: Regenerated.
66169         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
66170         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
66171         * elf/tst-unique2mod2.c: Likewise.
66172         * elf/tst-unique2mod1.c: Likewise.
66173         * elf/tst-unique1mod2.c: Likewise.
66174         * elf/tst-unique1mod1.c: Likewise.
66175         * sysdeps/s390/s390-32/sysdep.h: Likewise.
66176         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
66177         * sysdeps/s390/s390-64/sysdep.h: Likewise.
66178         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
66179         * sysdeps/mach/sysdep.h: Likewise.
66180         * sysdeps/i386/sysdep.h: Likewise.
66181         * sysdeps/i386/i386-mcount.S: Likewise.
66182         * sysdeps/x86_64/_mcount.S: Likewise.
66183         * sysdeps/x86_64/sysdep.h: Likewise.
66184         * sysdeps/sh/_mcount.S: Likewise.
66185         * sysdeps/sh/sysdep.h: Likewise.
66186         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
66187         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
66188         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
66189         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
66190         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
66191         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
66192         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
66193         * locale/localeinfo.h: Likewise.
66194         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
66195         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
66196
66197 2012-07-09  Roland McGrath  <roland@hack.frob.com>
66198
66199         [BZ #14336]
66200         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
66201         system".
66202         * manual/message.texi (The Uniforum approach): Likewise.
66203         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
66204         (glibc iconv Implementation): Likewise.
66205
66206 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
66207
66208         [BZ #14337]
66209         * math/s_clog.c (__clog): Avoid scaling a value down where that
66210         could result in underflow.
66211         * math/s_clog10.c (__clog10): Likewise.
66212         * math/s_clog10f.c (__clog10f): Likewise.
66213         * math/s_clog10l.c (__clog10l): Likewise.
66214         * math/s_clogf.c (__clogf): Likewise.
66215         * math/s_clogl.c (__clogl): Likewise.
66216         * math/libm-test.inc (clog_test): Add more tests.
66217         (clog10_test): Likewise.
66218         * sysdeps/i386/fpu/libm-test-ulps: Update.
66219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66220
66221 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
66222
66223         [BZ #14283]
66224         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
66225         by 7 not 8 to examine high bit of fractional part.
66226
66227         [BZ #14042]
66228         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
66229         for call to __mcount_internal.
66230         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
66231         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
66232         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
66233
66234 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
66235
66236         [BZ #14154]
66237         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
66238         approximation for values within 0x1p-13f of an odd multiple of
66239         pi/4.
66240         * math/libm-test.inc (tan_test): Do not allow spurious underflow
66241         exception.  Add more tests.
66242         * sysdeps/i386/fpu/libm-test-ulps: Update.
66243
66244         [BZ #6778]
66245         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
66246         inputs and return -1 for them.  Do not check for +Inf in case not
66247         reachable for +Inf.
66248         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
66249         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
66250         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66251         and return -1 for them.  Do not check for +Inf in case not
66252         reachable for +Inf.
66253         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
66254         define.
66255         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66256         and return -1 for them.  Do not check for +Inf in case not
66257         reachable for +Inf.
66258         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
66259         spurious underflow.
66260         * sysdeps/i386/fpu/libm-test-ulps: Update.
66261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66262
66263 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
66264
66265         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
66266
66267 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
66268
66269         [BZ #14157]
66270         [BZ #14331]
66271         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
66272         could result in spurious underflow.  Scale down values above
66273         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
66274         * math/s_csqrtf.c (__csqrtf): Likewise.
66275         * math/s_csqrtl.c (__csqrtl): Likewise.
66276         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
66277         spurious underflow.
66278         * sysdeps/i386/fpu/libm-test-ulps: Update.
66279         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66280
66281 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
66282
66283         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
66284         xopen-msg.sed.
66285         * catgets/xopen-msg.awk: New file.
66286         * catgets/xopen-msg.sed: Removed.
66287
66288         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
66289         po2text.sed.
66290         * intl/po2test.awk: New file.
66291         * intl/po2test.sed: Removed.
66292
66293 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
66294
66295         [BZ #14328]
66296         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
66297         or multiply small sinh result by itself.
66298         * math/s_ctanf.c (__ctanf): Likewise.
66299         * math/s_ctanh.c (__ctanh): Likewise.
66300         * math/s_ctanhf.c (__ctanhf): Likewise.
66301         * math/s_ctanhl.c (__ctanhl): Likewise.
66302         * math/s_ctanl.c (__ctanl): Likewise.
66303         * math/libm-test.inc (ctan_test_tonearest): New function.
66304         (ctan_test_towardzero): Likewise.
66305         (ctan_test_downward): Likewise.
66306         (ctan_test_upward): Likewise.
66307         (ctanh_test_tonearest): Likewise.
66308         (ctanh_test_towardzero): Likewise.
66309         (ctanh_test_downward): Likewise.
66310         (ctanh_test_upward): Likewise.
66311         (main): Call these new functions.
66312         * sysdeps/i386/fpu/libm-test-ulps: Update.
66313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66314
66315 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
66316
66317         * .gitignore: Delete /ports entry.
66318
66319 2012-07-03  Andreas Jaeger  <aj@suse.de>
66320
66321         * po/bg.po: Update from translation team.
66322         * po/cs.po: Likewise.
66323         * po/de.po: Likewise.
66324         * po/hr.po: Likewise.
66325         * po/nl.pl: Likewise.
66326         * po/pl.po: Likewise.
66327         * po/vi.po: Likewise.
66328
66329 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
66330
66331         * Makeconfig [!+link] (+link-before-libc): New variable.
66332         [!+link] (+link-after-libc): Likewise.
66333         [!+link] (+link-tests): Likewise.
66334         [!+link] (+link): Define in terms of $(+link-before-libc) and
66335         $(+link-after-libc).
66336         [!+link-static] (+link-static-before-libc): New variable.
66337         [!+link-static] (+link-static-after-libc): Likewise.
66338         [!+link-static] (+link-static-tests): Likewise.
66339         [!+link-static] (+link-static): Define in terms of
66340         $(+link-static-before-libc) and $(+link-static-after-libc).
66341         [build-shared] (link-libc-before-gnulib): New variable.
66342         [build-shared] (link-libc-tests): Likewise.
66343         [build-shared] (link-libc): Define in terms of
66344         $(link-libc-before-gnulib).
66345         [!build-shared] (link-libc-tests): New variable.
66346         (link-libc-static-tests): New variable.
66347         [!gnulib] (gnulib-arch): New variable.
66348         [!gnulib] (gnulib-tests): Likewise.
66349         [!gnulib] (static-gnulib-arch): Likewise.
66350         [!gnulib] (static-gnulib-tests): Likewise.
66351         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
66352         Define with "=" instead of ":=".
66353         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
66354         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
66355         * Rules (binaries-all-notests): New variable.
66356         (binaries-all-tests): Likewise.
66357         (binaries-static-notests): Likewise.
66358         (binaries-static-tests): Likewise.
66359         (binaries-all): Define using $(binaries-all-notests) and
66360         $(binaries-all-tests).
66361         (binaries-static): Define using $(binaries-static-notests) and
66362         $(binaries-static-tests).
66363         (binaries-shared-tests): New variable.
66364         (binaries-shared-notests): Likewise.
66365         (binaries-shared): Remove variable.
66366         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
66367         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
66368         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
66369         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
66370         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
66371         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
66372         * elf/Makefile (sln-modules): New variable.
66373         (extra-objs): Add $(sln-modules:=.o).
66374         (ldconfig-modules): Add static-stubs.
66375         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
66376         * elf/static-stubs.c: New file.
66377
66378         [BZ #14283]
66379         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
66380         by 7 not 8 to examine high bit of fractional part.  Use volatile
66381         variables when splitting into final array of floats if
66382         __FLT_EVAL_METHOD__ != 0.
66383         * math/libm-test.inc (cos_test): Add another test.
66384         (sin_test): Likewise.
66385         * sysdeps/i386/fpu/libm-test-ulps: Update.
66386
66387         [BZ #14273]
66388         * math/libm-test.inc (cosh_test): Add more tests.
66389
66390         * version.h (RELEASE): Set to "development".
66391         (VERSION): Set to "2.16.90".
66392
66393 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
66394
66395         * NEWS: Update copyright. Remove last-updated date.
66396         Mention math library bug fixes and timezone data changes.
66397         * README: Mention GNU/Hurd, x32, and HPPA support status.
66398
66399 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
66400
66401         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
66402
66403 2012-06-27  Andreas Jaeger  <aj@suse.de>
66404
66405         * manual/contrib.texi (Contributors): Add Samuel Thibault.
66406
66407 2012-06-25  Andreas Jaeger  <aj@suse.de>
66408
66409         * sysdeps/s390/fpu/libm-test-ulps: Update.
66410
66411 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
66412             Thomas Schwinge  <thomas@codesourcery.com>
66413
66414         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
66415         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
66416         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
66417         fanotify_mark.
66418
66419 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
66420
66421         * sysdeps/mach/start.c: Remove file.
66422         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
66423         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
66424         * sysdeps/sh/init-first.c: Likewise.
66425
66426         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
66427         registers for frame unwinding purposes, add CFI directives.
66428         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66429         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
66430         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
66431         Likewise.
66432
66433         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
66434         __fortify_fail returning.
66435         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66436
66437         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
66438         sysdeps/sh/____longjmp_chk.S.
66439         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
66440         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
66441         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
66442         (gen-as-const-headers): Append sigaltstack-offsets.sym.
66443
66444         * sysdeps/sh/abort-instr.h: New file.
66445         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
66446         process in case exit returns.
66447
66448         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
66449         initialize the GOT register before use.
66450
66451         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
66452         calculation of ARGC > 4.
66453
66454         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
66455         meaningful names to some local labels.
66456
66457 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66458             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66459
66460         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
66461         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
66462         (__arch_compare_and_exchange_val_16_acq): Likewise.
66463         (__arch_compare_and_exchange_val_32_acq): Likewise.
66464         (atomic_exchange_and_add): Fix gUSA sequence.
66465         (atomic_add): Likewise.
66466         (atomic_add_negative): Likewise.
66467         (atomic_add_zero): Likewise.
66468         (atomic_bit_test_set): Likewise.
66469
66470 2012-06-22  Andreas Schwab  <schwab@redhat.com>
66471
66472         [BZ #13579]
66473         * include/link.h (struct link_map): Add l_free_initfini.
66474         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
66475         l_initfini.
66476         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
66477         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
66478         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
66479         set.
66480
66481 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
66482
66483         * configure.in: Use AC_LANG_SOURCE.
66484         * configure: Regenerate.
66485
66486 2012-06-22  Roland McGrath  <roland@hack.frob.com>
66487
66488         * configure.in (libc_cv_localstatedir): New substituted variable.
66489         * configure: Regenerated.
66490         * config.make.in (localstatedir): New variable, substituted from
66491         libc_cv_localstatedir.
66492         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
66493         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
66494         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
66495         * sysdeps/gnu/configure: Regenerated.
66496
66497 2012-06-21  Jeff Law  <law@redhat.com>
66498
66499         [BZ #14277]
66500         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
66501         free.  Simplify list management for _LIBC case.
66502
66503 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
66504
66505         [BZ #14273]
66506         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
66507         Clear sign bit of 64-bit integer value before comparing against
66508         overflow value.
66509
66510         * sysdeps/mach/configure: Regenerated.
66511
66512 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
66513
66514         [BZ #14278]
66515         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
66516
66517 2012-06-21  Jeff Law  <law@redhat.com>
66518
66519         [BZ #13882]
66520         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
66521         uint16_t for elements in the "seen" array to avoid char overflows.
66522         * elf/dl-fini.c (_dl_sort_fini): Likewise.
66523         * elf/dl-open.c (dl_open_worker): Likewise.
66524
66525 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
66526
66527         * scripts/list-sources.sh: Scan PORTS for translations.
66528         * po/libc.pot: Regenerated.
66529
66530 2012-06-21  Andreas Jaeger  <aj@suse.de>
66531
66532         [BZ #12194]
66533         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
66534         warning.
66535         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
66536         * bits/byteswap-16.h (__bswap_16): Likewise.
66537         * bits/byteswap.h (__bswap_constant_16): Likewise.
66538
66539 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
66540
66541         [BZ #14117]
66542         * sysdeps/i386/fpu_control.h: Removed.
66543         * sysdeps/x86_64/fpu_control.h: Moved to ...
66544         * sysdeps/x86/fpu_control.h: Here.
66545
66546         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
66547         (_FPU_SETCW): Likewise.
66548
66549 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
66550
66551         [BZ #14117]
66552         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
66553         * sysdeps/x86/fpu/bits/mathinline.h: This.
66554         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
66555
66556         [BZ #14050]
66557         [BZ #14117]
66558         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
66559         functions if __x86_64__ is defined.
66560
66561 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
66562
66563         * string/endian.h: Add !__ASSEMBLER__ condition for including
66564         conversion interfaces.
66565
66566 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
66567
66568         [BZ #14241]
66569         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
66570         of ABS(x) in calculating zero to negative powers other than odd
66571         integers.
66572         * math/libm-test.inc (pow_test): Add more tests.
66573
66574 2012-06-15  Andreas Jaeger  <aj@suse.de>
66575
66576         * manual/contrib.texi (Contributors): Update entry of Liubov
66577         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
66578         Machado Filho.
66579
66580 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
66581
66582         * string/string.h: Add __wur to GNU version of strerror_r.
66583
66584 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
66585
66586         [BZ #14229]
66587         * string/Makefile (tests): Add tst-strtok_r.
66588         * string/tst-strtok_r.c: New file.
66589         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
66590         RAX_LP/RDX_LP on SAVE_PTR.
66591
66592 2012-06-14  Roland McGrath  <roland@hack.frob.com>
66593
66594         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
66595
66596 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
66597
66598         * libm_test.inc (csqrt_test): Allow more spurious underflow
66599         exceptions.
66600         (j0_test): Likewise.
66601         (j1_test): Likewise.
66602         (y0_test): Likewise.
66603         (y1_test): Likewise.
66604
66605 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
66606
66607         * po/Makefile (libc.pot): Use UTF-8 charset.
66608
66609 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
66610
66611         [BZ #14210]
66612         Suppress sign-conversion warning from FD_SET.
66613         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
66614         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
66615         not unsigned long int.
66616         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
66617
66618 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
66619
66620         [BZ #14050]
66621         [BZ #14117]
66622         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
66623         __extern_always_inline instead of __extern_inline.
66624         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
66625         (__signbit): Likewise.
66626         (__signbitl): Support C++ namespace.
66627         (lrintf): New inline function.
66628         (lrint): Likewise.
66629         (llrintf): Likewise.
66630         (llrint): Likewise.
66631         (fmaxf): Likewise.
66632         (fmax): Likewise.
66633         (fminf): Likewise.
66634         (fmin): Likewise.
66635         (rint): Likewise.
66636         (rintf): Likewise.
66637         (ceil): Likewise.
66638         (ceilf): Likewise.
66639         (floor): Likewise.
66640         (floorf): Likewise.
66641         (nearbyint): Likewise.
66642         (nearbyintf): Likewise.
66643
66644 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
66645
66646         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
66647         non-default versions.
66648
66649 2012-06-11  Roland McGrath  <roland@hack.frob.com>
66650
66651         [BZ #14218]
66652         * manual/argp.texi (Argp): Reword argp_parse description slightly.
66653
66654 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
66655
66656         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
66657         (FE_UPWARD, FE_DOWNWARD): Don't define.
66658         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
66659         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
66660
66661         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
66662         reading it.
66663         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
66664         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
66665
66666 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66667
66668         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
66669         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
66670         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
66671         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
66672
66673 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
66674
66675         [BZ #14117]
66676         * sysdeps/i386/fpu/bits/fenv.h: Removed.
66677         * sysdeps/i386/fpu/Implies: New file.
66678         * sysdeps/x86_64/fpu/Implies: Likewise.
66679         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
66680         * sysdeps/x86/fpu/bits/fenv.h: This.
66681
66682         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
66683         __SSE_MATH__.
66684
66685 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
66686
66687         [BZ #14134]
66688         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
66689         character 0xffff that matches the last element of the
66690         conversion table.
66691
66692 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66693
66694         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
66695         fmodl commit.
66696
66697 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66698
66699         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
66700         values higher than 25.6283.
66701
66702 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66703
66704         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
66705         subnormal exponent extraction and add some __builtin_expect.
66706         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
66707         Fix for subnormal mantissa calculation.
66708
66709 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
66710
66711         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
66712         cpu2 is -1 and errno is not ENOSYS.
66713
66714 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
66715
66716         [BZ #14117]
66717         * sysdeps/i386/i486/bits/string.h: Renamed to ...
66718         * sysdeps/x86/bits/string.h: This.
66719         * sysdeps/x86_64/bits/string.h: Removed.
66720
66721         * sysdeps/i386/i486/bits/string.h: Define inline functions only
66722         if not compiling for x86-64, but compiling for >= i486.
66723
66724         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
66725         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
66726
66727         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
66728         New macro from Linux kernel 3.4.0.
66729         (FP_XSTATE_MAGIC2): Likewise.
66730         (FP_XSTATE_MAGIC2_SIZE): Likewise.
66731         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
66732         (struct _fpx_sw_bytes): New struct.
66733         (struct _xsave_hdr): Likewise.
66734         (struct _ymmh_state): Likewise.
66735         (struct _xstate): Likewise.
66736
66737         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
66738         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
66739         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
66740         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
66741         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
66742         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
66743
66744         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
66745         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
66746         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
66747         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
66748         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
66749         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
66750
66751 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66752
66753         [BZ #13743]
66754         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
66755         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
66756         (sysdep_headers): Include sys/platform/ppc.h.
66757         * sysdeps/powerpc/test-gettimebase.c: Test for
66758         __ppc_get_timebase() to catch future ISA opcode/insn changes.
66759         * manual/Makefile (appendices): Include platform.texi.
66760         * manual/contrib.texi (Contributors): Update @node pointers.
66761         * manual/maint.texi (Maintenance): Likewise.
66762         (Platform): New node.
66763         * manual/platform.texi: New file.  Document the new features.
66764
66765 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
66766             Jakub Jelinek  <jakub@redhat.com>
66767
66768         [BZ #14188]
66769         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
66770         where __builtin_expect is unavailable.
66771
66772 2012-06-03  David S. Miller  <davem@davemloft.net>
66773
66774         * stdlib/longlong.h: Updated from GCC.
66775
66776 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
66777
66778         [BZ #14042]
66779         * sysdeps/powerpc/powerpc32/mcount.c: New file.
66780         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
66781         __mcount_internal.
66782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
66783         (GLIBC_2.16): Likewise.
66784
66785 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
66786
66787         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
66788
66789 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
66790
66791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
66792         (default-abi): New variable.
66793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
66794         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
66795         variable.
66796         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
66797         Likewise.
66798         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
66799         Likewise.
66800         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
66801         Likewise.
66802
66803         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
66804         definition.  Document in comment.
66805
66806 2012-06-01  David S. Miller  <davem@davemloft.net>
66807
66808         * stdlib/longlong.h: Updated from GCC.
66809
66810 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
66811
66812         [BZ #14117]
66813         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
66814         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
66815         sys/debugreg.h sys/io.h here.
66816         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
66817         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
66818         sys/io.h.
66819         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
66820         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
66821         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
66822         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
66823         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
66824         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
66825
66826         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
66827         Define only if __x86_64__ is defined.
66828
66829 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
66830
66831         [BZ #14048]
66832         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
66833         Use int64_t for variable i.
66834         * math/libm-test.inc (fmod_test): Add more tests.
66835
66836         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
66837         z computation is not scheduled after fetestexcept.
66838         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
66839         Use math_force_eval instead of asm to ensure calculation scheduled
66840         before exception test.
66841         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
66842         Ensure a1 + u.d computation is not scheduled after fetestexcept.
66843
66844 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
66845
66846         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
66847         computation is not scheduled after fetestexcept.
66848
66849 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
66850
66851         [BZ #14117]
66852         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
66853         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
66854
66855 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66856
66857         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
66858         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
66859
66860 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
66861
66862         [BZ #14117]
66863         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
66864         <bits/wordsize.h>.
66865         (__WCHAR_MIN): Support __WORDSIZE == 64.
66866         (__WCHAR_MAX): Likewise.
66867
66868         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
66869         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
66870
66871         [BZ #14183]
66872         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
66873         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
66874
66875         [BZ #14117]
66876         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
66877         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
66878
66879         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
66880         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
66881
66882         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
66883         Defined to 1 if __x86_64__ isn't defined.
66884         (_STAT_VER_LINUX_OLD): New.
66885         (st_atime): Remove duplicate.
66886         (st_mtime): Likewise.
66887         (st_ctime): Likewise.
66888
66889 2012-05-31  David S. Miller  <davem@davemloft.net>
66890
66891         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
66892         entries.
66893
66894 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
66895
66896         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
66897         gen-libm-test.pl.
66898
66899         [BZ #14132]
66900         * elf/dl-reloc.c: Include <_itoa.h>.
66901         (_dl_reloc_bad_type): Remove use of INTUSE.
66902         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
66903         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
66904         * stdio-common/psiginfo.c (psiginfo): Likewise.
66905         * stdio-common/psignal.c (psignal): Likewise.
66906         * string/strsignal.c (strsignal): Likewise.
66907         * include/signal.h (_sys_siglist): Declare hidden proto.
66908         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
66909         INTVARDEF with libc_hidden_data_def.
66910         * stdio-common/itoa-udigits.c: Likewise.
66911         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
66912         (_itoa_lower_digits_internal): Remove declaration.
66913         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
66914         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
66915         (_sys_sigabbrev_internal): Remove aliases.
66916         (_sys_siglist): Define hidden alias.
66917
66918 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
66919
66920         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
66921         bits/sysctl.h.
66922
66923 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
66924
66925         [BZ #14117]
66926         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
66927         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
66928
66929         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
66930         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
66931         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
66932         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
66933         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
66934         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
66935
66936         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
66937         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
66938         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
66939
66940         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
66941         with __addr.
66942         (insw): Likewise.
66943         (insl): Likewise.
66944         (outsb): Likewise.
66945         (outsw): Likewise.
66946         (outsl): Likewise.
66947
66948         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
66949         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
66950         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
66951
66952         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
66953         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
66954         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
66955         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
66956         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
66957         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
66958
66959         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
66960         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
66961
66962         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
66963         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
66964
66965         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
66966         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
66967         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
66968
66969         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
66970         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
66971         to ...
66972         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
66973
66974         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
66975         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
66976         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
66977
66978         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
66979         for x86-64.
66980         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
66981
66982 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
66983
66984         * math/math.h (M_El): Use two more decimal places.
66985         (M_LOG2El): Likewise.
66986         (M_LOG10El): Likewise.
66987         (M_LN2l): Likewise.
66988         (M_LN10l): Likewise.
66989         (M_PIl): Likewise.
66990         (M_PI_2l): Likewise.
66991         (M_PI_4l): Likewise.
66992         (M_1_PIl): Likewise.
66993         (M_2_PIl): Likewise.
66994         (M_2_SQRTPIl): Likewise.
66995         (M_SQRT2l): Likewise.
66996         (M_SQRT1_2l): Likewise.
66997
66998 2012-05-31  David S. Miller  <davem@davemloft.net>
66999
67000         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
67001         values between float registers.
67002         * sysdeps/sparc/sparc64/memset.S: Likewise.
67003         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
67004
67005 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
67006
67007         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
67008         -D_FORTIFY_SOURCE=1.
67009         (CPPFLAGS-tst-longjmp_chk.c): Define.
67010         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
67011         (CPPFLAGS-tst-longjmp_chk2.c): Define.
67012         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
67013         CFLAGS-tst-wchar-h.c.
67014
67015 2012-05-31  Marek Polacek  <polacek@redhat.com>
67016
67017         [BZ #14132]
67018         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
67019         __endmntent_internal): Remove declaration.
67020         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
67021         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
67022         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
67023
67024 2012-05-30  David S. Miller  <davem@davemloft.net>
67025
67026         * sysdeps/sparc/sparc32/soft-fp/q_util.c
67027         (___Q_simulate_exceptions): Use real FP ops rather than writing
67028         into the %fsr.
67029         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
67030         Likewise.
67031
67032 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67033
67034         [BZ #14117]
67035         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
67036         * sysdeps/x86/bits/xtitypes.h: This.
67037
67038         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
67039         * sysdeps/x86/bits/wordsize.h: This.
67040
67041         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
67042         * sysdeps/x86/bits/huge_vall.h: This.
67043
67044         * sysdeps/i386/bits/select.h: Removed.
67045         * sysdeps/x86_64/bits/select.h: Renamed to ...
67046         * sysdeps/x86/bits/select.h: This.
67047
67048         * sysdeps/i386/bits/setjmp.h: Removed.
67049         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
67050         * sysdeps/x86/bits/setjmp.h: This.
67051
67052         * sysdeps/i386/bits/mathdef.h: Removed.
67053         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
67054         * sysdeps/x86/bits/mathdef.h: This.
67055
67056 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
67057
67058         [BZ #14132]
67059         * include/sys/socket.h (__connect_internal)
67060         (__libc_sa_len_internal): Remove declaration.
67061         (__connect, __libc_sa_len): Declare hidden_proto.
67062         (SA_LEN): Remove use of INTUSE.
67063         * socket/connect.c: Add libc_hidden_def.
67064         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
67065         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
67066         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
67067         alias.
67068         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
67069         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
67070         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
67071         of adding _internal alias.
67072
67073 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67074
67075         [BZ #14117]
67076         * sysdeps/i386/bits/link.h: Removed.
67077         * sysdeps/i386/bits/linkmap.h: Likewise.
67078         * sysdeps/x86_64/bits/link.h: Renamed to ...
67079         * sysdeps/x86/bits/link.h: This.
67080         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
67081         * sysdeps/x86/bits/linkmap.h: This.
67082
67083         * sysdeps/i386/bits/endian.h: Removed.
67084         * sysdeps/x86_64/bits/endian.h: Renamed to ...
67085         * sysdeps/x86/bits/endian.h: This.
67086
67087         * sysdeps/i386/bits/byteswap.h: Removed.
67088         * sysdeps/i386/bits/byteswap-16.h: Likewise.
67089         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
67090         * sysdeps/x86/bits/byteswap.h: This.
67091         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
67092         * sysdeps/x86/bits/byteswap-16.h: This.
67093         * sysdeps/i386/Implies: Add x86.
67094         * sysdeps/x86_64/Implies: Likewise.
67095
67096 2012-05-30  David S. Miller  <davem@davemloft.net>
67097
67098         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
67099         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
67100         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
67101         (FP_TRAPPING_EXCEPTIONS): Define.
67102         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
67103         (FP_TRAPPING_EXCEPTIONS): Define.
67104         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
67105         subnormals only when inexact has been signalled or underflow
67106         exceptions are enabled.
67107         (_FP_PACK_CANONICAL): Likewise.
67108
67109 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67110
67111         [BZ #14183]
67112         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
67113         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
67114
67115 2012-05-30  Richard Henderson  <rth@twiddle.net>
67116
67117         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
67118         with #ifndef NOT_IN_libc.
67119
67120         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
67121         marked to avoid plt entry.
67122
67123 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67124
67125         [BZ #14112]
67126         * Makeconfig (default-abi): New macro.
67127         (abi-includes): Likewise.
67128         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
67129         $(abi-$(default-abi)-lib-soname) for soname if defined.
67130         ($(common-objpfx)gnu/lib-names.stmp): Generate from
67131         abi-variants.
67132         * Makefile (installed-stubs): Likewise.
67133         * include/stubs-biarch.h: Removed.
67134         * scripts/lib-names.awk: Only handle one library at a time.
67135         * scripts/soversions.awk: Remove WORDSIZE support.
67136         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
67137         entries.
67138         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
67139         Removed.
67140         (syscall-list-default-condition): Likewise.
67141         (syscall-list-default-condition): Likewise.
67142         (syscall-list-includes): Likewise.
67143         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
67144         syscall-list-* with abi-*.  Handle undefined abi-variants.
67145         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
67146         * sysdeps/unix/sysv/linux/i386/Implies: New file.
67147         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
67148         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
67149         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
67150         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
67151         Removed.
67152         (syscall-list-32-options): Likewise.
67153         (syscall-list-32-condition): Likewise.
67154         (syscall-list-64-options): Likewise.
67155         (syscall-list-64-condition): Likewise.
67156         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
67157         macro.
67158         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
67159         Renamed to ...
67160         (abi-*): This.
67161         (abi-64-ld-soname): New macro.
67162         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
67163         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
67164         Renamed to ...
67165         (abi-*): This.
67166         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
67167         * sysdeps/x86_64/x32/shlib-versions: Likewise.
67168
67169 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
67170
67171         * sysdeps/unix/sysv/linux/kernel-features.h
67172         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
67173         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
67174         include <kernel-features.h>.
67175         [!__NR_ftruncate64]: Remove conditional code.
67176         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67177         [__NR_ftruncate64]: Make code unconditional.
67178         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67179         * sysdeps/unix/sysv/linux/truncate64.c: Do not
67180         include <kernel-features.h>.
67181         [!__NR_ftruncate64]: Remove conditional code.
67182         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67183         [__NR_ftruncate64]: Make code unconditional.
67184         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
67186         include <kernel-features.h>.
67187         [!__NR_ftruncate64]: Remove conditional code.
67188         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67189         [__NR_ftruncate64]: Make code unconditional.
67190         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
67192         include <kernel-features.h>.
67193         [!__NR_ftruncate64]: Remove conditional code.
67194         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67195         [__NR_ftruncate64]: Make code unconditional.
67196         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67197
67198         * configure.in (libc_cv_fpie): Weaken to a compile test using
67199         LIBC_TRY_CC_OPTION.
67200         * configure: Regenerated.
67201
67202 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67203
67204         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
67205         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
67206         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
67207         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
67208         Refreshed.
67209         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
67210         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
67211         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
67212         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
67213         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
67214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
67215         Refreshed.
67216
67217 2012-05-27  David S. Miller  <davem@davemloft.net>
67218
67219         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
67220         (___Q_zero): New.
67221         (__Q_simulate_exceptions): Return void.  Change to simulate
67222         exceptions by writing into the %fsr.
67223         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
67224         (__Qp_handle_exceptions): Likewise.
67225         (numbers): Delete.
67226         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
67227         __Qp_handle_exceptions.
67228         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
67229         __Qp_handle_exceptions.
67230         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67231         as unused and give dummy FP_RND_NEAREST initializer.
67232         (FP_INHIBIT_RESULTS): Define.
67233         (___Q_simulate_exceptions): Update declaration.
67234         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
67235         formatting.
67236         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67237         as unused and give dummy FP_RND_NEAREST initializer.
67238         (__Qp_handle_exceptions): Update declaration.
67239         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
67240         formatting.
67241
67242 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
67243
67244         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
67245         the temporary FPU control word.
67246         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
67247         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
67248         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
67249         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
67250         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
67251         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
67252         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
67253         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
67254         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
67255         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
67256         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
67257
67258 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67259
67260         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
67261         fields.
67262
67263 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
67264
67265         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
67266         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
67267         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
67268         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
67269         Likewise.
67270         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
67271         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
67272         Likewise.
67273
67274 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
67275
67276         * po/h.po: Update from translation team.
67277
67278 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
67279
67280         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
67281
67282         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
67283         handling of denormals.
67284         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
67285         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
67286         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
67287         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
67288         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67289         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
67290         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
67291         Likewise.
67292
67293 2012-05-26  Marek Polacek  <polacek@redhat.com>
67294
67295         [BZ #14152]
67296         * math/libm-test.inc (fma_test): Don't always expect underflow
67297         exception.
67298
67299 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
67300
67301         [BZ #12416]
67302         * elf/tst-execstack.c: Include stackinfo.h.
67303         (do_test): Adjust test case to ensure that pthread_getattr_np
67304         behaviour remains the same after marking stack executable.
67305
67306 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67307
67308         * sysdeps/unix/sysv/linux/kernel-features.h
67309         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
67310         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
67311         kernel-features.h.
67312         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67313         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67314         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
67315         kernel-features.h.
67316         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67317         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67318
67319 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
67320
67321         * configure.in: Define the default includes to being none.
67322         * configure: Regenerated.
67323
67324 2012-05-25  Roland McGrath  <roland@hack.frob.com>
67325
67326         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
67327         * sysdeps/x86_64/setjmp.S: Likewise.
67328         * sysdeps/i386/bsd-setjmp.S: Likewise.
67329         * sysdeps/i386/bsd-_setjmp.S: Likewise.
67330         * sysdeps/i386/setjmp.S: Likewise.
67331         * sysdeps/i386/__longjmp.S: Likewise.
67332         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
67333         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
67334
67335         * include/stap-probe.h: New file.
67336         * configure.in: Handle --enable-systemtap.
67337         * configure: Regenerated.
67338         * config.h.in (USE_STAP_PROBE): New #undef.
67339         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
67340         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
67341         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
67342
67343 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67344
67345         [BZ #13717]
67346         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
67347         to 2.4.0 where earlier.
67348         * sysdeps/unix/sysv/linux/configure: Regenerated.
67349         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
67350         <kernel-features.h>.
67351         [__ASSUME_32BITUIDS]: Make code unconditional.
67352         [!__ASSUME_32BITUIDS]: Remove conditional code.
67353         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
67354         <kernel-features.h>.
67355         [__ASSUME_32BITUIDS]: Make code unconditional.
67356         [!__ASSUME_32BITUIDS]: Remove conditional code.
67357         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
67358         [__ASSUME_32BITUIDS]: Make code unconditional.
67359         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
67360         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
67361         <kernel-features.h>.
67362         [__ASSUME_32BITUIDS]: Make code unconditional.
67363         [!__ASSUME_32BITUIDS]: Remove conditional code.
67364         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
67365         <kernel-features.h>.
67366         [__ASSUME_32BITUIDS]: Make code unconditional.
67367         [!__ASSUME_32BITUIDS]: Remove conditional code.
67368         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
67369         <kernel-features.h>.
67370         [__ASSUME_32BITUIDS]: Make code unconditional.
67371         [!__ASSUME_32BITUIDS]: Remove conditional code.
67372         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
67373         <kernel-features.h>.
67374         [__ASSUME_32BITUIDS]: Make code unconditional.
67375         [!__ASSUME_32BITUIDS]: Remove conditional code.
67376         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
67377         <kernel-features.h>.
67378         [__ASSUME_32BITUIDS]: Make code unconditional.
67379         [!__ASSUME_32BITUIDS]: Remove conditional code.
67380         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
67381         <kernel-features.h>.
67382         [__ASSUME_32BITUIDS]: Make code unconditional.
67383         [!__ASSUME_32BITUIDS]: Remove conditional code.
67384         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
67385         <kernel-features.h>.
67386         [__ASSUME_32BITUIDS]: Make code unconditional.
67387         [!__ASSUME_32BITUIDS]: Remove conditional code.
67388         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
67389         <kernel-features.h>.
67390         [__ASSUME_32BITUIDS]: Make code unconditional.
67391         [!__ASSUME_32BITUIDS]: Remove conditional code.
67392         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
67393         <kernel-features.h>.
67394         [__ASSUME_32BITUIDS]: Make code unconditional.
67395         [!__ASSUME_32BITUIDS]: Remove conditional code.
67396         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
67397         <kernel-features.h>.
67398         [__ASSUME_32BITUIDS]: Make code unconditional.
67399         [!__ASSUME_32BITUIDS]: Remove conditional code.
67400         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
67401         <kernel-features.h>.
67402         [__NR_setresgid] (__setresgid): Do not declare.
67403         [__ASSUME_32BITUIDS]: Make code unconditional.
67404         [!__ASSUME_32BITUIDS]: Remove conditional code.
67405         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
67406         <kernel-features.h>.
67407         [__NR_setresuid] (__setresuid): Do not declare.
67408         [__ASSUME_32BITUIDS]: Make code unconditional.
67409         [!__ASSUME_32BITUIDS]: Remove conditional code.
67410         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
67411         <kernel-features.h>.
67412         [__ASSUME_32BITUIDS]: Make code unconditional.
67413         [!__ASSUME_32BITUIDS]: Remove conditional code.
67414         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
67415         <kernel-features.h>.
67416         [__ASSUME_32BITUIDS]: Make code unconditional.
67417         [!__ASSUME_32BITUIDS]: Remove conditional code.
67418         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
67419         <kernel-features.h>.
67420         [__ASSUME_32BITUIDS]: Make code unconditional.
67421         [!__ASSUME_32BITUIDS]: Remove conditional code.
67422         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
67423         <kernel-features.h>.
67424         [__ASSUME_32BITUIDS]: Make code unconditional.
67425         [!__ASSUME_32BITUIDS]: Remove conditional code.
67426         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
67427         <kernel-features.h>.
67428         [__ASSUME_32BITUIDS]: Make code unconditional.
67429         [!__ASSUME_32BITUIDS]: Remove conditional code.
67430         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
67431         <kernel-features.h>.
67432         [__ASSUME_32BITUIDS]: Make code unconditional.
67433         [!__ASSUME_32BITUIDS]: Remove conditional code.
67434         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
67435         <kernel-features.h>.
67436         [__ASSUME_32BITUIDS]: Make code unconditional.
67437         [!__ASSUME_32BITUIDS]: Remove conditional code.
67438         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
67439         <kernel-features.h>.
67440         [__ASSUME_32BITUIDS]: Make code unconditional.
67441         [!__ASSUME_32BITUIDS]: Remove conditional code.
67442         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
67443         <kernel-features.h>.
67444         [__ASSUME_32BITUIDS]: Make code unconditional.
67445         [!__ASSUME_32BITUIDS]: Remove conditional code.
67446         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
67447         <kernel-features.h>.
67448         [__ASSUME_32BITUIDS]: Make code unconditional.
67449         [!__ASSUME_32BITUIDS]: Remove conditional code.
67450         * sysdeps/unix/sysv/linux/kernel-features.h
67451         (__ASSUME_SETRESUID_SYSCALL): Remove.
67452         (__ASSUME_SETRESGID_SYSCALL): Likewise.
67453         (__ASSUME_32BITUIDS): Likewise.
67454         (__ASSUME_LDT_WORKS): Likewise.
67455         (__ASSUME_O_DIRECTORY): Likewise.
67456         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
67457         architecture but not kernel version.
67458         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
67459         (__ASSUME_MMAP2_SYSCALL): Likewise.
67460         (__ASSUME_STAT64_SYSCALL): Likewise.
67461         (__ASSUME_IPC64): Likewise.
67462         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
67463         <kernel-features.h>.
67464         [__ASSUME_32BITUIDS]: Make code unconditional.
67465         [!__ASSUME_32BITUIDS]: Remove conditional code.
67466         * sysdeps/unix/sysv/linux/opendir.c: Do not include
67467         <kernel-features.h>.
67468         [__ASSUME_O_DIRECTORY]: Make code unconditional.
67469         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
67470         132096]: Remove conditional code.
67471         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
67472         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
67473         <kernel-features.h>.
67474         [__ASSUME_32BITUIDS]: Make code unconditional.
67475         [!__ASSUME_32BITUIDS]: Remove conditional code.
67476         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
67477         <kernel-features.h>.
67478         [__ASSUME_32BITUIDS]: Make code unconditional.
67479         [!__ASSUME_32BITUIDS]: Remove conditional code.
67480         * sysdeps/unix/sysv/linux/setegid.c: Do not include
67481         <kernel-features.h>.
67482         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
67483         unconditional.
67484         (__setresgid): Do not declare.
67485         [__ASSUME_32BITUIDS]: Make code unconditional.
67486         [!__ASSUME_32BITUIDS]: Remove conditional code.
67487         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
67488         <kernel-features.h>.
67489         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
67490         unconditional.
67491         (__setresuid): Do not declare.
67492         [__ASSUME_32BITUIDS]: Make code unconditional.
67493         [!__ASSUME_32BITUIDS]: Remove conditional code.
67494         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
67495         <kernel-features.h>.
67496         [__ASSUME_32BITUIDS]: Make code unconditional.
67497         [!__ASSUME_32BITUIDS]: Remove conditional code.
67498         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
67499         <kernel-features.h>.
67500         [__ASSUME_32BITUIDS]: Make code unconditional.
67501         [!__ASSUME_32BITUIDS]: Remove conditional code.
67502
67503 2012-05-25  Richard Henderson  <rth@twiddle.net>
67504
67505         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
67506         dl_hwcap to ifunc resolver.
67507         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
67508         elf_ifunc_invoke.
67509         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
67510         dl_hwcap to ifunc resolver.
67511         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
67512
67513 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67514
67515         [BZ #14153]
67516         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
67517         for |x| <= 2**-26, not 2**-57.
67518         * math/libm-test.inc (acos_test): Do not allow spurious underflow
67519         exception.
67520
67521 2012-05-24  Jeff Law  <law@redhat.com>
67522
67523         * stdio-common/Makefile (tests): Add bug25.
67524         * stdio-common/bug25.c: New test.
67525
67526 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
67527
67528         [BZ #13576]
67529         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
67530         multiple of MALLOC_ALIGNMENT in size.
67531         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
67532
67533 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67534
67535         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
67536         Require >= 256.
67537         (FILENAME_MAX): Use macro-int-constant.
67538         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
67539         (_IOFBF): Use macro-int-constant.
67540         (_IOLBF): Likewise.
67541         (_IONBF): Likewise.
67542         (SEEK_CUR): Likewise.
67543         (SEEK_END): Likewise.
67544         (SEEK_SET): Likewise.
67545         (TMP_MAX): Likewise.
67546         (EOF): Use macro-int-constant.  Require < 0.
67547         (NULL): Use macro-constant.  Require == 0.
67548         (stdin): Require type to be FILE *.
67549         (stdout): Likewise.
67550         (stderr): Likewise.
67551         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
67552         macro-int-constant.
67553         (EXIT_SUCCESS): Likewise.
67554         (NULL): Use macro-constant.  Require == 0.
67555         (RAND_MAX): Use macro-int-constant.
67556         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
67557         [C99-based standards] (strtof): Require function.
67558         [C99-based standards] (strtold): Likewise.
67559         [C99-based standards] (strtoll): Likewise.
67560         [C99-based standards] (strtoull): Likewise.
67561         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
67562         [ISO || ISO99 || ISO11] (limits.h): Likewise.
67563         [ISO || ISO99 || ISO11] (math.h): Likewise.
67564         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
67565         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
67566         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67567
67568 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
67569
67570         [BZ #14132]
67571         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
67572         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
67573         * intl/dgettext.c (DCGETTEXT): Likewise.
67574         * intl/gettext.c (DCGETTEXT): Likewise.
67575         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
67576         * posix/regex_internal.h (gettext): Likewise.
67577         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
67578         Remove declaration.
67579         * include/argz.h (__argz_count_internal)
67580         (__argz_stringify_internal): Remove declaration.
67581         (__argz_count, __argz_stringify): Declare hidden proto.
67582         * intl/dcgettext.c: Remove use of INTDEF.
67583         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
67584         * string/argz-stringify.c: Likewise.
67585         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67586         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67587         Declare hidden proto.
67588         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67589         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67590         Declare hidden proto.
67591         * include/stdio.h (__asprintf_internal): Don't declare.
67592         (__asprintf): Don't define as macro.  Declare hidden proto.
67593         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
67594         (__fsetlocking): Declare hidden proto.
67595         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
67596         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
67597         hidden proto.
67598         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
67599         (_IO_setlinebuf): Remove use of INTUSE.
67600         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
67601         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
67602         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
67603         Remove declaration.
67604         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
67605         (_IO_do_flush): Remove use of INTUSE.
67606         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
67607         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
67608         (_IO_adjust_column, _IO_least_wmarker)
67609         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
67610         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
67611         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
67612         (_IO_default_doallocate, _IO_wdefault_doallocate)
67613         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
67614         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
67615         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
67616         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
67617         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
67618         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
67619         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
67620         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
67621         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
67622         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
67623         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
67624         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
67625         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
67626         proto.
67627         (_IO_flush_all_internal, _IO_adjust_column_internal)
67628         (_IO_default_uflow_internal, _IO_default_finish_internal)
67629         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
67630         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
67631         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
67632         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
67633         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
67634         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
67635         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
67636         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
67637         (_IO_file_close_internal, _IO_file_close_it_internal)
67638         (_IO_file_underflow_internal, _IO_file_overflow_internal)
67639         (_IO_file_init_internal, _IO_file_attach_internal)
67640         (_IO_file_fopen_internal, _IO_file_read_internal)
67641         (_IO_file_sync_internal, _IO_file_seek_internal)
67642         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
67643         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
67644         (_IO_str_underflow_internal, _IO_str_overflow_internal)
67645         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
67646         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
67647         (_IO_list_all_internal, _IO_link_in_internal)
67648         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
67649         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
67650         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
67651         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
67652         (_IO_do_write_internal, _IO_padn_internal)
67653         (_IO_getline_info_internal, _IO_getline_internal)
67654         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
67655         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
67656         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
67657         (_IO_vfscanf_internal, _IO_vfprintf_internal)
67658         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
67659         (_IO_init_internal, _IO_un_link_internal): Don't declare.
67660         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
67661         with libc_hidden_ver, remove use of INTUSE.
67662         * libio/genops.c: Likewise.
67663         * libio/freopen.c: Likewise.
67664         * libio/freopen64.c: Likewise.
67665         * libio/iofclose.c: Likewise.
67666         * libio/iofdopen.c: Likewise.
67667         * libio/iofflush.c: Likewise.
67668         * libio/iofflush_u.c: Likewise.
67669         * libio/iofgets.c: Likewise.
67670         * libio/iofgets_u.c: Likewise.
67671         * libio/iofopen.c: Likewise.
67672         * libio/iofopncook.c: Likewise.
67673         * libio/iofread.c: Likewise.
67674         * libio/iofread_u.c: Likewise.
67675         * libio/ioftell.c: Likewise.
67676         * libio/iofwrite.c: Likewise.
67677         * libio/iogetline.c: Likewise.
67678         * libio/iogets.c: Likewise.
67679         * libio/iogetwline.c: Likewise.
67680         * libio/iopadn.c: Likewise.
67681         * libio/iopopen.c: Likewise.
67682         * libio/ioseekoff.c: Likewise.
67683         * libio/ioseekpos.c: Likewise.
67684         * libio/iosetbuffer.c: Likewise.
67685         * libio/iosetvbuf.c: Likewise.
67686         * libio/ioungetc.c: Likewise.
67687         * libio/ioungetwc.c: Likewise.
67688         * libio/iovdprintf.c: Likewise.
67689         * libio/iovsprintf.c: Likewise.
67690         * libio/iovsscanf.c: Likewise.
67691         * libio/memstream.c: Likewise.
67692         * libio/obprintf.c: Likewise.
67693         * libio/oldfileops.c: Likewise.
67694         * libio/oldiofclose.c: Likewise.
67695         * libio/oldiofdopen.c: Likewise.
67696         * libio/oldiofopen.c: Likewise.
67697         * libio/oldiopopen.c: Likewise.
67698         * libio/oldstdfiles.c: Likewise.
67699         * libio/putc.c: Likewise.
67700         * libio/setbuf.c: Likewise.
67701         * libio/setlinebuf.c: Likewise.
67702         * libio/stdfiles.c: Likewise.
67703         * libio/strops.c: Likewise.
67704         * libio/vasprintf.c: Likewise.
67705         * libio/vscanf.c: Likewise.
67706         * libio/vsnprintf.c: Likewise.
67707         * libio/vswprintf.c: Likewise.
67708         * libio/wfiledoalloc.c: Likewise.
67709         * libio/wfileops.c: Likewise.
67710         * libio/wgenops.c: Likewise.
67711         * libio/wmemstream.c: Likewise.
67712         * libio/wstrops.c: Likewise.
67713         * libio/__fpurge.c: Likewise.
67714         * libio/__fsetlocking.c: Likewise.
67715         * assert/assert.c: Likewise.
67716         * debug/fgets_chk.c: Likewise.
67717         * debug/fgets_u_chk.c: Likewise.
67718         * debug/fread_chk.c: Likewise.
67719         * debug/fread_u_chk.c: Likewise.
67720         * debug/gets_chk.c: Likewise.
67721         * debug/obprintf_chk.c: Likewise.
67722         * debug/vasprintf_chk.c: Likewise.
67723         * debug/vdprintf_chk.c: Likewise.
67724         * debug/vsnprintf_chk.c: Likewise.
67725         * debug/vsprintf_chk.c: Likewise.
67726         * malloc/mtrace.c: Likewise.
67727         * misc/error.c: Likewise.
67728         * misc/syslog.c: Likewise.
67729         * stdio-common/asprintf.c: Likewise.
67730         * stdio-common/fxprintf.c: Likewise.
67731         * stdio-common/getw.c: Likewise.
67732         * stdio-common/isoc99_fscanf.c: Likewise.
67733         * stdio-common/isoc99_scanf.c: Likewise.
67734         * stdio-common/isoc99_vfscanf.c: Likewise.
67735         * stdio-common/isoc99_vscanf.c: Likewise.
67736         * stdio-common/isoc99_vsscanf.c: Likewise.
67737         * stdio-common/printf-prs.c: Likewise.
67738         * stdio-common/printf_fp.c: Likewise.
67739         * stdio-common/printf_fphex.c: Likewise.
67740         * stdio-common/printf_size.c: Likewise.
67741         * stdio-common/putw.c: Likewise.
67742         * stdio-common/scanf.c: Likewise.
67743         * stdio-common/sprintf.c: Likewise.
67744         * stdio-common/tmpfile.c: Likewise.
67745         * stdio-common/vfprintf.c: Likewise.
67746         * stdio-common/vfscanf.c: Likewise.
67747         * stdlib/strfmon_l.c: Likewise.
67748         * sunrpc/openchild.c: Likewise.
67749         * sunrpc/xdr_stdio.c: Likewise.
67750         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
67751         * sysdeps/mach/hurd/tmpfile.c: Likewise.
67752
67753 2012-05-24  Roland McGrath  <roland@hack.frob.com>
67754
67755         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
67756
67757         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
67758         in the third column, to generate for the shared library an IFUNC
67759         that uses _dl_vdso_vsym.
67760         * Makerules (COMPILE.c, compile-stdin.c): New variables.
67761         * Makeconfig (object-suffixes-noshared): New variable.
67762
67763         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
67764         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
67765         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
67766         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
67767
67768         [BZ #14132]
67769         * include/sys/time.h (__gettimeofday): Remove macro.
67770         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
67771         * time/gettimeofday.c (__gettimeofday): Remove #undef.
67772         Remove INTDEF.
67773         (__gettimeofday): Add libc_hidden_def.
67774         (gettimeofday): Add libc_hidden_weak.
67775         * sysdeps/mach/gettimeofday.c: Likewise.
67776         * sysdeps/posix/gettimeofday.c: Likewise.
67777         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
67778         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
67779         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
67780         (__gettimeofday_internal): Remove strong_alias.
67781         (__gettimeofday): Add libc_hidden_def.
67782         (gettimeofday): Add libc_hidden_weak.
67783         * sysdeps/unix/syscalls.list (gettimeofday):
67784         Remove __gettimeofday_internal alias.
67785
67786 2012-05-24  Daniel Jacobowitz  <drow@false.org>
67787             H.J. Lu  <hongjiu.lu@intel.com>
67788
67789         [BZ #12495]
67790         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
67791         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
67792         (largebin_index_32_big): New.
67793         (largebin_index): Use it for 16-byte alignment.
67794         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
67795         correction with front_misalign.
67796
67797 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
67798
67799         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
67800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
67801         Likewise.
67802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
67803         Likewise.
67804         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
67805         Likewise.
67806         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
67807         Likewise.
67808         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
67809         Likewise.
67810         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
67811         Likewise.
67812         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
67813         Likewise.
67814         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
67815         Likewise.
67816         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
67817         Likewise.
67818         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
67819         Likewise.
67820         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
67821         Likewise.
67822         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
67823         Likewise.
67824
67825         * scripts/data/c++-types-x32-linux-gnu.data: New file.
67826         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
67827
67828 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67829
67830         [BZ #10846]
67831         [BZ #14036]
67832         * math/libm-test.inc (exp_test): Add test from bug 14036.
67833         (pow_test): Add test from bug 10846.
67834
67835         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
67836         and other flags.
67837         (special_function): Do not include flags in test name.
67838         (parse_args): Likewise.
67839         * sysdeps/i386/fpu/libm-test-ulps: Update.
67840         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
67841         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
67842         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
67843         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67844
67845         * math/gen-libm-test.pl (%beautify): Add entries for underflow
67846         exceptions.
67847         * math/libm-test.inc ("Philosophy"): Update comment about
67848         exception testing.
67849         (UNDERFLOW_EXCEPTION): New macro.
67850         (UNDERFLOW_EXCEPTION_OK): Likewise.
67851         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
67852         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
67853         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
67854         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
67855         (INVALID_EXCEPTION_OK): Update value.
67856         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
67857         (OVERFLOW_EXCEPTION_OK): Likewise.
67858         (IGNORE_ZERO_INF_SIGN): Likewise.
67859         (test_exceptions): Handle underflow exceptions.
67860         (acos_test): Update for underflow exception expectations.
67861         (cexp_test): Likewise.
67862         (clog_test): Likewise.
67863         (clog10_test): Likewise.
67864         (csqrt_test): Likewise.
67865         (ctan_test): Likewise.
67866         (ctanh_test): Likewise.
67867         (exp_test): Likewise.
67868         (exp10_test): Likewise.
67869         (exp2_test): Likewise.
67870         (expm1_test): Likewise.
67871         (fma_test): Likewise.
67872         (j0_test): Likewise.
67873         (jn_test): Likewise.
67874         (nexttoward_test): Likewise.
67875         (pow_test): Likewise.
67876         (scalbn_test): Likewise.
67877         (scalbln_test): Likewise.
67878         (tan_test): Likewise.
67879         (y1_test): Likewise.
67880         * sysdeps/i386/fpu/libm-test-ulps: Update.
67881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67882
67883 2012-05-23  David S. Miller  <davem@davemloft.net>
67884
67885         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
67886         (__libc_sigaction): Remove unused local variables.
67887
67888 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
67889
67890         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
67891
67892 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         mktime: avoid signed integer overflow
67895         * time/mktime.c (__mktime_internal): Do not mishandle the case
67896         where diff == INT_MIN.
67897
67898         mktime: simplify computation of average
67899         * time/mktime.c (ranged_convert): Use new time_t_avg function
67900         instead of rolling our own (probably-slower) code.
67901
67902         mktime: do not assume signed right shift propagates sign bit
67903         * time/mktime.c (isdst_differ): New static function.
67904         (__mktime_internal): No need to normalize tm_isdst now.
67905         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
67906         tm_isdst values.
67907
67908         mktime: merge another wrapv change from gnulib
67909         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
67910         from some compilers.
67911
67912         mktime: remove incorrect attempt at unusual arithmetics
67913         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
67914         The code didn't really work on such machines anyway.
67915         (TYPE_MINIMUM): Assume two's complement.
67916         (twos_complement_arithmetic): Verify that long_int and time_t
67917         are two's complement (or unsigned, in the latter case).
67918
67919         mktime: check signed shifts on long_int and time_t, too
67920         * time/mktime.c (SHR): Check that shifts work as desired
67921         on the types long_int and time_t too, as SHR is used on
67922         such types.
67923
67924         mktime: do not assume 'long' is wide enough
67925         * time/mktime.c (verify): Move decl up.
67926         (long_int): New type.
67927         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
67928         to remove assumption in the code that 'long' is wide enough to
67929         store year values.  This assumption is not true on x32 and on
67930         some non-glibc platforms.
67931
67932         mktime: merge wrapv change from gnulib
67933         * time/mktime.c (WRAPV): New macro.
67934         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
67935         (guess_time_tm, __mktime_internal): Do not assume that signed
67936         integer overflow wraps around; modern compilers generate code
67937         where this assumption is no longer valid.
67938
67939 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
67940
67941         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
67942         Replace "jmp L(pseudo_end)" with "ret".
67943         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
67944         Likewise.
67945
67946 2012-05-23  Andreas Jaeger  <aj@suse.de>
67947
67948         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
67949         * sysdeps/unix/sysv/linux/poll.c: Remove file.
67950
67951 2012-05-23  Andreas Jaeger  <aj@suse.de>
67952             Maximilian Attems  <max@stro.at>
67953
67954         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
67955         New macros.
67956
67957 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
67958
67959         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
67960         code so that pseudo_end is just ret and the stack pointer is
67961         correct also for static library in error case.
67962
67963 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
67964
67965         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
67966         move to syscalls.list.
67967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
67968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
67969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
67970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
67971
67972         * manual/install.texi (Running make install): Do not mention Linux
67973         kernel version for which pt_chown is not needed.
67974         (Linux): Do not mention problems with nscd with 2.0 kernels.
67975         * INSTALL: Regenerated.
67976
67977 2012-05-23  Andreas Jaeger  <aj@suse.de>
67978
67979         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
67980         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
67981         macro.
67982         * sysdeps/unix/sysv/linux/s390/bits/mman.h
67983         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
67984         * sysdeps/unix/sysv/linux/sh/bits/mman.h
67985         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
67986         * sysdeps/unix/sysv/linux/i386/bits/mman.h
67987         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
67988         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
67989         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
67990         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
67991         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
67992         * sysdeps/unix/sysv/linux/bits/in.h
67993         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
67994
67995 2012-05-22  Roland McGrath  <roland@hack.frob.com>
67996
67997         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
67998         (PREPARE_VERSION): Just use assert instead, it will be elided
67999         under [NDEBUG] anyway.
68000
68001 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68002
68003         * sysdeps/unix/sysv/linux/Makefile: Include
68004         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
68005         (sysdep_routines): Remove sysctl.
68006         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
68007         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
68008         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
68009         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
68010         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
68011
68012 2012-05-22  Andreas Jaeger  <aj@suse.de>
68013
68014         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
68015         that pseudo_end is just ret and the stack pointer is correct also
68016         for static library in error case.
68017
68018 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
68019
68020         [BZ #14122]
68021         * nss/nsswitch.c (defconfig_entries): New variable.
68022         (__nss_database_lookup): Don't leak defconfig entries.
68023         (nss_parse_service_list): Don't leak on error paths.
68024         (free_database_entries): New function.
68025         (free_defconfig): New function.
68026         (free_mem): Move common code to free_database_entries.
68027
68028 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68029
68030         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
68031         Add arch_prctl.
68032         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
68033
68034         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
68035         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
68036         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
68037         New macro.
68038         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
68039         (INTERNAL_SYSCALL_TYPES): Likewise.
68040         (LOAD_ARGS_TYPES_[1-6]): Likewise.
68041         (LOAD_REGS_TYPES_[1-6]): Likewise.
68042         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
68043         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
68044
68045 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68046
68047         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
68048         copysignl for GLIBC_2_0.
68049         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
68050         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
68051         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
68052         logbl for GLIBC_2_0.
68053         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
68054         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
68055
68056 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68057
68058         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
68059         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68060
68061         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68062         Use "neg %eax".
68063
68064         * time/mktime.c: Update copyright years.
68065
68066 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68067
68068         mktime: merge comment-quoting-style change from gnulib
68069         * time/mktime.c: Quote 'like this' in comments.
68070         The GNU coding standards suggest that we no longer quote `like this',
68071         as "`" and "'" are typically rendered asymmetrically nowadays.
68072         The typical gnulib style is to quote 'like this' when quoting
68073         code, and "like this" when quoting English.
68074
68075         * time/mktime.c (compile-command): Add "-I.".
68076
68077         mktime: merge mktime-internal.h change from gnulib
68078         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
68079
68080         mktime: merge time_r change from gnulib
68081         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
68082
68083         mktime: merge DEBUG change from gnulib
68084         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
68085         case system <time.h> has a #define.
68086
68087         mktime: merge <sys/types.h> change from gnulib
68088         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
68089         since <time.t> is now guaranteed to define time_t.
68090
68091         mktime: merge HAVE_CONFIG_H change from gnulib
68092         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
68093
68094 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68095
68096         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68097         Use "neg %eax".
68098
68099         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
68100         __rlim_t cast.
68101         (struct rusage): Use anonymous union to pad each field to
68102         __syscall_slong_t.
68103
68104 2012-05-21  David S. Miller  <davem@davemloft.net>
68105
68106         * Makefules (o-iterator): Remove .s cases.
68107         (compile-command.s): Delete.
68108         (COMPILE.s): Delete.
68109         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
68110
68111 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
68112
68113         * configure.in (libc_cv_predef_stack_protector): Only consider
68114         "foobar" and "__stack_chk_fail" lines in libc_undefs.
68115         * configure: Regenerated.
68116
68117 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68118
68119         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68120         New macro.  Use R*LP on int and pointer.
68121         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
68122         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
68123         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
68124         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
68125
68126         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
68127         [__WORDSIZE_TIME64_COMPAT32] instead of
68128         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
68129         (struct utmp): Likewise.
68130         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
68131         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
68132         Renamed to ...
68133         (__WORDSIZE_TIME64_COMPAT32): This.
68134         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
68135         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
68136         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
68137         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
68138         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
68139         (__WORDSIZE_TIME64_COMPAT32): New macro.
68140
68141 2012-05-21  Andreas Jaeger  <aj@suse.de>
68142
68143         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
68144         only if [SHARED]. Add prototype for __wcschr_ia32.
68145
68146 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68147
68148         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
68149         of %rbp unmolested in the jmp_buf while mangling the low bits.
68150         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
68151         unmolested high bits of %rbp while demangling the low bits.
68152         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
68153
68154 2012-05-21  Andreas Jaeger  <aj@suse.de>
68155
68156         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
68157         * sunrpc/svc_simple.c: Use it for registerrpc.
68158         * sunrpc/xcrypt.c: Use it for passwd2des.
68159
68160         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
68161
68162 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68163
68164         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
68165         Don't define if [__SYSCALL_WORDSIZE != 32].
68166         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
68167         New macro.
68168
68169 2012-05-21  Bruno Haible  <bruno@clisp.org>
68170             Andreas Jaeger  <aj@suse.de>
68171
68172         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
68173         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
68174         inptr and inend for must_buffer_ch.
68175         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
68176         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
68177         * stdio-common/Makefile (tests): Remove bug15.
68178         (bug15-ENV): Remove macro.
68179         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
68180         anymore.
68181
68182 2012-05-19  Andreas Jaeger  <aj@suse.de>
68183             Roland McGrath  <roland@hack.frob.com>
68184
68185         * manual/contrib.texi: Completely rewritten. It contains now an
68186         alphabetical list of contributors and their contributions.
68187
68188 2012-05-21  Richard Henderson  <rth@twiddle.net>
68189
68190         * misc/getauxval.c (__getauxval): Use unsigned long int.
68191         * misc/sys/auxv.h: Include <sys/cdefs.h>.
68192         (getauxval): Use unsigned long int.
68193
68194 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68195
68196         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68197
68198 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68199
68200         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
68201         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
68202         __alignof__ (long double).
68203
68204 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68205
68206         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68207
68208 2012-05-20  Richard Henderson  <rth@twiddle.net>
68209
68210         * misc/getauxval.c: New file.
68211         * misc/sys/auxv.h: New file.
68212         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
68213         (routines): Add getauxval.
68214         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
68215         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
68216         * elf/dl-sysdep.c (_dl_auxv): Remove.
68217         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
68218         * elf/dl-support.c (_dl_auxv): New variable.
68219         (_dl_aux_init): Initialize it.
68220         * manual/startup.texi (Auxiliary Vector): New node.
68221         * sysdeps/generic/bits/hwcap.h: New file.
68222         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
68223         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
68224         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
68225         * sysdeps/sparc/sysdep.h: ... here.  Include it.
68226         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
68227         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
68228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68229         Update.
68230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
68231         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
68232         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
68233         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
68234         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68235         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68236         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
68237         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
68238
68239 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68240
68241         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68242
68243 2012-05-19  David S. Miller  <davem@davemloft.net>
68244
68245         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68246
68247 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68248
68249         [BZ #14123]
68250         * math/s_ccosh.c: Include <float.h>
68251         (__ccosh): Avoid internal overflow calculating sinh and cosh
68252         values before multiplying by sin and cos values.
68253         * math/s_ccoshf.c: Likewise.
68254         * math/s_ccoshl.c: Likewise.
68255         * math/s_csin.c: Likewise.
68256         * math/s_csinf.c: Likewise.
68257         * math/s_csinl.c: Likewise.
68258         * math/s_csinh.c: Likewise.
68259         * math/s_csinhf.c: Likewise.
68260         * math/s_csinhl.c: Likewise.
68261         * math/libm-test.inc (ccos_test): Add more tests.
68262         (ccosh_test): Likewise.
68263         (csin_test): Likewise.
68264         (csinh_test): Likewise.
68265         * sysdeps/i386/fpu/libm-test-ulps: Update.
68266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68267
68268 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
68269
68270         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
68271         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
68272
68273         * sysdeps/x86_64/x32/_itoa.h: Add comment.
68274
68275 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68276
68277         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
68278         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
68279         * sysdeps/powerpc/soft-fp/Versions: Likewise.
68280         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
68281         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
68282         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
68283         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
68284         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
68285         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
68286         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
68287         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
68288         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
68289         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
68290         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
68291         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
68292         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
68293         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
68294         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
68295         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
68296         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
68297         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
68298         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
68299         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
68300         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
68301         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
68302         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
68303         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
68304         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
68305         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
68306         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
68307         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
68308
68309 2012-05-18  Andreas Jaeger  <aj@suse.de>
68310
68311         * csu/.gitignore: Delete.
68312
68313 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68314
68315         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
68316         (timex): Use __syscall_slong_t.
68317
68318 2012-05-18  Andreas Jaeger  <aj@suse.de>
68319             Carlos O'Donell  <carlos_odonell@mentor.com>
68320
68321         * manual/install.texi (Configuring and compiling): Update
68322         description about files modified in the source directory.
68323         * INSTALL: Regenerated.
68324
68325 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68326
68327         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
68328         value.  Use "or" to set return value to -1.
68329         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
68330         negate return value.
68331
68332 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
68333
68334         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
68335         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
68336         failure if the compiler has Graphite support disabled.
68337         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
68338         Likewise.
68339         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
68340         (CFLAGS-memmove.c): Likewise.
68341         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
68342         Likewise.
68343
68344 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68345
68346         * sysdeps/x86_64/x32/_itoa.h: New file.
68347
68348         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
68349         getdents system call only if kernel and user dirents have the
68350         same d_ino and d_off.
68351
68352         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
68353         LLONG_MAX != LONG_MAX.
68354         (_itoa_word): Use _ITOA_WORD_TYPE on value.
68355         (_fitoa_word): Likewise.
68356
68357         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
68358         years.
68359         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
68360         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
68361         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
68362
68363         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
68364         include <bits/wordsize.h>.  Check __x86_64__ instead of
68365         __WORDSIZE.
68366         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
68367         if __x86_64__ is defined.  Use anonymous union on fpstate.
68368
68369         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
68370         anonymous union.
68371
68372 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
68373
68374         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
68375         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
68376         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
68377         Refer to _rtld_local_ro instead of _rtld_global_ro.
68378         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
68379         Likewise.
68380         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
68381         Likewise.
68382         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
68383         Likewise.
68384         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
68385         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
68386         of _rtld_global, and rtld_progname instead of _dl_argv[0].
68387
68388         [BZ #10882]
68389         * sysdeps/powerpc/powerpc32/dl-machine.c
68390         (__elf_machine_runtime_setup) [PROF]: Don't reference
68391         _dl_prof_resolve.
68392
68393 2012-05-18  Andreas Jaeger  <aj@suse.de>
68394
68395         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
68396         function only available for GCCs before 3.4 since GCC 3.4
68397         introduced a builtin.
68398         (lrint): Likewise.
68399         (llrintf): Likewise.
68400         (llrint): Likewise.
68401         (fmaxf): Likewise.
68402         (fmax): Likewise.
68403         (fminf): Likewise.
68404         (fmin): Likewise.
68405         (rint): Likewise.
68406         (rintf): Likewise.
68407         (nearbyint): Likewise.
68408         (nearbyintf): Likewise.
68409         (ceil): Likewise.
68410         (ceilf): Likewise.
68411         (floor): Likewise.
68412         (floorf): Likewise.
68413
68414 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68415
68416         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
68417         on both fields and cast pointer to __syscall_ulong_t.
68418
68419         * bits/types.h (__fsword_t): New type.
68420         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
68421         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
68422         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68423         (__FSWORD_T_TYPE): Likewise.
68424         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68425         (__FSWORD_T_TYPE): Likewise.
68426         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68427         (__FSWORD_T_TYPE): Likewise.
68428         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
68429         (__FSWORD_T_TYPE): Likewise.
68430         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
68431         __SWORD_TYPE with __fsword_t.
68432         (statfs64): Likewise.
68433
68434 2012-05-17  David S. Miller  <davem@davemloft.net>
68435
68436         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
68437
68438 2012-05-17  Andreas Jaeger  <aj@suse.de>
68439
68440         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
68441         warning.
68442
68443 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68444
68445         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
68446
68447 2012-05-17  Andreas Jaeger  <aj@suse.de>
68448
68449         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
68450         when it is used.
68451
68452 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68453
68454         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
68455
68456 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68457
68458         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
68459         * sysdeps/x86_64/tst-mallocalign1.c: New file.
68460
68461 2012-05-17  Andreas Jaeger  <aj@suse.de>
68462             Carlos O'Donell  <carlos_odonell@mentor.com>
68463
68464         [BZ #14059]
68465         * sysdeps/x86_64/multiarch/init-arch.h
68466         (bit_YMM_Usable): Rename to...
68467         (bit_AVX_Usable): ... this.
68468         (bit_FMA4_Usable): New macro.
68469         (bit_XMM_state): New macro.
68470         (bit_YMM_state): New macro.
68471         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
68472         [__ASSEMBLER__] (index_AVX_Usable): ... this.
68473         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
68474         (CPUID_OSXSAVE): New macro.
68475         (CPUID_AVX): New macro.
68476         (CPUID_FMA4): New macro.
68477         (index_YMM_Usable): Rename to...
68478         (index_AVX_Usable): ... this.
68479         (HAS_AVX): Use HAS_ARCH_FEATURE.
68480         (HAS_FMA4): Likewise.
68481         (HAS_YMM_USABLE): Remove.
68482         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
68483         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
68484         are present.
68485         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
68486         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
68487         * sysdeps/x86_64/multiarch/Makefile: Likewise.
68488         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
68489         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
68490
68491 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68492
68493         * math/libm-test.c: Support platforms without multiple rounding modes.
68494         * math/bug-nextafter.c: Support platforms without FP exceptions.
68495         * math/bug-nexttoward.c: Likewise.
68496         * math/test-fenv.c: Likewise.
68497         * math/test-misc.c: Likewise.
68498         * stdlib/bug-getcontext.c: Likewise.
68499
68500 2012-05-17  Andreas Jaeger  <aj@suse.de>
68501
68502         * manual/examples/search.c (critter_cmp): Change signature to
68503         avoid warnings.
68504         * manual/string.texi (Collation Functions): Likewise.
68505
68506 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68507
68508         * bits/types.h: Fold copyright years.
68509         * bits/typesizes.h: Likewise.
68510         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
68511         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
68512         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
68513         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
68514         * time/time.h: Likewise.
68515
68516 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
68517
68518         [BZ #208]
68519         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
68520         in instead of returning them.  Return void.
68521         (__libc_mallinfo): Accumulate over all arenas.
68522         (__malloc_stats): Adjust for change in int_mallinfo interface.
68523
68524 2012-05-16  Roland McGrath  <roland@hack.frob.com>
68525
68526         [BZ #10375]
68527         * configure.in (NM): Add AC_CHECK_TOOL for it.
68528         (libc_extra_cflags): New substituted variable.
68529         Check for -fstack-protector being used implicitly.
68530         * configure: Regenerated.
68531         * config.make.in (config-extra-cflags): New variable,
68532         gets @libc_extra_cflags@.
68533         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
68534
68535         [BZ #10375]
68536         * configure.in: Check for _FORTIFY_SOURCE being predefined.
68537         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
68538         * configure: Regenerated.
68539         * config.make.in (CPPUNDEFS): New substituted variable.
68540         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
68541         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
68542         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
68543
68544 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68545
68546         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
68547         (mq_attr): Use __syscall_slong_t.
68548
68549 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68550
68551         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
68552         Check __x86_64__ instead of __WORDSIZE.
68553         (_STAT_VER_LINUX): Likewise.
68554         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
68555         __syscall_ulong_t and __syscall_slong_t.
68556         (stat64): Likewise.
68557
68558 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68559
68560         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
68561
68562 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68563
68564         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
68565
68566 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68567
68568         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
68569         __syscall_ulong_t.
68570
68571         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
68572         include <bits/wordsize.h>.  Check __x86_64__ instead of
68573         __WORDSIZE.
68574         (greg_t): Use "__extension__ long long int" if __x86_64__ is
68575         defined.
68576         (mcontext_t): Replace "unsigned long" with "unsigned long long".
68577
68578         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
68579         include <bits/wordsize.h>.  Check __x86_64__ instead of
68580         __WORDSIZE.
68581         (user_regs_struct): Use "__extension__ unsigned long long"
68582         instead of "unsigned long" if __x86_64__ is defined.
68583         (user): Likewise.  Pad after pointer field if __ILP32__ is
68584         defined.
68585
68586 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
68587
68588         * configure.in (makeinfo): Require version 4.5 or later.  Allow
68589         versions 5 to 9.
68590         * configure: Regenerated.
68591         * manual/install.texi (texinfo): Increase version requirement to
68592         4.5 or later.
68593         * INSTALL: Regenerated.
68594
68595         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
68596
68597 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68598
68599         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
68600
68601         * sysdeps/x86_64/x32/ffs.c: New file.
68602
68603         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
68604         __syscall_ulong_t.
68605         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
68606         defined.  Use __syscall_ulong_t.
68607         (shminfo): Use __syscall_ulong_t.
68608         (shm_info): Likewise.
68609
68610         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
68611         __syscall_ulong_t.
68612
68613         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
68614         <bits/wordsize.h>.
68615         (msgqnum_t): Use __syscall_ulong_t.
68616         (msglen_t): Likewise.
68617         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
68618         __syscall_ulong_t.
68619
68620         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
68621         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68622
68623         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
68624
68625         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
68626         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
68627
68628         * sysvipc/sys/msg.h (msgbuf): Replace long int with
68629         __syscall_slong_t.
68630
68631         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
68632         include <bits/wordsize.h>.  Check __x86_64__ instead of
68633         __WORDSIZE.
68634
68635         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
68636         "unsigned long long int" if __x86_64__ is defined.
68637         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
68638
68639         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
68640         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68641         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
68642
68643         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
68644         <stdint.h>.
68645         (GET_PC): Cast to uintptr_t first.
68646         (GET_FRAME): Likewise.
68647         (GET_STACK): Likewise.
68648
68649         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
68650         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
68651         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
68652         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
68653         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
68654         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
68655         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
68656         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
68657         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
68658         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
68659         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
68660         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
68661         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
68662         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
68663         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
68664         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
68665         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
68666         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
68667         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
68668         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
68669         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
68670         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
68671         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
68672         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
68673         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
68674         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
68675         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
68676         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
68677         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
68678
68679 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
68680
68681         * Makerules (+depfiles): Also collect depfiles from .oS in
68682         $(extra-objs).
68683         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
68684         .oS, $(libnldbl-routines)).
68685
68686         * Makerules (native-compile-mkdep-flags): Define.
68687         * sunrpc/Makefile (extra-objs): Add $(addprefix
68688         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
68689         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
68690         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
68691         calling $(make-target-directory).
68692
68693 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68694
68695         * bits/types.h (__snseconds_t): Removed.
68696         * time/time.h (struct timespec): Replace __snseconds_t with
68697         __syscall_slong_t.
68698         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
68699         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
68700         Likewise.
68701         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68702         (__SNSECONDS_T_TYPE): Likewise.
68703         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68704         (__SNSECONDS_T_TYPE): Likewise.
68705         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68706         (__SNSECONDS_T_TYPE): Likewise.
68707
68708 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68709
68710         * sysdeps/mach/hurd/bits/typesizes.h
68711         (__SYSCALL_SLONG_TYPE): New macro.
68712         (__SYSCALL_ULONG_TYPE): Likewise.
68713
68714 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68715
68716         * bits/types.h (__syscall_slong_t): New type.
68717         (__syscall_ulong_t): Likewise.
68718
68719         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
68720         (__SYSCALL_ULONG_TYPE): Likewise.
68721         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68722         (__SYSCALL_SLONG_TYPE): Likewise.
68723         (__SYSCALL_ULONG_TYPE): Likewise.
68724         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68725         (__SYSCALL_SLONG_TYPE): Likewise.
68726         (__SYSCALL_ULONG_TYPE): Likewise.
68727         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68728         (__SYSCALL_SLONG_TYPE): Likewise.
68729         (__SYSCALL_ULONG_TYPE): Likewise.
68730
68731 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68732
68733         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
68734         Add sigaltstack-offsets.sym.
68735         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
68736         <sigaltstack-offsets.h>.
68737         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
68738         longjmp_msg pointer.
68739         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
68740         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
68741         signal stack.
68742         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
68743
68744 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
68745
68746         * elf/stackguard-macros.h: Remove file.
68747         * sysdeps/generic/stackguard-macros.h: New file.
68748         * sysdeps/i386/stackguard-macros.h: Likewise.
68749         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
68750         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
68751         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
68752         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
68753         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
68754         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
68755         * sysdeps/x86_64/stackguard-macros.h: Likewise.
68756         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
68757         <elf/stackguard-macros.h>.
68758
68759         [BZ #14109]
68760         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
68761         __aligned__ in attribute.
68762         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
68763         (gregset_t): Likewise.
68764
68765 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68766
68767         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
68768         * sysdeps/x86_64/64/Implies-after: Here.  New file.
68769         * sysdeps/x86_64/x32/Implies-after: New file.
68770
68771 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68772
68773         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
68774         and access return value for _dl_profile_fixup.  Use R10_LP to
68775         load frame size.
68776
68777 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68778
68779         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
68780
68781 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68782
68783         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
68784         * sysdeps/x86_64/x32/sysdep.h: New file.
68785
68786 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68787
68788         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
68789         * sysdeps/x86_64/setjmp.S: Likewise.
68790
68791 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68792
68793         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
68794         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
68795         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
68796         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
68797         remove unused global constant.
68798
68799 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
68800
68801         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
68802         include of <not-cancel.h>.
68803
68804 2012-05-15  Roland McGrath  <roland@hack.frob.com>
68805
68806         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
68807
68808 2012-05-15  Jeff Law  <law@redhat.com>
68809             Andreas Jaeger  <aj@suse.de>
68810
68811         [BZ #13594]
68812         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
68813         out from...
68814         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
68815         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
68816         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
68817         code changing __hst_map_handle.map.
68818
68819 2012-05-15  Roland McGrath  <roland@hack.frob.com>
68820
68821         * configure.in (sysnames): Look for Implies-before and Implies-after
68822         files.
68823         * configure: Regenerated.
68824
68825 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68826
68827         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
68828         8-byte data alignment with LP_SIZE alignment.
68829
68830 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68831
68832         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
68833         into R10_LP.
68834
68835 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68836
68837         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
68838
68839 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68840
68841         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
68842         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
68843         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
68844         Likewise.
68845         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
68846
68847 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68848
68849         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
68850         (stackinfo_sub_sp): Likewise.
68851
68852 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68853
68854         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
68855         RAX_LP.
68856
68857 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68858
68859         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
68860         into R*_LP.
68861
68862 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68863
68864         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
68865         sizes into R*_LP.
68866
68867 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68868
68869         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
68870
68871 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68872
68873         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
68874         into R11_LP and load __x86_64_shared_cache_size_half into
68875         R8_LP.
68876
68877 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68878
68879         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
68880         R8_LP.
68881
68882 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68883
68884         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
68885         logb for POWER7.
68886         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
68887         logbf for POWER7.
68888         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
68889         logbl for POWER7.
68890         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
68891         powerpc32/power7/fpu/s_logb.c via #include.
68892         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
68893         powerpc32/power7/fpu/s_logbf.c via #include.
68894         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
68895         powerpc32/power7/fpu/s_logbl.c via #include.
68896
68897 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
68898
68899         * README.libm: Remove file.
68900
68901 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
68902
68903         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
68904         count for x32.  Use R*_LP and omit operand-size suffix.
68905
68906 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
68907
68908         * shlib-versions: Move x86_64-.*-linux.* entries to ...
68909         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
68910         * sysdeps/x86_64/x32/shlib-versions: New file.
68911
68912 2012-05-14  Roland McGrath  <roland@hack.frob.com>
68913
68914         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
68915         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
68916         Use _dl_fatal_printf instead.
68917
68918 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
68919
68920         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
68921         set if not set by the user.  Do not allow for being unset.
68922         * sysdeps/unix/sysv/linux/configure: Regenerated.
68923
68924 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
68925
68926         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
68927         the `q' suffix from lea and replace .quad with ASM_ADDR.
68928
68929 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
68930
68931         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
68932         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
68933         instead of $17.
68934         (PTR_DEMANGLE): Likewise.
68935
68936 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
68937
68938         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
68939         (LP_OP): Likewise.
68940         (ASM_ADDR): Likewise.
68941         (RAX_LP): Likewise.
68942         (RBP_LP): Likewise.
68943         (RBX_LP): Likewise.
68944         (RCX_LP): Likewise.
68945         (RDI_LP): Likewise.
68946         (RSI_LP): Likewise.
68947         (RSP_LP): Likewise.
68948         (R8_LP): Likewise.
68949         (R9_LP): Likewise.
68950         (R10_LP): Likewise.
68951         (R10_LP): Likewise.
68952         (R11_LP): Likewise.
68953         (R12_LP): Likewise.
68954         (R13_LP): Likewise.
68955         (R14_LP): Likewise.
68956         (R15_LP): Likewise.
68957
68958 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
68959
68960         * sysdeps/x86_64/x32/dl-machine.h: New file.
68961
68962 2012-05-14  Andreas Jaeger  <aj@suse.de>
68963
68964         * manual/Makefile (subdir): Remove export of subdir.
68965         (all): Remove target.
68966         (.PHONY): Remove all from list.
68967         (mkinstalldirs): Remove.
68968         (.PHONY): Remove installdirs from list.
68969         ($(inst_infodir)/libc.info): Use make-target-directory.
68970         (installdirs): Remove.
68971         (subdir_%): Remove.
68972         (glibc-targets): Remove.
68973         (lib): Remove.
68974         (stubs): Remove.
68975         ($(objpfx)stubs ../po/manual.pot): Remove.
68976         ($(objpfx)stamp%): Remove.
68977         (make-target-directory): Remove.
68978         (subdir_install): Remove.
68979         (routines): Remove.
68980         (aux): Remove.
68981         (sources): Remove.
68982         (objects): Remove.
68983         (headers): Remove.
68984
68985         [BZ #13750]
68986         * manual/.gitignore: Remove, it's not needed anymore.
68987         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
68988         all files in it.
68989         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
68990         directory.
68991         (texis): Renamed to $(objpfx)texis.
68992         (texis-path): New, contains path to generated files.
68993         (chapters.%): Use texis-path for complete path, add extra argument
68994         libc-texinfo.sh.
68995         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
68996         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
68997         (summary,texi, stamp-summary): Use complete path of
68998         files. Generate files in build dir.
68999         (dir-add.texi): Build in build dir.
69000         (libm-err.texi,stamp-libm-err): Likewise.
69001         (version.texi, stamp-version): Likewise.
69002         (.%c.texi): Likewise.
69003         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
69004         (mostlyclean): Remove target.
69005         (realclean): Remove target.
69006         (generated): Add new variable with contents from mostlyclean and
69007         realclean, remove entries duplicated in common-mostlyclean, add
69008         stamp-libm-err and stamp-version.
69009         (generated-dirs): Add libc directory.
69010         ($(inst_infodir)/libc.info): Install files from build dir.
69011
69012         * manual/install.texi (Configuring and compiling): Adjust since
69013         the info files are not part of the tar ball anymore.
69014
69015 2012-05-14  Andreas Jaeger  <aj@suse.de>
69016
69017         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
69018         variable.
69019
69020 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69021
69022         [BZ #13717]
69023         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
69024         to 2.2.0 where earlier.
69025         * sysdeps/unix/sysv/linux/configure: Regenerated.
69026         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
69027         Remove conditional code.
69028         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
69029         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
69030         Remove conditional code.
69031         [!__NR_lchown]: Likewise.
69032         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69033         [__NR_lchown]: Likewise.
69034         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
69035         comment referencing __ASSUME_LCHOWN_SYSCALL.
69036         * sysdeps/unix/sysv/linux/i386/sigaction.c
69037         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69038         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69039         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
69040         Remove conditional code.
69041         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
69042         (__protocol_available): Remove #if 0 code.
69043         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
69044         conditional code.
69045         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
69046         * sysdeps/unix/sysv/linux/kernel-features.h
69047         (__ASSUME_GETCWD_SYSCALL): Don't define.
69048         (__ASSUME_REALTIME_SIGNALS): Likewise.
69049         (__ASSUME_PREAD_SYSCALL): Likewise.
69050         (__ASSUME_PWRITE_SYSCALL): Likewise.
69051         (__ASSUME_POLL_SYSCALL): Likewise.
69052         (__ASSUME_LCHOWN_SYSCALL): Likewise.
69053         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
69054         non-SPARC.
69055         (__ASSUME_SIOCGIFNAME): Don't define.
69056         (__ASSUME_MSG_NOSIGNAL): Likewise.
69057         (__ASSUME_SENDFILE): Define unconditionally.
69058         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
69059         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
69060         conditional code.
69061         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
69062         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
69063         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69064         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69065         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
69066         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69067         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
69069         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69070         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
69072         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69073         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
69075         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69076         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
69078         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69079         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
69081         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69082         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
69084         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69085         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
69087         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69088         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
69090         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69091         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69092         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
69093         Remove conditional code.
69094         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69095         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69096         Remove conditional code.
69097         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69098         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
69099         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
69100         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69101         Remove conditional code.
69102         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69103         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
69104         Remove conditional code.
69105         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69106         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
69107         Remove conditional code.
69108         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69109         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69110         Remove conditional code.
69111         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69112         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69113         Remove conditional code.
69114         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69115         * sysdeps/unix/sysv/linux/sh/pwrite64.c
69116         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69117         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69118         * sysdeps/unix/sysv/linux/sigaction.c
69119         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69120         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69121         * sysdeps/unix/sysv/linux/sigpending.c
69122         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69123         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69124         * sysdeps/unix/sysv/linux/sigprocmask.c
69125         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69126         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69127         * sysdeps/unix/sysv/linux/sigsuspend.c
69128         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69129         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69130         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
69131         (__libc_missing_rt_sigs): Remove.
69132         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
69133         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
69134         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
69135         Remove conditional code.
69136         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
69137         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
69138         return 1.
69139         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
69140         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
69141         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
69142         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
69143
69144 2012-05-14  Andreas Jaeger  <aj@suse.de>
69145
69146         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
69147         it's not used in glibc.
69148         (__coshm1): Likewise.
69149         (__acosh1p): Likewise.
69150         (__sgn): Likewise.
69151
69152         * manual/string.texi (Copying and Concatenation): Add missing
69153         variable in concat example.
69154         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
69155
69156 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69157
69158         [BZ #14103]
69159         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
69160         __builtin_clzl with __builtin_clzll.
69161
69162 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69163
69164         [BZ #14104]
69165         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
69166         libc_freeres_ptr.
69167
69168 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69169
69170         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
69171         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
69172         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
69173         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
69174
69175 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
69176
69177         * NEWS: Update ia64 info.
69178
69179 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
69180
69181         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
69182         used as bcopy.
69183
69184 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
69185
69186         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
69187         * sysdeps/unix/syscalls.list (dup3): Likewise.
69188         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
69189         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
69190
69191 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69192
69193         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
69194         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
69195
69196 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69197
69198         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
69199         thread pointer.
69200         (TLS_IE): Use mov/add instead of movq/addq to load thread
69201         pointer.
69202         (TLS_GD_PREFIX): New.
69203         (TLS_GD): Use it.
69204
69205 2012-05-11  David S. Miller  <davem@davemloft.net>
69206
69207         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
69208         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
69209         (_FPU_SETCW): Likewise.
69210
69211 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69212
69213         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
69214         is 32-byte aligned.
69215
69216 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
69217
69218         [BZ #11837]
69219         * iconvdata/gb18030.c: Update tables.
69220         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
69221         characters specially.
69222         (BODY for TO_LOOP): Add encoding of missing ranges.
69223
69224 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
69225
69226         [BZ #13673]
69227         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
69228         * sysdeps/mach/hurd/dup3.c: Likewise.
69229         * sysdeps/mach/hurd/readlinkat.c: Likewise.
69230         * sysdeps/powerpc/memmove.c:: Likewise.
69231
69232 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69233
69234         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
69235         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
69236
69237 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69238
69239         * elf/elf.h (R_X86_64_RELATIVE64): New.
69240         (R_X86_64_NUM): Updated.
69241         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
69242         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
69243         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
69244         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
69245         tst-quad1pie tst-quad2pie
69246         (modules-names): Add tst-quadmod1 tst-quadmod2.
69247         ($(objpfx)tst-quad1): New dependency.
69248         ($(objpfx)tst-quad2): Likewise.
69249         ($(objpfx)tst-quad1pie): Likewise.
69250         ($(objpfx)tst-quad2pie): Likewise.
69251         * sysdeps/x86_64/tst-quad1.c: New file.
69252         * sysdeps/x86_64/tst-quad1pie.c: New file.
69253         * sysdeps/x86_64/tst-quad2.c: Likewise.
69254         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
69255         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
69256         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
69257         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
69258         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
69259
69260 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69261
69262         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
69263         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
69264         * streams/stropts.h (t_scalar_t): Define type.
69265
69266         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
69267         (_PATH_PRESERVE): Set to "/var/lib".
69268         (_PATH_RWHODIR): Set to "/var/spool/rwho".
69269
69270         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
69271         instead of int.
69272
69273         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
69274         if __dir_mkfile succeeded.
69275
69276         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
69277         checking for _hurd_dtablesize.  Unlock it right after having
69278         finished _hurd_dtable allocation.
69279
69280 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69281
69282         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
69283         * sysdeps/mach/hurd/configure: Regenerated.
69284         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
69285         special-casing to...
69286         * sysdeps/gnu/configure.in: ... this new file.
69287         * sysdeps/unix/sysv/linux/configure: Regenerated.
69288         * sysdeps/gnu/configure: New generated file.
69289
69290         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
69291         for Linux: use nsec instead of usec, as well as:
69292         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
69293         members of type struct timespec.
69294         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
69295         New macros.
69296         (struct stat64): Likewise.
69297         (_STATBUF_ST_NSEC): New macro.
69298         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
69299
69300         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
69301         __strtoul_internal rather than strtoul.
69302
69303 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69304
69305         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
69306         and reject them.
69307
69308 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69309
69310         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
69311         which preserves existing values.
69312         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
69313
69314 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69315
69316         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
69317         TIMEOUT values.  Return EINVAL for NFDS values either negative or
69318         greater than FD_SETSIZE.
69319
69320 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69321
69322         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
69323         allocated, call __vm_protect to finish enabling the existing space, and
69324         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
69325         allocate the remainder.
69326
69327 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69328
69329         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
69330         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
69331
69332 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69333
69334         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
69335         sysdeps/mach/hurd/readlink.c.
69336
69337         * posix/tst-sysconf.c (posix_options): Only use
69338         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
69339         _POSIX_SYNCHRONIZED_IO when they are defined
69340         * sysdeps/mach/hurd/bits/posix_opt.h:
69341         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
69342         (_XOPEN_REALTIME): Undefine macro.
69343         (_XOPEN_REALTIME_THREADS): Undefine macro.
69344         (_XOPEN_SHM): Undefine macro.
69345         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
69346         macro to -1.
69347         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
69348         macro to -1.
69349         (_POSIX_ASYNC_IO): Undefine macro.
69350         (_POSIX_PRIORITIZED_IO): Undefine macro.
69351         (_POSIX_SPIN_LOCKS): Define macro to -1.
69352
69353         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
69354         SA_NODEFER, SA_RESETHAND.
69355         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
69356         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
69357         F_DUPFD_CLOEXEC.
69358
69359 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69360
69361         * elf/Makefile (pldd-modules): Define unconditionally.
69362
69363 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69364
69365         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
69366
69367 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69368
69369         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
69370         Return ENOENT when name is empty.
69371         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
69372
69373 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69374
69375         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
69376
69377         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
69378
69379 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69380
69381         Fix mlock in all cases except non-readable pages.
69382         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
69383         instead of VM_PROT_ALL as parameter to __vm_wire function.
69384
69385         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
69386         (__mkdir): When path is `/', just fail with EEXIST.
69387         * sysdeps/mach/hurd/mkdirat.c: Likewise.
69388
69389 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69390
69391         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
69392         <sys/uio.h> (for writev).
69393         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
69394         and <sys/param.h> (for MIN).
69395
69396 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69397
69398         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
69399         REQUESTED_TIME.  Properly set the remaining time and return EINTR
69400         if interrupted.
69401
69402 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69403
69404         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
69405         Depend on against $(link-rpcuserlibs).
69406
69407 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69408
69409         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
69410         (__libc_stack_end): Do not use attribute_relro.
69411         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
69412         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
69413         to libthread-provided value.
69414         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
69415         attribute_relro.
69416
69417 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69418
69419         [BZ #3748]
69420         * bits/libc-lock.h (__libc_once_get): New macro.
69421         * sysdeps/mach/bits/libc-lock.h: Likewise.
69422         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
69423         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
69424         instead of using implementation details.
69425
69426         * libio/fileops.c: Unconditionally include <kernel-features.h>.
69427         * libio/freopen.c: Likewise.
69428         * libio/freopen64.c: Likewise.
69429         * misc/syslog.c: Likewise.
69430         * nscd/connections.c: Likewise.
69431         * nscd/netgroupcache.c: Likewise.
69432         * sysdeps/posix/getcwd.c: Likewise.
69433
69434 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69435
69436         * math/w_ilogbf.c: Add #include <limits.h>.
69437
69438 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69439
69440         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
69441         path instead of returning without unlocking.
69442
69443         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
69444         immediate-write ioctls.
69445         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
69446
69447 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69448
69449         * sysdeps/mach/hurd/i386/init-first.c (init): Use
69450         __builtin_frame_address instead of making assumptions about the
69451         location of the return address relative to DATA.  Force early load of
69452         the return address.
69453         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
69454         __builtin_frame_address.
69455
69456         dup3 for GNU Hurd.
69457         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
69458         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
69459         implement dup3 and do some further code clean-ups.
69460         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
69461         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
69462
69463 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69464
69465         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
69466
69467         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
69468         HURD_CRITICAL_END around holding _hurd_dtable_lock.
69469         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
69470         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
69471         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
69472         d->port.lock.
69473
69474         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
69475         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
69476         when handler == SIG_ERR, not when handler != SIG_ERR.
69477
69478 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69479
69480         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
69481         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
69482         definitions.
69483
69484         accept4 for GNU Hurd.
69485         * include/sys/socket.h (__libc_accept4): New prototype.
69486         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
69487         to implement __libc_accept4.
69488         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
69489         __libc_accept4.
69490         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
69491
69492         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
69493         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
69494         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
69495         signal-defines.sym.
69496
69497 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69498
69499         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
69500
69501 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69502
69503         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
69504         assertion on O_CLOEXEC flag.
69505         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
69506         * hurd/intern-fd.c: Likewise.
69507         * hurd/port2fd.c: Likewise.
69508
69509 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69510
69511         [BZ #3906]
69512         * bits/in.h (IPV6_PKTINFO): Define new macro.
69513         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
69514
69515 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69516
69517         [BZ #13954]
69518         [BZ #13955]
69519         [BZ #13956]
69520         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
69521         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
69522         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
69523         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
69524         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
69525         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
69526         * math/libm-test.inc (logb_test) : Additional logb tests.
69527
69528 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
69529             Andreas Jaeger  <aj@suse.de>
69530
69531         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
69532         * configure: Regenerated.
69533         * config.h.in (LINK_OBSOLETE_RPC): New macro.
69534         * config.make.in (link-obsolete-rpc): New substituted variable.
69535         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
69536         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
69537         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69538         (shared-only-routines): Don't set it under [link-obsolete-rpc],
69539         so that libc.a contains the symbols.
69540         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69541         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
69542         * sunrpc/auth_none.c: Likewise.
69543         * sunrpc/auth_unix.c: Likewise.
69544         * sunrpc/authdes_prot.c: Likewise.
69545         * sunrpc/authuxprot.c: Likewise.
69546         * sunrpc/clnt_gen.c: Likewise.
69547         * sunrpc/clnt_perr.c: Likewise.
69548         * sunrpc/clnt_raw.c: Likewise.
69549         * sunrpc/clnt_simp.c: Likewise.
69550         * sunrpc/clnt_tcp.c: Likewise.
69551         * sunrpc/clnt_udp.c: Likewise.
69552         * sunrpc/clnt_unix.c: Likewise.
69553         * sunrpc/des_crypt.c: Likewise.
69554         * sunrpc/des_soft.c: Likewise.
69555         * sunrpc/get_myaddr.c: Likewise.
69556         * sunrpc/key_call.c: Likewise.
69557         * sunrpc/key_prot.c: Likewise.
69558         * sunrpc/netname.c: Likewise.
69559         * sunrpc/pm_getmaps.c: Likewise.
69560         * sunrpc/pm_getport.c: Likewise.
69561         * sunrpc/pmap_clnt.c: Likewise.
69562         * sunrpc/pmap_prot.c: Likewise.
69563         * sunrpc/pmap_prot2.c: Likewise.
69564         * sunrpc/pmap_rmt.c: Likewise.
69565         * sunrpc/publickey.c: Likewise.
69566         * sunrpc/rpc_cmsg.c: Likewise.
69567         * sunrpc/rpc_common.c: Likewise.
69568         * sunrpc/rpc_dtable.c: Likewise.
69569         * sunrpc/rpc_prot.c: Likewise.
69570         * sunrpc/rpc_thread.c: Likewise.
69571         * sunrpc/rtime.c: Likewise.
69572         * sunrpc/svc.c: Likewise.
69573         * sunrpc/svc_auth.c: Likewise.
69574         * sunrpc/svc_raw.c: Likewise.
69575         * sunrpc/svc_run.c: Likewise.
69576         * sunrpc/svc_tcp.c: Likewise.
69577         * sunrpc/svc_udp.c: Likewise.
69578         * sunrpc/svc_unix.c: Likewise.
69579         * sunrpc/svcauth_des.c: Likewise.
69580         * sunrpc/xcrypt.c: Likewise.
69581         * sunrpc/xdr.c: Likewise.
69582         * sunrpc/xdr_array.c: Likewise.
69583         * sunrpc/xdr_float.c: Likewise.
69584         * sunrpc/xdr_intXX_t.c: Likewise.
69585         * sunrpc/xdr_mem.c: Likewise.
69586         * sunrpc/xdr_rec.c: Likewise.
69587         * sunrpc/xdr_ref.c: Likewise.
69588         * sunrpc/xdr_sizeof.c: Likewise.
69589         * sunrpc/xdr_stdio.c: Likewise.
69590
69591 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69592
69593         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
69594         change.  Update copyright years.
69595
69596 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69597
69598         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
69599
69600 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
69601             Joseph Myers  <joseph@codesourcery.com>
69602             Paul Pluzhnikov  <ppluzhnikov@google.com>
69603
69604         [BZ #14012]
69605         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
69606         requiring rpcgen.
69607         [cross-compiling] (extra-libs): Likewise.
69608         [cross-compiling] (extra-libs-others): Likewise.
69609         [cross-compiling] (librpcsvc-routines): Likewise.
69610         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
69611         [cross-compiling] (omit-deps): Likewise.
69612         (sunrpc-CPPFLAGS): New variable.
69613         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
69614         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
69615         (cross-rpcgen-objs): New variable.
69616         (extra-objs): Append $(cross-rpcgen-objs).
69617         ($(cross-rpcgen-objs)): New rule.
69618         ($(objpfx)cross-rpcgen): Likewise.
69619         (rpcgen-cmd): Define to use $(built-program-file).  Expand
69620         comment.
69621         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
69622         ($(objpfx)x%.stmp): Likewise.
69623         * sunrpc/proto.h [IS_IN_build] (_): Define.
69624         [IS_IN_build] (_libc_intl_domainname): Likewise.
69625
69626 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69627
69628         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
69629         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
69630         and R_X86_64_TPOFF64.
69631
69632 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69633
69634         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
69635         sysdeps/unix/sysv/syscalls.list.
69636         (stime): Likewise.
69637         (utime): Likewise.
69638         * sysdeps/unix/sysv/syscalls.list: Remove file.
69639
69640 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         [BZ #3440]
69643         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
69644         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
69645         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
69646         (__LC_IDENTIFICATION): Make these macros useful in #if
69647         expressions, as required by C99.
69648
69649 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
69650
69651         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
69652         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
69653         after this.
69654
69655 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
69656
69657         * stdlib/longlong.h: Updated from GCC.
69658
69659 2012-05-09  Andreas Jaeger  <aj@suse.de>
69660
69661         * nscd/nscd.c (run_modes): Make named enum, reorder so that
69662         default is first entry.
69663         (run_mode): Set type.
69664         (main): Remove informal message about syslog.
69665         (options): Fix typo.
69666
69667         [BZ #14053]
69668         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
69669         to asm.
69670         (lrint): Likewise.
69671         (llrintf): Likewise.
69672         (llrint): Likewise.
69673         (rint): Likewise.
69674         (rintf): Likewise.
69675         (nearbyint): Likewise.
69676         (nearbyintf): Likewise.
69677
69678 2012-05-09  Andreas Jaeger  <aj@suse.de>
69679             Pedro Alves  <palves@redhat.com>
69680
69681         * nscd/nscd.c (run_mode): Use enum.
69682         (main): Cleanup coding style issue.
69683
69684 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
69685             Andreas Jaeger  <aj@suse.de>
69686
69687         * nscd/nscd.c (go_background): Replaced with...
69688         (run_mode): ... this.
69689         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
69690         (options): Add -F --foreground.
69691         (main): Implement it.
69692         (parse_opt): Parse it.
69693
69694 2012-05-09  Andreas Jaeger  <aj@suse.de>
69695
69696         [BZ #14083]
69697         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
69698         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
69699         -Wconversion warning.
69700         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
69701         Likewise.
69702
69703 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
69704
69705         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
69706         == 0.
69707         (LC_ALL): Use macro-int-constant.
69708         (LC_COLLATE): Likewise.
69709         (LC_CTYPE): Likewise.
69710         (LC_MESSAGES): Likewise.
69711         (LC_MONETARY): Likewise.
69712         (LC_NUMERIC): Likewise.
69713         (LC_TIME): Likewise.
69714         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
69715         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
69716         [ISO || ISO99 || ISO11] (*_t): Do not allow.
69717         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
69718         Specify type.
69719         [C99-based standards] (float_t): Expect type.
69720         [C99-based standards] (double_t): Expect type.
69721         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
69722         type.
69723         [C99-based standards] (HUGE_VALL): Likewise.
69724         [C99-based standards] (INFINITY): Likewise.
69725         [C99-based standards] (NAN): Likewise.
69726         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
69727         [C99-based standards] (FP_NAN): Likewise.
69728         [C99-based standards] (FP_NORMAL): Likewise.
69729         [C99-based standards] (FP_SUBNORMAL): Likewise.
69730         [C99-based standards] (FP_ZERO): Likewise.
69731         [C99-based standards] (FP_FAST_FMA): Use
69732         optional-macro-int-constant.  Specify type.  Require == 1.
69733         [C99-based standards] (FP_FAST_FMAF): Likewise.
69734         [C99-based standards] (FP_FAST_FMAL): Likewise.
69735         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
69736         [C99-based standards] (FP_ILOGBNAN): Likewise.
69737         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
69738         Specify type.
69739         [C99-based standards] (MATH_ERREXCEPT): Likewise.
69740         [C99-based standards] (math_errhandling): Specify type.
69741         [ISO99 || ISO11] (signgam): Do not allow.
69742         [non-C99-based standards] (copysignf): Do not allow.
69743         [non-C99-based standards] (exp2f): Likewise.
69744         [non-C99-based standards] (log2f): Likewise.
69745         [non-C99-based standards] (modff): Allow.
69746         [non-C99-based standards] (erff): Do not allow.
69747         [non-C99-based standards] (erfcf): Likewise.
69748         [non-C99-based standards] (gammaf): Likewise.
69749         [non-C99-based standards] (hypotf): Likewise.
69750         [non-C99-based standards] (j0f): Likewise.
69751         [non-C99-based standards] (j1f): Likewise.
69752         [non-C99-based standards] (jnf): Likewise.
69753         [non-C99-based standards] (lgammaf): Likewise.
69754         [non-C99-based standards] (tgammaf): Likewise.
69755         [non-C99-based standards] (y0f): Likewise.
69756         [non-C99-based standards] (y1f): Likewise.
69757         [non-C99-based standards] (ynf): Likewise.
69758         [non-C99-based standards] (isnanf): Likewise.
69759         [non-C99-based standards] (acoshf): Likewise.
69760         [non-C99-based standards] (asinhf): Likewise.
69761         [non-C99-based standards] (atanhf): Likewise.
69762         [non-C99-based standards] (cbrtf): Likewise.
69763         [non-C99-based standards] (expm1f): Likewise.
69764         [non-C99-based standards] (ilogbf): Likewise.
69765         [non-C99-based standards] (log1pf): Likewise.
69766         [non-C99-based standards] (logbf): Likewise.
69767         [non-C99-based standards] (nextafterf): Likewise.
69768         [non-C99-based standards] (remainderf): Likewise.
69769         [non-C99-based standards] (rintf): Likewise.
69770         [non-C99-based standards] (scalbf): Likewise.
69771         [non-C99-based standards] (copysignl): Likewise.
69772         [non-C99-based standards] (exp2l): Likewise.
69773         [non-C99-based standards] (log2l): Likewise.
69774         [non-C99-based standards] (modfl): Allow.
69775         [non-C99-based standards] (erfl): Do not allow.
69776         [non-C99-based standards] (erfcl): Likewise.
69777         [non-C99-based standards] (gammal): Likewise.
69778         [non-C99-based standards] (hypotl): Likewise.
69779         [non-C99-based standards] (j0l): Likewise.
69780         [non-C99-based standards] (j1l): Likewise.
69781         [non-C99-based standards] (jnl): Likewise.
69782         [non-C99-based standards] (lgammal): Likewise.
69783         [non-C99-based standards] (tgammal): Likewise.
69784         [non-C99-based standards] (y0l): Likewise.
69785         [non-C99-based standards] (y1l): Likewise.
69786         [non-C99-based standards] (ynl): Likewise.
69787         [non-C99-based standards] (isnanl): Likewise.
69788         [non-C99-based standards] (acoshl): Likewise.
69789         [non-C99-based standards] (asinhl): Likewise.
69790         [non-C99-based standards] (atanhl): Likewise.
69791         [non-C99-based standards] (cbrtl): Likewise.
69792         [non-C99-based standards] (expm1l): Likewise.
69793         [non-C99-based standards] (ilogbl): Likewise.
69794         [non-C99-based standards] (log1pl): Likewise.
69795         [non-C99-based standards] (logbl): Likewise.
69796         [non-C99-based standards] (nextafterl): Likewise.
69797         [non-C99-based standards] (remainderl): Likewise.
69798         [non-C99-based standards] (rintl): Likewise.
69799         [non-C99-based standards] (scalbl): Likewise.
69800         [ISO || ISO99 || ISO11] (*_t): Do not allow.
69801         [non-C99-based standards] (FP_*): Do not allow.
69802         [C99-based standards] (FP_*): Change to
69803         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
69804         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
69805         allow.
69806         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
69807         (SIG_ERR): Likewise.
69808         [X/Open-based standards] (SIG_HOLD): Likewise.
69809         (SIG_IGN): Likewise.
69810         (SIGABRT): Use macro-int-constant.  Specify type.  Require
69811         positive value.
69812         (SIGFPE): Likewise.
69813         (SIGILL): Likewise.
69814         (SIGINT): Likewise.
69815         (SIGSEGV): Likewise.
69816         (SIGTER): Likewise.
69817         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
69818         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
69819         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
69820         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
69821         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
69822         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
69823         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
69824         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
69825         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
69826         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
69827         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
69828         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
69829         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
69830         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
69831         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
69832         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
69833         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
69834         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
69835         [X/Open-based standards] (SIGTRAP): Likewise.
69836         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
69837         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
69838         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
69839         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
69840         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
69841         allow.
69842
69843 2012-05-08  Ian Wienand  <ianw@vmware.com>
69844
69845         [BZ #14080]
69846         * time/tzset.c (__tzset_parse_tz): Update default rules for
69847         daylight time changes in the Energy Policy Act of 2005.
69848
69849 2012-05-09  Andreas Jaeger  <aj@suse.de>
69850
69851         [BZ #13983]
69852         * elf/ldconfig.c (parse_conf): Change string to make clear that
69853         ldconfig only issued a warning if ld.so.conf does not exist.
69854
69855 2012-05-08  David S. Miller  <davem@davemloft.net>
69856
69857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
69858         movxtod instead of popping the value on the stack.
69859
69860         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69861
69862 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
69863
69864         * config.h.in: Add HAVE_ARM_PCS_VFP.
69865
69866 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
69867
69868         [BZ #13979]
69869         * include/features.h: Warn if user requests __FORTIFY_SOURCE
69870         checking but the checks are disabled for any reason.
69871
69872 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
69873
69874         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
69875         and ELF64_R_TYPE with ELFW(R_TYPE).
69876
69877 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
69878
69879         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
69880         (ulimit): Likewise.
69881
69882         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
69883         (settimeofday): Likewise.
69884
69885 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
69886
69887         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
69888         a struct th_u2 inside the union, and move tu_block/tu_code into
69889         a new th_u3 union of tu_block/tu_code inside of that.  Move
69890         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
69891         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
69892         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
69893         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
69894         (th_stuff): Change to th_u1.tu_stuff.
69895         (th_data): Define.
69896         (th_msg): Change to th_u1.th_u2.tu_data.
69897
69898 2012-05-07  David S. Miller  <davem@davemloft.net>
69899
69900         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69901
69902         [BZ #14074]
69903         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
69904         (SETUP_PIC_REG): Use it.
69905         (SETUP_PIC_REG_LEAF): Use it.
69906
69907 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
69908
69909         [BZ #13885]
69910         [BZ #13923]
69911         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
69912         USE_AS_EXPM1L.
69913         (EXPL_FINITE): Likewise.
69914         (FLDLOG): Likewise.
69915         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
69916         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
69917         e_expl.S.
69918         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
69919         USE_AS_EXPM1L.
69920         (EXPL_FINITE): Likewise.
69921         (FLDLOG): Likewise.
69922         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
69923         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
69924         e_expl.S.
69925         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
69926         test of -max_value argument for long double.
69927         * sysdeps/i386/fpu/libm-test-ulps: Update.
69928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69929
69930 2012-05-06  David S. Miller  <davem@davemloft.net>
69931
69932         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
69933         quad soft-float symbols whose references which are compiler
69934         generated.
69935         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
69936
69937 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
69938
69939         [BZ #13884]
69940         [BZ #13914]
69941         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
69942         USE_AS_EXP10L.
69943         (EXPL_FINITE): Likewise.
69944         (FLDLOG): Likewise.
69945         (c0): Likewise.
69946         (c1): Likewise.
69947         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
69948         Adjust comments for base varying.
69949         (__expl_finite): Change alias to EXPL_FINITE.
69950         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
69951         e_expl.S.
69952         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
69953         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
69954         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
69955         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
69956         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
69957         USE_AS_EXP10L.
69958         (EXPL_FINITE): Likewise.
69959         (FLDLOG): Likewise.
69960         (c0): Likewise.
69961         (c1): Likewise.
69962         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
69963         Adjust comments for base varying.
69964         (__expl_finite): Change alias to EXPL_FINITE.
69965         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
69966         tests for bugs.
69967         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
69968
69969         [BZ #14064]
69970         * math/libm-test.inc (check_float_internal): Correct ulp
69971         calculation for subnormal expected results.
69972
69973 2012-05-06  Andreas Jaeger  <aj@suse.de>
69974
69975         * Makeconfig (+math-flags): New, set to -frounding-math.
69976         (+cflags): Add +math-flags so that all of glibc gets compiled with
69977         it.
69978
69979         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
69980
69981 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
69982
69983         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
69984         Disable one test.
69985
69986         [BZ #13787]
69987         [BZ #13922]
69988         [BZ #14036]
69989         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
69990         (__ieee754_expl): Allow for and saturate large arguments.
69991         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
69992         (u_threshold): Likewise.
69993         (__exp): Call __ieee754_exp before checking for overflow and
69994         underflow.
69995         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
69996         (u_threshold): Likewise.
69997         (__expf): Call __ieee754_expf before checking for overflow and
69998         underflow.
69999         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
70000         (u_threshold): Likewise.
70001         (__expl): Call __ieee754_expl before checking for overflow and
70002         underflow.
70003         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
70004         (__ieee754_expl): Allow for and saturate large arguments.
70005         * math/libm-test.inc (exp_test): Add another test.  Do not allow
70006         missing overflow exception on overflow.
70007         (expm1_test): Do not allow missing overflow exception on overflow.
70008
70009         * sysdeps/i386/fpu/e_expl.c: Move to ...
70010         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
70011         rather than using inline asm.
70012         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
70013         * sysdeps/x86_64/fpu/e_expl.S: Copy from
70014         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
70015
70016         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
70017         (nice): Likewise.
70018         (poll): Likewise.
70019         (signal): Likewise.
70020         (time): Likewise.
70021         (times): Likewise.
70022
70023 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70024
70025         * sysdeps/unix/syscalls.list (adjtime): Add entry from
70026         sysdeps/unix/common/syscalls.list.
70027         (fchmod): Likewise.
70028         (fchown): Likewise.
70029         (ftruncate): Likewise.
70030         (getrusage): Likewise.
70031         (gettimeofday): Likewise.
70032         (setpgid): Likewise.
70033         (setregid): Likewise.
70034         (setreuid): Likewise.
70035         (sigaction): Likewise.
70036         (truncate): Likewise.
70037         (vhangup): Likewise.
70038         * sysdeps/unix/common/syscalls.list: Remove file.
70039         * sysdeps/unix/bsd/Implies: Don't include unix/common.
70040         * sysdeps/unix/sysv/linux/Implies: Likewise.
70041
70042 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
70043
70044         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
70045         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
70046         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
70047         Moved to ...
70048         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
70049         Here.
70050         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
70051         to ...
70052         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
70053         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
70054         to ...
70055         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
70056         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
70057         to ...
70058         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
70059         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
70060         to ...
70061         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
70062         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
70063         to ...
70064         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
70065         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
70066         to ...
70067         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
70068         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
70069         to ...
70070         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
70071         Here.
70072         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
70073         to ...
70074         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
70075         Here.
70076         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
70077         to ...
70078         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
70079         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
70080         Moved to ...
70081         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
70082         Here.
70083         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
70084         to ...
70085         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
70086
70087 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70088
70089         * sysdeps/unix/common/bits/dirent.h: Remove file.
70090         * sysdeps/unix/common/bits/fcntl.h: Likewise.
70091
70092         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
70093         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
70094         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
70095         * sysdeps/unix/bsd/isatty.c: Likewise.
70096         * sysdeps/unix/bsd/tcdrain.c: Likewise.
70097         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
70098         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
70099
70100 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70101
70102         [BZ #13563]
70103         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
70104         long double comparison inaccuracies.
70105         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
70106         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70107
70108 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
70109
70110         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
70111         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
70112
70113 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70114
70115         [BZ #14049]
70116         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
70117         nonzero digits before rounding a hex value.
70118         * stdlib/tst-strtod.c (tests): Add another test.
70119
70120 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70121
70122         * sysdeps/s390/fpu/libm-test-ulps: Update.
70123
70124 2012-05-03  Andreas Jaeger  <aj@suse.de>
70125
70126         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
70127         does not get optimized out.
70128         (malloc_opt_barrier): New.
70129
70130 2012-05-03  Andreas Jaeger  <aj@suse.de>
70131             Roland McGrath  <roland@hack.frob.com>
70132
70133         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
70134         intermediate file deletion.
70135         (generated): Add .symlist files.
70136
70137 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
70138
70139         [BZ #13775]
70140         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
70141         Redirect under this condition.
70142         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70143         [__USE_GNU] (__dprintf_chk): Not under this condition.
70144         [__USE_GNU] (__vdprintf_chk): Likewise.
70145         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
70146         under this condition.
70147         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70148         [__USE_XOPEN2K8] (dprintf): Define under this condition.
70149         [__USE_XOPEN2K8] (vdprintf): Likewise.
70150         [__USE_GNU] (__dprintf_chk): Not under this condition.
70151         [__USE_GNU] (__vdprintf_chk): Likewise.
70152         [__USE_GNU] (dprintf): Likewise.
70153         [__USE_GNU] (vdprintf): Likewise.
70154
70155 2012-05-03  Roland McGrath  <roland@hack.frob.com>
70156
70157         * elf/Makefile (common-generated): Set this instead of generated for
70158         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
70159         $(all-built-dso)-derived lists.
70160
70161 2012-05-03  Andreas Jaeger  <aj@suse.de>
70162
70163         * sysdeps/i386/fpu/libm-test-ulps: Update.
70164
70165         * FAQ: Removed.
70166         * FAQ.in: Likewise.
70167         * scripts/gen-FAQ.pl: Likewise.
70168         * manual/install.texi (Installation): Point to online location of
70169         FAQ.
70170         * Makefile (files-for-dist): Remove FAQ.
70171         (FAQ): Remove.
70172
70173 2012-05-02  Allan McRae  <allan@archlinux.org>
70174
70175         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
70176         (LDFLAGS-reldepmod5.so): Likewise.
70177         (LDFLAGS-reldep6mod1.so): Likewise.
70178         (LDFLAGS-reldep6mod4.so): Likewise.
70179         (LDFLAGS-reldep8mod3.so): Likewise.
70180         (LDFLAGS-unload4mod1.so): Likewise.
70181         (LDFLAGS-unload4mod2.so): Likewise.
70182         (LDFLAGS-tst-initorder): Likewise.
70183         (LDFLAGS-tst-initordera2.so): Likewise.
70184         (LDFLAGS-tst-initordera3.so): Likewise.
70185         (LDFLAGS-tst-initordera4.so): Likewise.
70186         (LDFLAGS-tst-initorderb2.so): Likewise.
70187         (LDFLAGS-noload): Likewise.
70188         (LDFLAGS-next): Likewise.
70189         (LDFLAGS-order2mod1.so): Likewise.
70190         (LDFLAGS-order2mod2.so): Likewise.
70191         (LDFLAGS-tst-initorder2): Likewise.
70192         (LDFLAGS-tst-initorder2a.so): Likewise.
70193         (LDFLAGS-tst-initorder2b.so): Likewise.
70194         (LDFLAGS-tst-initorder2c.so): Likewise.
70195         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
70196
70197 2012-05-02  David S. Miller  <davem@davemloft.net>
70198
70199         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70200
70201 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
70202
70203         [BZ #14055]
70204         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
70205
70206 2012-05-02  Andreas Jaeger  <aj@suse.de>
70207
70208         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
70209         since we manipulate rounding mode.
70210         (CPPFLAGS-test-idouble.c): Likewise.
70211         (CPPFLAGS-test-ifloat.c): Likewise.
70212         (CFLAGS-test-ldouble.c): Likewise.
70213         (CFLAGS-test-double.c): Likewise.
70214         (CFLAGS-test-float.c): Likewise.
70215         (CFLAGS-test-misc.c): Likewise.
70216         (CFLAGS-test-test-fenv.c): Likewise.
70217
70218 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70219
70220         [BZ #2550]
70221         [BZ #2570]
70222         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
70223         comparisons to determine direction to adjust input.
70224
70225 2012-05-01  Roland McGrath  <roland@hack.frob.com>
70226
70227         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
70228         output to the target.
70229
70230         * scripts/localplt.awk: New file.
70231         * elf/Makefile ($(objpfx)check-localplt): Target removed.
70232         (check-localplt-CFLAGS): Variable removed.
70233         ($(all-built-dso:=.jmprel)): New static pattern rule.
70234         (generated): Add those targets.
70235         (localplt-built-dso): New variable.
70236         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
70237
70238         * elf/check-localplt.c: File removed.
70239
70240         * scripts/check-execstack.awk: New file.
70241         * elf/Makefile ($(objpfx)check-execstack): Target removed.
70242         (check-execstack-CFLAGS): Variable removed.
70243         ($(objpfx)check-execstack.h): Target removed.
70244         ($(objpfx)execstack-default): New target.
70245         (generated): Add that instead of check-execstack.h.
70246         ($(all-built-dso:=.phdr)): New static pattern rule.
70247         (generated): Add those targets.
70248         * elf/check-execstack.c: File removed.
70249
70250         * scripts/check-textrel.awk: New file.
70251         * elf/Makefile ($(objpfx)check-textrel): Target removed.
70252         (check-textrel-CFLAGS): Variable removed.
70253         (all-built-dso): Use := to define.o
70254         ($(all-built-dso:=.dyn)): New static pattern rule.
70255         (generated): Add those targets.
70256         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
70257         * config.make.in (READELF): New substituted variable.
70258         * elf/check-textrel.c: File removed.
70259
70260 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70261
70262         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70263         allow.
70264         * conform/data/ctype.h-data [C99-based standards] (isblank):
70265         Expect function.
70266         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
70267         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
70268         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70269         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
70270         Specify type.  Require positive value.
70271         (EILSEQ): Likewise.
70272         (ERANGE): Likewise.
70273         [ISO || POSIX] (EILSEQ): Do not expect.
70274         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
70275         Specify type.  Require positive value.
70276         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
70277         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
70278         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
70279         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
70280         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
70281         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
70282         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
70283         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
70284         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
70285         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
70286         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
70287         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
70288         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
70289         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
70290         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
70291         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
70292         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
70293         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
70294         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
70295         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
70296         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
70297         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
70298         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
70299         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
70300         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
70301         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
70302         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
70303         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
70304         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
70305         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
70306         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
70307         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
70308         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
70309         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
70310         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
70311         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
70312         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
70313         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
70314         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
70315         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
70316         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
70317         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
70318         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
70319         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
70320         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
70321         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
70322         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
70323         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
70324         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
70325         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
70326         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
70327         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
70328         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
70329         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
70330         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
70331         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
70332         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
70333         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
70334         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
70335         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
70336         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
70337         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
70338         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
70339         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
70340         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
70341         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
70342         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
70343         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
70344         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
70345         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
70346         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
70347         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
70348         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
70349         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
70350         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
70351         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
70352         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
70353         Require >= 2.
70354         (FLT_ROUNDS): Expect as macro, not constant.
70355         (FLT_MANT_DIG): Use macro-int-constant.
70356         (DBL_MANT_DIG): Likewise.
70357         (LDBL_MANT_DIG): Likewise.
70358         (FLT_DIG): Likewise.
70359         (DBL_DIG): Likewise.
70360         (LDBL_DIG): Likewise.
70361         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
70362         (DBL_MIN_EXP): Likewise.
70363         (LDBL_MIN_EXP): Likewise.
70364         (FLT_MAX_EXP): Use macro-int-constant.
70365         (DBL_MAX_EXP): Likewise.
70366         (LDBL_MAX_EXP): Likewise.
70367         (FLT_MAX_10_EXP): Likewise.
70368         (DBL_MAX_10_EXP): Likewise.
70369         (LDBL_MAX_10_EXP): Likewise.
70370         (FLT_MAX): Use macro-constant.
70371         (DBL_MAX): Likewise.
70372         (LDBL_MAX): Likewise.
70373         (FLT_EPSILON): Use macro-constant.  Give upper bound.
70374         (DBL_EPSILON): Likewise.
70375         (LDBL_EPSILON): Likewise.
70376         (FLT_MIN): Likewise.
70377         (DBL_MIN): Likewise.
70378         (LDBL_MIN): Likewise.
70379         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
70380         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
70381         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
70382         [ISO11] (FLT_HAS_SUBNORM): Likewise.
70383         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
70384         [ISO11] (DBL_DECIMAL_DIG): Likewise.
70385         [ISO11] (FLT_DECIMAL_DIG): Likewise.
70386         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
70387         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
70388         [ISO11] (FLT_TRUE_MIN): Likewise.
70389         [ISO11] (LDBL_TRUE_MIN): Likewise.
70390         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70391         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
70392         (SCHAR_MIN): Use macro-int-constant.  Specify type.
70393         (SCHAR_MAX): Likewise.
70394         (UCHAR_MAX): Likewise.
70395         (CHAR_MIN): Likewise.
70396         (CHAR_MAX): Likewise.
70397         (MB_LEN_MAX): Use macro-int-constant.
70398         (SHRT_MIN): Use macro-int-constant.  Specify type.
70399         (SHRT_MAX): Likewise.
70400         (USHRT_MAX): Likewise.
70401         (INT_MAX): Likewise.
70402         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
70403         bound negative.
70404         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70405         bound with "U".
70406         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70407         bound with "L".
70408         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
70409         bound negative.  Suffix upper bound with "L".
70410         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70411         bound with "UL".
70412         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
70413         Specify type.
70414         [C99-based standards] (LLONG_MAX): Likewise.
70415         [C99-based standards] (ULLONG_MAX): Likewise.
70416         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
70417         == 0.
70418         [ISO11] (max_align_t): Require type.
70419         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70420
70421         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
70422         from $CFLAGS, without defining away __attribute__ calls.
70423         (checknamespace): Use $CFLAGS_namespace.
70424
70425         * conform/conformtest.pl (@keywords): Only include C99 keywords
70426         for standards based on C99 or C11.
70427
70428         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
70429         Disable tests.
70430         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
70431         UNIX98]: Likewise.
70432
70433         * conform/conformtest.pl: Handle "macro-int-constant" and test for
70434         usability of symbols in #if.
70435
70436         * conform/conformtest.pl: If macro or constant types start
70437         "promoted:", expect the symbol to be of the following type
70438         promoted by the integer promotions.
70439
70440         * conform/conformtest.pl: Parse all "constant" and "macro" lines
70441         in one place.  Also handle "macro-constant".
70442
70443         * conform/conformtest.pl: Only accept expected macro values with
70444         "==".  Parse all "macro" lines in one place.
70445         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
70446
70447         * conform/conformtest.pl: Handle braced types on "constant" lines
70448         instead of handling "typed-constant".
70449         * conform/data/signal.h-data: Use "constant" instead of
70450         "typed-constant".
70451
70452         * conform/conformtest.pl: Handle "optional-" at start of lines in
70453         one place rather than duplicating several cases.  Handle each
70454         format of "macro" line with initial "optional-".
70455
70456         * conform/conformtest.pl: Only accept expected constant or
70457         optional-constant values with "==".  Parse all "constant" lines in
70458         one place.  Parse all "optional-constant" lines in one place.
70459         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
70460         * conform/data/fmtmsg.h-data: Likewise.
70461         * conform/data/netinet/in.h-data: Likewise.
70462         * conform/data/tar.h-data: Likewise.
70463         * conform/data/limits.h-data: Use "==" form on "constant" and
70464         "optional-constant" lines.
70465
70466         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
70467         Use -std=c99 for XOPEN2K.
70468         (@knownproblems): Remove.
70469         (newtoken): Don't check %isknown.
70470
70471         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
70472         Do not expect macro.
70473         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
70474         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
70475         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
70476         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
70477         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
70478         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
70479         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
70480         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
70481         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
70482         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
70483         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
70484         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
70485         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
70486         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
70487         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
70488         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
70489         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
70490         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
70491         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
70492         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
70493         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
70494         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
70495         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
70496         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
70497         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
70498         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
70499         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
70500         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
70501         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
70502         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
70503         [XPG3] (acosh): Likewise.
70504         [XPG3] (asinh): Likewise.
70505         [XPG3] (atanh): Likewise.
70506         [XPG3] (cbrt): Likewise.
70507         [XPG3] (expm1): Likewise.
70508         [XPG3] (ilogb): Likewise.
70509         [XPG3] (log1p): Likewise.
70510         [XPG3] (logb): Likewise.
70511         [XPG3] (nextafter): Likewise.
70512         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
70513         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
70514         [XPG3] (remainder): Likewise.
70515         [XPG3] (rint): Likewise.
70516         [XPG3 || XPG4 || UNIX98] (round): Likewise.
70517         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
70518         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
70519         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
70520         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
70521         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
70522         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
70523         [UNIX98 || XOPEN2K] (scalb): Expect.
70524         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
70525         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
70526         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
70527         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
70528         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
70529         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
70530         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
70531         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
70532         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
70533         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
70534         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
70535         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
70536         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
70537         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
70538         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
70539         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
70540         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
70541         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
70542         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
70543         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
70544         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
70545         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
70546         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
70547         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
70548         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
70549         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
70550         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
70551         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
70552         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
70553         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
70554         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
70555         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
70556         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
70557         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
70558         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
70559         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
70560         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
70561         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
70562         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
70563         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
70564         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
70565         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
70566         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
70567         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
70568         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
70569         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
70570         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
70571         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
70572         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
70573         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
70574         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
70575         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
70576         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
70577         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
70578         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
70579         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
70580         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
70581         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
70582         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
70583         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
70584         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
70585         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
70586         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
70587         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
70588         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
70589         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
70590         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
70591         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
70592         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
70593         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
70594         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
70595         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
70596         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
70597         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
70598         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
70599         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
70600         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
70601         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
70602         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
70603         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
70604         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
70605         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
70606         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
70607         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
70608         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
70609         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
70610         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
70611         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
70612         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
70613         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
70614         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
70615         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
70616         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
70617         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
70618         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
70619         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
70620         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
70621         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
70622         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
70623         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
70624         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
70625         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
70626         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
70627         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
70628         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
70629         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
70630         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
70631         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
70632         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
70633         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
70634         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
70635         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
70636         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
70637         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
70638         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
70639         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
70640         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
70641         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
70642         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
70643         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
70644         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
70645         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
70646         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
70647         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
70648         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
70649         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
70650         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
70651         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
70652         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
70653         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
70654         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
70655         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
70656         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
70657         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
70658         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
70659         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
70660         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
70661
70662         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
70663         _XOPEN_SOURCE_EXTENDED for XPG4.
70664
70665         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
70666
70667         * Makeconfig (localtime): Remove variable.
70668         (inst_localtime-file): Likewise.
70669
70670 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
70671
70672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
70673         Update.
70674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70675         Update.
70676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
70677         Update.
70678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
70679         Update.
70680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
70681         Update.
70682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
70683         Update.
70684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70685         Update.
70686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
70687         Update.
70688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
70689         Update.
70690
70691 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70692
70693         [BZ #2550]
70694         [BZ #2570]
70695         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
70696         comparisons to determine direction to adjust input.
70697         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
70698         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
70699         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
70700         Likewise.
70701         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
70702         Likewise.
70703         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
70704         Likewise.
70705         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
70706         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
70707         Likewise.
70708         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
70709         Likewise.
70710         * math/libm-test.inc (nexttoward_test): Add more tests.
70711
70712 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
70713
70714         [BZ #14040]
70715         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
70716         in version GLIBC_2.1, not GLIBC_2.0.
70717         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
70718         Likewise.
70719
70720 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
70721
70722         [BZ #13942]
70723         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
70724         (1 - x) * (1 + x).
70725         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
70726         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
70727         * math/libm-test.inc (acos_test): Add more tests.
70728         (asin_test): Likewise.
70729         * sysdeps/i386/fpu/libm-test-ulps: Update.
70730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70731
70732         [BZ #14034]
70733         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
70734         of square root.
70735         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
70736         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
70737         * math/libm-test.inc (acos_test_tonearest): New function.
70738         (acos_test_towardzero): Likewise.
70739         (acos_test_downward): Likewise.
70740         (acos_test_upward): Likewise.
70741         (asin_test_tonearest): Likewise.
70742         (asin_test_towardzero): Likewise.
70743         (asin_test_downward): Likewise.
70744         (asin_test_upward): Likewise.
70745         (main): Call the new functions.
70746         * sysdeps/i386/fpu/libm-test-ulps: Update.
70747         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70748
70749         [BZ #13884]
70750         [BZ #13924]
70751         * math/e_exp10.c: Include <float.h>.
70752         (__ieee754_exp10): Handle underflow here rather than multiplying
70753         large negative argument by M_LN10.
70754         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
70755         of __ieee754_expf.
70756         * math/e_exp10l.c: Include <float.h>.
70757         (__ieee754_exp10l): Handle underflow here rather than multiplying
70758         large negative argument by M_LN10l.
70759         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
70760         spurious overflow exception on underflow.
70761
70762 2012-04-29  Marek Polacek  <polacek@redhat.com>
70763
70764         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
70765         (__fortify_function): New macro.
70766         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
70767         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
70768         __extern_always_inline.
70769         * libio/bits/stdio2.h: Likewise.
70770         * libio/bits/stdio.h: Likewise.
70771         * string/string.h: Likewise.
70772         * string/bits/string3.h: Likewise.
70773         * include/stdio.h: Likewise.
70774         * stdlib/bits/stdlib.h: Likewise.
70775         * stdlib/stdlib.h: Likewise.
70776         * rt/bits/mqueue2.h: Likewise.
70777         * rt/mqueue.h: Likewise.
70778         * posix/bits/unistd.h: Likewise.
70779         * posix/unistd.h: Likewise.
70780         * io/bits/poll2.h: Likewise.
70781         * io/bits/fcntl2.h: Likewise.
70782         * io/fcntl.h: Likewise.
70783         * io/sys/poll.h: Likewise.
70784         * misc/bits/syslog.h: Likewise.
70785         * misc/bits/syslog-ldbl.h: Likewise.
70786         * misc/sys/syslog.h: Likewise.
70787         * socket/bits/socket2.h: Likewise.
70788         * socket/sys/socket.h: Likewise.
70789         * debug/tst-chk1.c: Likewise.
70790         * wcsmbs/bits/wchar2.h: Likewise.
70791         * wcsmbs/bits/wchar-ldbl.h: Likewise.
70792         * wcsmbs/wchar.h: Likewise.
70793
70794 2012-04-29  Andreas Jaeger  <aj@suse.de>
70795
70796         * Makerules (tests): Remove enable-check-abi protection.
70797         (check-abi-warn): Remove.
70798         (check-abi-%): Remove check-abi-warn usage.
70799
70800         * configure.in: Remove check-abi configure option.
70801         * configure: Regenerated.
70802         * config.make.in (enable-check-abi): Remove.
70803
70804 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
70805
70806         [BZ #14033]
70807         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
70808         double functions to double *_finite functions.
70809
70810         [BZ #13941]
70811         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
70812         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
70813         LDBL_MIN_EXP.
70814         * stdio-common/Makefile (tests): Add tst-sprintf3.
70815         * stdio-common/tst-sprintf3.c: New file.
70816
70817         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
70818         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
70819
70820 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
70821
70822         * conform/conformtest.pl: Remove duplicate typed-constant
70823         handling.
70824
70825 2012-04-28  David S. Miller  <davem@davemloft.net>
70826
70827         * Makerules (%.abilist): Add vpath on sysdep_dirs.
70828         (check-abi-%): Remove AWK script prerequisite and explicit
70829         abilist directory.
70830         (check-abi): Rewrite to just diff the symlist with the abilist.
70831         (config-tls, config-abi-config): Delete, no longer used.
70832         (update-abi-%): Remove AWK script and explicit abilist directory.
70833         (update-abi): Rewrite to simply compare and conditionally copy the
70834         symlist and the sysdep abilist file.  Remove update-abi-config
70835         checks.
70836         * abilist/ld.abilist: Remove.
70837         * abilist/libBrokenLocale.abilist: Remove.
70838         * abilist/libanl.abilist: Remove.
70839         * abilist/libcrypt.abilist: Remove.
70840         * abilist/libdl.abilist: Remove.
70841         * abilist/librt.abilist: Remove.
70842         * abilist/libthread_db.abilist: Remove.
70843         * abilist/libutil.abilist: Remove.
70844         * scripts/extract-abilist.awk: Remove.
70845         * scripts/merge-abilist.awk: Remove.
70846         * sysdeps/generic/libcidn.abilist: New file.
70847         * sysdeps/generic/libnss_compat.abilist: New file.
70848         * sysdeps/generic/libnss_db.abilist: New file.
70849         * sysdeps/generic/libnss_dns.abilist: New file.
70850         * sysdeps/generic/libnss_files.abilist: New file.
70851         * sysdeps/generic/libnss_hesiod.abilist: New file.
70852         * sysdeps/generic/libnss_nis.abilist: New file.
70853         * sysdeps/generic/libnss_nisplus.abilist: New file.
70854         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
70855         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
70856         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
70857         file.
70858         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
70859         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
70860         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
70861         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
70862         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
70863         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
70864         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
70865         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
70866         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
70867         file.
70868         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
70869         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
70870         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
70871         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
70872         file.
70873         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
70874         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
70875         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
70876         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
70877         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
70878         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
70879         file.
70880         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
70881         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
70882         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
70883         file.
70884         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
70885         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
70886         New file.
70887         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
70888         New file.
70889         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
70890         New file.
70891         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
70892         New file.
70893         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
70894         New file.
70895         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
70896         New file.
70897         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
70898         New file.
70899         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
70900         New file.
70901         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
70902         New file.
70903         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
70904         New file.
70905         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
70906         New file.
70907         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
70908         New file.
70909         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
70910         New file.
70911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
70912         file.
70913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
70914         New file.
70915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
70916         New file.
70917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
70918         file.
70919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
70920         New file.
70921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
70922         New file.
70923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
70924         file.
70925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
70926         New file.
70927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
70928         New file.
70929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
70930         New file.
70931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
70932         New file.
70933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
70934         New file.
70935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
70936         New file.
70937         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
70938         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
70939         file.
70940         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
70941         New file.
70942         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
70943         file.
70944         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
70945         file.
70946         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
70947         file.
70948         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
70949         file.
70950         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
70951         file.
70952         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
70953         New file.
70954         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
70955         file.
70956         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
70957         file.
70958         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
70959         New file.
70960         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
70961         file.
70962         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
70963         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
70964         file.
70965         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
70966         New file.
70967         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
70968         file.
70969         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
70970         file.
70971         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
70972         file.
70973         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
70974         file.
70975         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
70976         file.
70977         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
70978         New file.
70979         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
70980         file.
70981         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
70982         file.
70983         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
70984         New file.
70985         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
70986         file.
70987         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
70988         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
70989         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
70990         file.
70991         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
70992         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
70993         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
70994         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
70995         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
70996         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
70997         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
70998         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
70999         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
71000         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
71001         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
71002         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
71003         file.
71004         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
71005         New file.
71006         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
71007         file.
71008         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
71009         file.
71010         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
71011         file.
71012         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
71013         file.
71014         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
71015         file.
71016         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
71017         New file.
71018         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
71019         New file.
71020         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
71021         file.
71022         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
71023         New file.
71024         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
71025         file.
71026         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
71027         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
71028         file.
71029         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
71030         New file.
71031         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
71032         file.
71033         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
71034         file.
71035         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
71036         file.
71037         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
71038         file.
71039         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
71040         file.
71041         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
71042         New file.
71043         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
71044         New file.
71045         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
71046         file.
71047         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
71048         New file.
71049         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
71050         file.
71051
71052 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71053
71054         * conform/conformtest.pl: Fix typo in handling typed-constant from
71055         allow-header.
71056
71057 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71058
71059         * README: Cut down references to pre-2.6 Linux kernels and
71060         Linuxthreads.  Update lists of configurations in libc and ports
71061         and sort alphabetically.  Say "or newer" with Linux kernel version
71062         requirements.
71063
71064         * config.h.in [IS_IN_build]: Allow compiling without optimization.
71065
71066 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
71067
71068         [BZ #887]
71069         * math/libm-test.inc (logb_test_downward): New test to expose
71070         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
71071         rounding mode.
71072
71073 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71074
71075         [BZ #14027]
71076         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
71077         to be done.
71078         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
71079         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
71080
71081 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
71082
71083         * sysdeps/unix/i386/brk.S: Remove file.
71084         * sysdeps/unix/i386/dl-brk.S: Likewise.
71085         * sysdeps/unix/i386/pipe.S: Likewise.
71086         * sysdeps/unix/i386/sigreturn.S: Likewise.
71087         * sysdeps/unix/i386/syscall.S: Likewise.
71088         * sysdeps/unix/i386/vfork.S: Likewise.
71089         * sysdeps/unix/i386/wait.S: Likewise.
71090
71091         * sysdeps/unix/common/tcsendbrk.c: Move to ...
71092         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
71093
71094         * configure.in (arm*-none*): Do not allow without
71095         --enable-hacker-mode.
71096         (netbsd*): Remove case setting base_os.
71097         (386bsd*): Likewise.
71098         (freebsd*): Likewise.
71099         (bsdi*): Likewise.
71100         (osf*): Likewise.
71101         (sunos*): Likewise.
71102         (ultrix*): Likewise.
71103         (newsos*): Likewise.
71104         (dynix*): Likewise.
71105         (*bsd*): Likewise.
71106         (sysv*): Likewise.
71107         (isc*): Likewise.
71108         (esix*): Likewise.
71109         (sco*): Likewise.
71110         (minix*): Likewise.
71111         (irix4*): Likewise.
71112         (irix6*): Likewise.
71113         (solaris[2-9]*): Likewise.
71114         (none): Likewise.
71115         * configure: Regenerated.
71116
71117 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71118
71119         [BZ #11521]
71120         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
71121         overflow or cancellation in calculating denominator.
71122         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
71123         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
71124         down expression to avoid unexpected rounding in newer GCCs.
71125         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
71126
71127 2012-04-26  David S. Miller  <davem@davemloft.net>
71128
71129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
71130         long-double compat symbols.
71131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
71132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
71133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
71134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
71135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
71136         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
71137         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
71138         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
71139         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
71140         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
71141         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
71142         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
71143         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
71144
71145 2012-04-25  David S. Miller  <davem@davemloft.net>
71146
71147         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
71148         HWCAP_* values only after the memory barriers have been defined.
71149         (atomic_full_barrier): Define.
71150         (atomic_read_barrier): Define.
71151         (atomic_write_barrier): Define.
71152
71153 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
71154
71155         * shlib-versions: Add libgcc_s version information.
71156         * sysdeps/generic/libgcc_s.h: Remove.
71157         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
71158         libgcc_s.h.
71159         * sysdeps/gnu/unwind-resume.c: Likewise.
71160         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
71161
71162 2012-04-25  David S. Miller  <davem@davemloft.net>
71163
71164         * sysdeps/unix/sparc/brk.S: Delete.
71165         * sysdeps/unix/sparc/dl-brk.S: Delete.
71166         * sysdeps/unix/sparc/pipe.S: Delete.
71167         * sysdeps/unix/sparc/sysdep.S: Delete.
71168         * sysdeps/unix/sparc/sysdep.h: Delete.
71169         * sysdeps/unix/sparc/vfork.S: Delete.
71170         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
71171         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
71172         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
71173         (ret_ERRVAL, r0, r1, MOVE): Define.
71174         (JUMPTARGET): Remove.
71175         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
71176         sysdeps/unix/sparc/sysdep.h
71177         (ENTRY, END): Remove.
71178         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
71179
71180 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
71181
71182         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
71183         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
71184         -DIS_IN_build.
71185
71186         * timezone/README: Update upstream location and email address for
71187         tzcode and tzdata.
71188         * timezone/zdump.c: Update from tzcode 2012b.
71189         * timezone/zic.c: Likewise.
71190
71191         * configure.in (libc_cv_as_needed): Remove test.
71192         * configure: Regenerated.
71193         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
71194         conditional definition.
71195         [$(have-as-needed) != yes] (no-as-needed): Likewise.
71196         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
71197         * config.make.in (have-as-needed): Remove variable.
71198
71199 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71200             Paul Pluzhnikov  <ppluzhnikov@google.com>
71201
71202         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
71203         strings correctly.
71204
71205 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
71206
71207         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
71208         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
71209         * sysdeps/sh/strlen.S: Likewise.
71210
71211 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71212
71213         * sysdeps/unix/fork.S: Remove file.
71214         * sysdeps/unix/i386/fork.S: Likewise.
71215         * sysdeps/unix/sparc/fork.S: Likewise.
71216
71217         * sysdeps/unix/system.c: Remove file.
71218         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
71219
71220         * sysdeps/unix/getegid.S: Remove file.
71221         * sysdeps/unix/geteuid.S: Likewise.
71222
71223 2012-04-24  Roland McGrath  <roland@hack.frob.com>
71224
71225         * scripts/check-localplt.awk: New file.
71226         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
71227         of diff.
71228         * scripts/data/localplt-generic.data: Add a comment.
71229
71230         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
71231         NODE when __dir_mkfile failed.
71232         * sysdeps/mach/hurd/symlinkat.c: Likewise.
71233         Reported by Ludovic Courtès <ludo@gnu.org>.
71234
71235 2012-04-24  Andreas Jaeger  <aj@suse.de>
71236
71237         * Makerules (common-clean): Also remove gen-as-const-headers
71238         files.
71239
71240 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71241
71242         * Makerules (native-compile): Do not change working directory for
71243         build.  Use $(OUTPUT_OPTION) in command.
71244         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
71245
71246 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71247
71248         [BZ #13886]
71249         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
71250         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
71251         * math/libm-test.inc (floor_test): Add more tests.
71252         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
71253
71254 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71255
71256         * sysdeps/unix/getdents.c: Remove file.
71257         * sysdeps/unix/sysv/getdents.c: Likewise.
71258         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
71259
71260         * sysdeps/unix/syscalls.list (madvise): Add syscall from
71261         sysdeps/unix/mman/syscalls.list.
71262         (mmap): Likewise.
71263         (mprotect): Likewise.
71264         (msync): Likewise.
71265         (munmap): Likewise.
71266         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
71267         * sysdeps/unix/mman/syscalls.list: Remove.
71268         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
71269
71270         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
71271         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
71272         * configure: Regenerated.
71273         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
71274         $(libgcc_s_suffix).
71275         * config.make.in (libgcc_s_suffix): Remove variable.
71276
71277 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
71278
71279         * sysdeps/unix/sysv/gethostname.c: Move to ...
71280         * sysdeps/posix/gethostname.c: ... here.
71281
71282         * sysdeps/unix/execve.S: Remove file.
71283
71284         * sysdeps/unix/_exit.S: Remove file.
71285
71286 2012-04-23  Andreas Jaeger  <aj@suse.de>
71287
71288         [BZ #13739]
71289         * manual/Makefile: Remove make dist support, there's no
71290         need for a stand-alone documentation tar ball.
71291         (TEXI2DVI): Define always, it's not in Makeconfig.
71292         (dist): Removed.
71293         (tar-it): Removed.
71294         (edition): Removed.
71295         (glibc-doc-$(edition).tar): Removed
71296         (%.Z): Removed.
71297         (%.gz): Removed.
71298         (%.uu): Removed.
71299         (ETAGS): Remove, it's in Makeconfig.
71300         (move-if-change): Remove, it's in Makeconfig.
71301
71302 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
71303
71304         [BZ #13970]
71305         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
71306         (strtod, strtof, strtold, strtol, strtoul, strtoq)
71307         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
71308         (strtod_l, strtof_l, strtold_l): Remove __wur.
71309         It is not necessarily an error to ignore strtol's return value.
71310         One can reliably look at the stored endptr to decide whether
71311         the number had valid syntax.
71312
71313 2012-04-21  Andreas Jaeger  <aj@suse.de>
71314
71315         [BZ #13739]
71316         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
71317
71318 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
71319
71320         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
71321         * sysdeps/unix/sysv/Versions: Remove file.
71322
71323 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
71324
71325         [BZ #13927]
71326         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71327
71328 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
71329
71330         [BZ #7064]
71331         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
71332         version from __vm86.
71333
71334 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
71335
71336         * sysdeps/unix/common/lxstat.c: Remove file.
71337         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
71338
71339         * sysdeps/unix/sysv/Makefile: Remove file.
71340
71341         * sysdeps/unix/sysv/direct.h: Remove file.
71342
71343         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
71344         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
71345         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
71346         * sysdeps/unix/sysv/bits/signum.h: Likewise.
71347         * sysdeps/unix/sysv/bits/stat.h: Likewise.
71348         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
71349         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
71350
71351         * sysdeps/unix/sysv/setrlimit.c: Remove file.
71352
71353         * sysdeps/unix/xmknod.c: Remove file.
71354         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
71355
71356         * sysdeps/unix/sysv/settimeofday.c: Remove file.
71357
71358         * sysdeps/unix/sysv/i386/time.S: Remove file.
71359
71360         * sysdeps/unix/fxstat.c: Remove file.
71361         * sysdeps/unix/xstat.c: Likewise.
71362         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
71363
71364         * sysdeps/unix/sysv/sigaction.c: Remove file.
71365
71366         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
71367         (sysdep_headers): Remove variable.
71368         [termio.h not in sysdep_headers] (generated): Likewise.
71369         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
71370         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
71371         * sysdeps/unix/sysv/tcdrain.c: Likewise.
71372         * sysdeps/unix/sysv/tcflow.c: Likewise.
71373         * sysdeps/unix/sysv/tcflush.c: Likewise.
71374         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
71375         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
71376         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
71377         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
71378         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
71379
71380         * sysdeps/unix/siglist.c: Remove file.
71381
71382         * sysdeps/unix/getppid.S: Remove file.
71383
71384         * sysdeps/unix/mkdir.c: Remove file.
71385         * sysdeps/unix/rmdir.c: Likewise.
71386
71387 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
71388
71389         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
71390         ERR_MAX value.
71391         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
71392         errlist-compat value.
71393
71394 2012-04-18  David S. Miller  <davem@davemloft.net>
71395
71396         * sysdeps/generic/memcopy.h (reg_char): Delete.
71397         * debug/strcat_chk.c: Use char, not reg_char.
71398         * debug/strcpy_chk.c: Likewise.
71399         * debug/strncat_chk.c: Likewise.
71400         * debug/strncpy_chk.c: Likewise.
71401         * string/memchr.c: Likewise.
71402         * string/memrchr.c: Likewise.
71403         * string/rawmemchr.c: Likewise.
71404         * string/strcat.c: Likewise.
71405         * string/strchr.c: Likewise.
71406         * string/strchrnul.c: Likewise.
71407         * string/strcmp.c: Likewise.
71408         * string/strcpy.c: Likewise.
71409         * string/strncat.c: Likewise.
71410         * string/strncmp.c: Likewise.
71411         * string/strncpy.c: Likewise.
71412
71413 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71414
71415         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
71416         __builtin_memcopy is called when src and dest ranges are known to not
71417         overlap.
71418
71419 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71420
71421         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
71422         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
71423         fwd_align_merge macro call.
71424         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
71425         bwd_align_merge macro call.
71426         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71427
71428 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71429
71430         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
71431         bwd_align_merge macros.
71432         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
71433         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
71434         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71435
71436 2012-04-18  David S. Miller  <davem@davemloft.net>
71437
71438         * sysdeps/sparc/sparc64/memcopy.h: Delete.
71439
71440 2012-04-18  Andreas Jaeger  <aj@suse.de>
71441
71442         [BZ# 6794]
71443         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
71444         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
71445         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71446
71447         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
71448         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
71449         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71450
71451         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
71452         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
71453         Adjust for changed ldbl-128 files.
71454
71455         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
71456         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
71457         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71458
71459 2012-04-17  David S. Miller  <davem@davemloft.net>
71460
71461         * sysdeps/sparc/sparc32/memcopy.h: Delete.
71462
71463 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
71464
71465         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
71466         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
71467         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
71468         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
71469         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
71470         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
71471
71472 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71473
71474         [BZ #6794]
71475         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
71476         * math/libm-test.inc: Add ilogb errno and exception tests.
71477         * math/w_ilogb.c: New file: ilogb wrapper.
71478         * math/w_ilogbf.c: New file: ilogbf wrapper.
71479         * math/w_ilogbl.c: New file: ilogbl wrapper.
71480         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
71481         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
71482         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
71483         exception being thrown with 0.0 as argument.
71484         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
71485         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
71486         exception being thrown with 0.0 as argument.
71487         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
71488         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71489         exception being thrown with 0.0 as argument.
71490         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
71491         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71492         exception being thrown with 0.0 as argument.
71493         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
71494         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
71495         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
71496         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
71497         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
71498         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
71499         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
71500         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
71501         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
71502
71503 2012-04-17  Petr Baudis  <pasky@ucw.cz>
71504
71505         * include/sys/uio.h: Change __vector to __iovec to avoid clash
71506         with altivec.
71507
71508 2012-04-16  Marek Polacek  <polacek@redhat.com>
71509
71510         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
71511
71512 2012-04-16  Marek Polacek  <polacek@redhat.com>
71513
71514         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
71515         operands of fdivp instruction.
71516
71517 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71518
71519         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
71520         * elf/tst-auditmod3b.c: Likewise.
71521         * elf/tst-auditmod4b.c: Likewise.
71522         * elf/tst-auditmod5b.c: Likewise.
71523         * elf/tst-auditmod6b.c: Likewise.
71524         * elf/tst-auditmod6c.c: Likewise.
71525         * elf/tst-auditmod7b.c: Likewise.
71526         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
71527         * sysdeps/x86_64/preconfigure.in: Likewise.
71528         * sysdeps/x86_64/preconfigure: Regenerated.
71529
71530 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71531
71532         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
71533         __ILP32__.
71534
71535 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
71536
71537         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
71538         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
71539
71540 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
71541
71542         [BZ #13973]
71543         * locale/iso-639.def: Fix gl language name. Spotted by
71544         Yaron Shahrabani.
71545
71546 2012-04-12  Roland McGrath  <roland@hack.frob.com>
71547
71548         [BZ #2074]
71549         * libio/libio.h (__io_write_fn): Update comment.
71550
71551 2012-04-12  Petr Baudis  <pasky@ucw.cz>
71552
71553         [BZ #2074]
71554         * stdio.texi (Hook Functions): The user provided writer function
71555         is not allowed to return -1.
71556
71557 2012-04-11  David S. Miller  <davem@davemloft.net>
71558
71559         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71560
71561 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
71562
71563         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
71564         Add a leading slash to rtkaio.
71565
71566 2012-04-11  Jim Meyering  <meyering@redhat.com>
71567
71568         [BZ #11959]
71569         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
71570         It is not necessarily an error to ignore fwrite's return
71571         value.  One can reliably use ferror to test for errors after
71572         the fact.
71573
71574 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71575
71576         * bits/types.h (__snseconds_t): New type.
71577         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
71578
71579         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
71580         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
71581         (__SNSECONDS_T_TYPE): Likewise.
71582         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
71583         (__SNSECONDS_T_TYPE): Likewise.
71584         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71585         (__SNSECONDS_T_TYPE): Likewise.
71586
71587 2012-04-10  Andreas Jaeger  <aj@suse.de>
71588
71589         [BZ #2636]
71590         * manual/time.texi (Processor Time): Return type of times is
71591         elapsed real time since an arbitrary point in the past.
71592         (CPU Time): Move CLK_TCK from here...
71593         (Processor Time): ...to here.  Correct description.
71594         * manual/conf.texi (Constants for Sysconf): Correct description of
71595         _SC_CLK_TCK.
71596
71597 2012-04-10  David S. Miller  <davem@davemloft.net>
71598
71599         [BZ #13967]
71600         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
71601         where the is a gap between DT_REL(A) and DT_JMPREL.
71602
71603 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71604
71605         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
71606         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
71607         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
71608
71609 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
71610
71611         * elf/dl-support.c (_dl_inhibit_cache): New variable.
71612         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
71613         (dl_main): Handle --inhibit-cache.
71614         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
71615         _dl_inhibit_cache.
71616         * elf/dl-load.c (_dl_map_object): Use it.
71617         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
71618
71619 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
71620
71621         [BZ #13872]
71622         * sysdeps/i386/fpu/e_powl.S (p78): New object.
71623         (__ieee754_powl): Saturate large exponents rather than testing for
71624         overflow of y*log2(x).
71625         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71626         * math/libm-test.inc (pow_test): Do not permit spurious overflow
71627         exceptions.
71628
71629         [BZ #11521]
71630         * math/s_ctan.c: Include <float.h>.
71631         (__ctan): Avoid internal overflow or cancellation in calculating
71632         denominator.
71633         * math/s_ctanf.c: Likewise.
71634         * math/s_ctanl.c: Likewise.
71635         * math/s_ctanh.c: Likewise.
71636         * math/s_ctanhf.c: Likewise.
71637         * math/s_ctanhl.c: Likewise.
71638         * math/libm-test.inc (ctan_test): Add more tests.
71639         (ctanh_test): Likewise.
71640         * sysdeps/i386/fpu/libm-test-ulps: Update.
71641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71642
71643 2012-04-09  Andreas Jaeger  <aj@suse.de>
71644
71645         [BZ #6894]
71646         * manual/filesys.texi (Directory Entries): Mention that d_namlen
71647         is an optional BSD extension.
71648
71649         [BZ #10254]
71650         * manual/stdio.texi (Opening Streams): Document additional fopen
71651         parameters.
71652
71653 2012-04-09  Roland McGrath  <roland@hack.frob.com>
71654
71655         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
71656         %eax without telling the compiler.
71657
71658 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
71659
71660         [BZ # 13963]
71661         * manual/install.texi: Use sourceware.org.
71662
71663 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
71664
71665         [BZ #13873]
71666         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
71667         (__ieee754_pow): Generate overflow and underflow using huge*huge
71668         and tiny*tiny rather than just returning constant infinity or zero
71669         for large exponents.
71670         * math/libm-test.inc (pow_test): Require overflow exceptions for
71671         applicable cases of large exponents.
71672
71673         [BZ #706]
71674         * sysdeps/i386/fpu/e_pow.S (p10): New object.
71675         (__ieee754_pow): Use iterative multiplication algorithm only for
71676         integer exponents with absolute value below 1024.  Check for odd
71677         integer exponents when using algorithm for real exponents.
71678         * math/libm-test.inc (pow_test): Add more tests.
71679         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71680
71681 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
71682
71683         [BZ #13705]
71684         * math/libm-test.inc (exp_test): Do not allow overflow exception
71685         on underflow test.
71686
71687 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
71688
71689         [BZ #13705]
71690         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
71691         instead of __kernel_standard_f.
71692
71693 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
71694
71695         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
71696         * sysdeps/x86_64/memset_chk.S: Likewise.
71697
71698 2012-04-08  Andreas Jaeger  <aj@suse.de>
71699
71700         [BZ #10153]
71701         * manual/startup.texi (Environment Access): Describe return value
71702         for putenv and setenv.
71703
71704         [BZ #6895]
71705         * manual/filesys.texi (Directory Entries): Add description for
71706         DT_LNK.
71707
71708         [BZ #6890]
71709         * manual/filesys.texi (Directory Entries): Clarify that it's file
71710         system not operating system in the description of DT_UNKNOWN.
71711
71712         [BZ #6578]
71713         * manual/syslog.texi (closelog): Fix reference, it's openlog.
71714
71715 2012-04-08  Stephen Compall  <s11@member.fsf.org>
71716
71717         [BZ #6649]
71718         * manual/llio.texi (Opening and Closing Files): Add cross
71719         reference to explain mode argument.
71720
71721 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
71722
71723         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
71724         * sysdeps/x86_64/memset_chk.S: Likewise.
71725
71726 2012-04-07  David S. Miller  <davem@davemloft.net>
71727
71728         * elf/elf.h (R_SPARC_WDISP10): Define.
71729         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
71730         R_SPARC_SIZE32.
71731         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
71732         R_SPARC_SIZE64 and R_SPARC_H34.
71733
71734 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
71735
71736         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
71737         conditions and remove no longer applicable assertion.
71738
71739 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
71740
71741         * bits/byteswap.h: Include <features.h>.
71742         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
71743         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
71744
71745 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
71746
71747         * bits/byteswap.h (__bswap_16): Removed.
71748         Include <bits/byteswap-16.h> to get __bswap_16.
71749         * sysdeps/i386/bits/byteswap.h: Likewise.
71750         * sysdeps/s390/bits/byteswap.h: Likewise.
71751         * sysdeps/x86_64/bits/byteswap.h: Likewise.
71752         * bits/byteswap-16.h: New file.
71753         * sysdeps/i386/bits/byteswap-16.h: Likewise.
71754         * sysdeps/s390/bits/byteswap-16.h: Likewise.
71755         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
71756         * string/Makefile (headers): Add bits/byteswap-16.h.
71757
71758 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
71759
71760         [BZ #13895]
71761         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
71762         extra indirection.
71763         * nss/Makefile (tests-static, tests): Add tst-nss-static.
71764         * nss/tst-nss-static.c: New.
71765
71766 2012-04-06  Robert Millan  <rmh@gnu.org>
71767
71768         [BZ #6486]
71769         * manual/llio.texi (File Position Primitive): lseek
71770         refers to WHENCE when it really means OFFSET.
71771
71772 2012-04-06  Andreas Jaeger  <aj@suse.de>
71773
71774         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
71775         strncmp declarations.
71776
71777         * abilist/libc.abilist: Add __poll and __ppoll.
71778
71779 2012-04-05  David S. Miller  <davem@davemloft.net>
71780
71781         * scripts/check-local-headers.sh: Accept a host triplet in the
71782         path matched by the exclude regexp.
71783
71784         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
71785         definition.
71786         * sysdeps/powerpc/powerpc32/dl-machine.h
71787         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
71788         * sysdeps/s390/s390-32/dl-machine.h
71789         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
71790         * sysdeps/sparc/sparc32/dl-machine.h
71791         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
71792         * sysdeps/sparc/sparc64/dl-machine.h
71793         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
71794
71795         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
71796         lazy binding.
71797         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
71798         undefined symbol errors.
71799
71800         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
71801         DT_NEEDED entries.
71802
71803 2012-04-05  Michael Matz  <matz@suse.de>
71804
71805         [BZ #13592]
71806         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
71807
71808 2012-04-05  Andreas Jaeger  <aj@suse.de>
71809
71810         [BZ #13908]
71811         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
71812         comment.
71813
71814 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
71815
71816         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
71817         which ROUND is no valid rounding mode.
71818
71819 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
71820
71821         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
71822         read again.
71823         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
71824
71825 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
71826
71827         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
71828         an exception using FPU order intentionally.
71829
71830 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
71831
71832         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
71833         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
71834         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
71835         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
71836
71837 2012-04-05  Simon Josefsson  <simon@josefsson.org>
71838
71839         [BZ #12340]
71840         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
71841         EINVAL when BUFLEN is too smal.
71842
71843 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
71844
71845         [BZ #13553]
71846         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
71847         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
71848
71849 2012-04-03  Andreas Jaeger  <aj@suse.de>
71850
71851         [BZ #13938]
71852         * manual/setjmp.texi (System V contexts): Fix sentence.
71853
71854         [BZ #13926]
71855         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
71856         New macro for this case.
71857         [!__GNUC__] (__bswap_64): New inline function for this case.
71858         * sysdeps/x86_64/bits/byteswap.h: Likewise.
71859         * bits/byteswap.h: Likewise.
71860         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
71861         ull, guard with __GLIBC_HAVE_LONG_LONG.
71862
71863         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
71864         __GLIBC_HAVE_LONG_LONG.
71865
71866         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
71867         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
71868
71869 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
71870
71871         [BZ #13691]
71872         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
71873         inptr and inend, rather than using last_ch.
71874
71875 2012-04-02  David S. Miller  <davem@davemloft.net>
71876
71877         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
71878         * stdio-common/printf-parse.h (read_int): Change return type to
71879         'int', return -1 on INT_MAX overflow.
71880         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
71881         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
71882         overflows INT_MAX.  Check for overflow of in-format-string precision
71883         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
71884         SIZE_MAX not INT_MAX for integer overflow test.
71885         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
71886         skip the construct in the format string but do not record anything.
71887         * stdio-common/bug22.c: Adjust to test both width/prevision
71888         INT_MAX overflow as well as total length INT_MAX overflow.  Check
71889         explicitly for proper errno values.
71890
71891 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
71892
71893         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
71894         CHAR_MAX.
71895         * string/test-strcmp.c [! WIDE]: Likewise.
71896         * time/tst-mktime2.c: Likewise for INT_MAX.
71897         * string/test-string.h: #include <sys/param.h> for MIN.
71898
71899         * csu/init-first.c (__libc_init_first): Call __ctype_init.
71900         * sysdeps/i386/init-first.c (init): Likewise.
71901         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
71902         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
71903         * sysdeps/sh/init-first.c (init): Likewise.
71904
71905 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
71906
71907         * po/ru.po: Update from translation team.
71908         * po/vi.po: Likewise.
71909
71910 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
71911
71912         * resolv/nss_dns/dns-host.c: Merge copyright years.
71913
71914 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71915
71916         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71917         Optimize memcpy with prefetch if
71918         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
71919         src, dst pointers have unequal 16 byte alignments.
71920
71921 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
71922
71923         [BZ #13928]
71924         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
71925         from a CNAME entry and return the minimum ttl for the query.
71926         (gaih_getanswer_slice): Likewise.
71927
71928 2012-03-30  Jeff Law  <law@redhat.com>
71929
71930         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
71931         due to long keys.
71932         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
71933         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
71934
71935         * resolv/nss_dns/dns-host.c: Update copyright year.
71936
71937 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
71938
71939         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
71940         requests to save a system call.  Fix check that all bytes are sent.
71941
71942         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
71943         comments for sendmmsg.
71944
71945 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
71946
71947         [BZ #13691]
71948         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
71949         with only 1 character between 0x0041 and 0x01b0.
71950         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
71951         * wcsmbs/tst-mbsnrtowcs.c: New file.
71952
71953 2012-03-29  David S. Miller  <davem@davemloft.net>
71954
71955         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
71956         small copies by hand.
71957
71958 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71959
71960         [BZ #13761]
71961         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
71962         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
71963         group memberships.
71964
71965 2012-03-28  David S. Miller  <davem@davemloft.net>
71966
71967         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
71968         that branches into memcpy.
71969         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
71970         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
71971         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
71972         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
71973         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
71974         bits.
71975         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
71976         implementation too.
71977         * sysdeps/sparc/mempcpy.S: New file.
71978
71979         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
71980         the IFUNC routine in the libc case.
71981         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
71982
71983         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
71984         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
71985         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
71986         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
71987         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
71988         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
71989         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
71990         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
71991
71992         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
71993         loop to 256 bytes instead of 64 bytes and fix test signedness.
71994
71995         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
71996         * sysdeps/sparc/sparc32/Makefile: rather than here...
71997         * sysdeps/sparc/sparc64/Makefile: and here.
71998
71999 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
72000
72001         * malloc/mallocbug.c: Avoid warnings about unused variables.
72002
72003 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
72004
72005         [BZ #13760]
72006         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
72007         in the right place. Discard and retry query if response is
72008         larger than input buffer size.
72009
72010 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
72011
72012         [BZ #369]
72013         [BZ #2678]
72014         [BZ #3866]
72015         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
72016         x for large integer exponent.
72017         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
72018         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
72019         sign of result as needed afterwards.
72020         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
72021         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
72022         result for underflowing pow the same as for overflow.
72023         (__kernel_standard_l): Handle powl overflow and underflow here
72024         rather than calling __kernel_standard.
72025         * math/libm-test.inc (pow_test): Add more tests.
72026
72027         [BZ #3868]
72028         [BZ #13879]
72029         [BZ #13910]
72030         [BZ #13911]
72031         [BZ #13912]
72032         [BZ #13913]
72033         [BZ #13915]
72034         [BZ #13916]
72035         [BZ #13917]
72036         [BZ #13918]
72037         [BZ #13919]
72038         [BZ #13920]
72039         [BZ #13921]
72040         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
72041         * sysdeps/ieee754/k_standard.c: Include <float.h>.
72042         (__kernel_standard_l): New function.
72043         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
72044         __kernel_standard.
72045         * math/w_acosl.c (__acosl): Likewise.
72046         * math/w_asinl.c (__asinl): Likewise.
72047         * math/w_atan2l.c (__atan2l): Likewise.
72048         * math/w_atanhl.c (__atanhl): Likewise.
72049         * math/w_coshl.c (__coshl): Likewise.
72050         * math/w_exp10l.c (__exp10l): Likewise.
72051         * math/w_exp2l.c (__exp2l): Likewise.
72052         * math/w_fmodl.c (__fmodl): Likewise.
72053         * math/w_hypotl.c (__hypotl): Likewise.
72054         * math/w_j0l.c (__j0l, __y0l): Likewise.
72055         * math/w_j1l.c (__j1l, __y1l): Likewise.
72056         * math/w_jnl.c (__jnl, __ynl): Likewise.
72057         * math/w_lgammal.c (__lgammal): Likewise.
72058         * math/w_log10l.c (__log10l): Likewise.
72059         * math/w_log2l.c (__log2l): Likewise.
72060         * math/w_logl.c (__logl): Likewise.
72061         * math/w_powl.c (__powl): Likewise.
72062         * math/w_remainderl.c (__remainderl): Likewise.
72063         * math/w_scalbl.c (sysv_scalbl): Likewise.
72064         * math/w_sinhl.c (__sinhl): Likewise.
72065         * math/w_sqrtl.c (__sqrtl): Likewise.
72066         * math/w_tgammal.c (__tgammal): Likewise.
72067         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
72068         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
72069         * math/libm-test.inc (acos_test): Add more tests.
72070         (acosh_test): Likewise.
72071         (asin_test): Likewise.
72072         (atanh_test): Likewise.
72073         (exp_test): Likewise.
72074         (exp10_test): Likewise.
72075         (exp2_test): Likewise.
72076         (expm1_test): Likewise.
72077         (lgamma_test): Likewise.
72078         (log_test): Likewise.
72079         (log10_test): Likewise.
72080         (log1p_test): Likewise.
72081         (log2_test): Likewise.
72082         (pow_test): Do not allow some spurious overflow exceptions.
72083         (sqrt_test): Add more tests.
72084         (tgamma_test): Likewise.
72085         (y0_test): Likewise.
72086         (y1_test): Likewise.
72087         (yn_test): Likewise.
72088
72089 2012-03-27  Anton Blanchard  <anton@samba.org>
72090
72091         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
72092         MAP_HUGETLB.
72093         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
72094         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
72095         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
72096
72097 2012-03-27  David S. Miller  <davem@davemloft.net>
72098
72099         * conform/Makefile: Run run-conformtest.sh using $(BASH).
72100
72101         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
72102         have-as-vis3 check.
72103
72104 2012-03-27  Andreas Jaeger  <aj@suse.de>
72105
72106         * sysdeps/x86_64/elf/configure.in: Moved to ...
72107         * sysdeps/x86_64/configure.in: ... here.
72108         * sysdeps/x86_64/elf/start.S: Moved to ...
72109         * sysdeps/x86_64/start.S: ... here.
72110         * sysdeps/x86_64/elf/configure: Delete.
72111
72112         * sysdeps/x86_64/configure.in: Merge contents from
72113         sysdeps/i386/configure.in (without i686 check).
72114
72115         * sysdeps/i386/elf/Versions: Merge into ...
72116         * sysdeps/i386/Versions: ... this.
72117         * sysdeps/i386/elf/Versions: Delete file.
72118         * sysdeps/i386/elf/start.S: Moved to ...
72119         * sysdeps/i386/start.S: ...here.
72120         * sysdeps/i386/elf/configure.in: Merge into...
72121         * sysdeps/i386/configure.in: ...here.
72122         * sysdeps/i386/elf/configure.in: Delete file.
72123         * sysdeps/i386/elf/configure: Delete file.
72124
72125         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
72126         * debug/backtracesyms.c: ... here.
72127         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
72128         * debug/backtracesymsfd.c: ... here.
72129         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
72130         * sysdeps/generic/ifunc-sel.h: ... here.
72131
72132         * sysdeps/unix/i386/start.c: Delete file.
72133         * sysdeps/unix/sparc/start.c: Delete file.
72134         * sysdeps/unix/start.c: Delete file.
72135
72136         * sysdeps/sh/elf/configure.in: Moved to ...
72137         * sysdeps/sh/configure.in: ... here.
72138         * sysdeps/sh/elf/start.S: Moved to ...
72139         * sysdeps/sh/start.S: ... here.
72140         * sysdeps/sh/elf/configure: Delete file.
72141
72142         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
72143         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
72144         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
72145         * sysdeps/powerpc/powerpc64/entry.h: ... here.
72146         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
72147         * sysdeps/powerpc/powerpc64/start.S: here.
72148         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
72149         * sysdeps/powerpc/powerpc64/Makefile: ... this.
72150         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
72151         * sysdeps/powerpc/powerpc64/configure.in: ... this.
72152         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
72153
72154         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
72155         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
72156         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
72157         * sysdeps/powerpc/powerpc32/start.S: ... here.
72158         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
72159         * sysdeps/powerpc/powerpc32/configure.in: ... this.
72160         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
72161
72162         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
72163         * sysdeps/powerpc/ifunc-sel.h: ... here.
72164         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
72165         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
72166
72167         * sysdeps/sparc/elf/configure.in: Moved to ...
72168         * sysdeps/sparc/configure.in: ... here.
72169         * sysdeps/sparc/elf/configure: Delete file.
72170         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
72171         * sysdeps/sparc/sparc32/start.S: ... here.
72172         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
72173         * sysdeps/sparc/sparc64/start.S: ... here.
72174         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
72175         * sysdeps/sparc/sparc32/Makefile: ... this.
72176         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
72177         * sysdeps/sparc/sparc64/Makefile: ... this.
72178
72179         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
72180         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
72181         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
72182         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
72183         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
72184         * sysdeps/s390/s390-32/setjmp.S: ... here.
72185         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
72186         * sysdeps/s390/s390-32/configure.in: ... here.
72187         * sysdeps/s390/s390-32/elf/configure: Delete file.
72188         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
72189         * sysdeps/s390/s390-32/start.S: ... here.
72190
72191         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
72192         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
72193         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
72194         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
72195         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
72196         * sysdeps/s390/s390-64/setjmp.S: ... here.
72197         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
72198         * sysdeps/s390/s390-64/configure.in: ... here
72199         * sysdeps/s390/s390-64/elf/configure: Delete file.
72200         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
72201         * sysdeps/s390/s390-64/start.S: ... here.
72202         * sysdeps/s390/s390-64/elf/configure: Delete.
72203
72204         * configure.in: Remove support for elf directories in sysdeps.
72205
72206         * configure: Regenerated.
72207         * sysdeps/i386/configure: Regenerated.
72208         * sysdeps/powerpc/powerpc32/configure: Regenerated.
72209         * sysdeps/powerpc/powerpc64/configure: Regenerated.
72210         * sysdeps/s390/s390-32/configure: Regenerated.
72211         * sysdeps/s390/s390-64/configure: Regenerated.
72212         * sysdeps/sh/configure: Regenerated.
72213         * sysdeps/sparc/configure: Regenerated.
72214         * sysdeps/x86_64/configure: Regenerated.
72215
72216 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
72217
72218         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72219
72220         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
72221         denormal result into account.
72222
72223 2012-03-25  Roland McGrath  <roland@hack.frob.com>
72224
72225         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
72226         Reported by Allan McRae <allan@archlinux.org>.
72227
72228 2012-03-23  Jeff Law  <law@redhat.com>
72229
72230         * nss/getnssent.c (__nss_getent): Fix typo.
72231
72232 2012-03-23  David S. Miller  <davem@davemloft.net>
72233
72234         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72235
72236 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
72237
72238         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
72239         to pad to uint64_t for each field.
72240         (dl_tls_index): Replace unsigned long with uint64_t.
72241
72242 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
72243         Paul Pluzhnikov  <ppluzhnikov@google.com>
72244
72245         [BZ #6528]
72246         * grp/Makefile (otherlibs): Don't set it.
72247         * inet/Makefile (otherlibs): Likewise.
72248         * login/Makefile (otherlibs): Likewise.
72249         * nscd/Makefile (otherlibs): Likewise.
72250         * posix/Makefile (otherlibs): Likewise.
72251         * pwd/Makefile (otherlibs): Likewise.
72252         * rt/Makefile (otherlibs): Likewise.
72253         * sunrpc/Makefile (otherlibs): Likewise.
72254         * nss/Makefile (otherlibs): Likewise.
72255         Add libnss_files to routines and static-only-routines.
72256         ($(objpfx)getent): Remove rule.
72257         * resolv/Makefile: Add libnss_dns and libresolv to routines and
72258         static-only-routines.
72259
72260 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72261
72262         [BZ #13892]
72263         * math/s_cexp.c: Include <float.h>.
72264         (__cexp): Handle exp result overflowing not necessarily
72265         overflowing both real and imaginary parts of result.
72266         * math/s_cexpf.c: Likewise.
72267         * math/s_cexpl.c: Likewise.
72268         * math/libm-test.inc (cexp_test): Add more tests.
72269         * sysdeps/i386/fpu/libm-test-ulps: Update.
72270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72271
72272 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72273
72274         * include/link.h (ELFW): New macro.
72275         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
72276         Replace ELF64_R_TYPE with ELFW(R_TYPE).
72277
72278 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72279
72280         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
72281         with uint64_t.
72282
72283 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72284
72285         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
72286         declaration.
72287         (struct La_x32_retval): Likewise.
72288
72289 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72290
72291         * sysdeps/x86_64/preconfigure.in: New file.
72292         * sysdeps/x86_64/preconfigure: New generated file.
72293
72294 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72295
72296         [BZ #13824]
72297         * math/e_exp2l.c: Include <float.h>.
72298         (__ieee754_exp2l): Handle overflow and underflow cases
72299         separately.  Only pass fractional part of argument to
72300         __ieee754_expl.
72301         * math/libm-test.inc (exp2_test): Add more tests.
72302
72303         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
72304         negating x to take absolute value.
72305         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
72306         Likewise.
72307         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
72308         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
72309         Likewise.
72310         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
72311         computing low part if x was negated.
72312         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
72313
72314 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72315
72316         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
72317         la_x32_gnu_pltexit.
72318         (pltexit): Cast int_retval to ptrdiff_t.
72319         * elf/tst-auditmod3b.c: Likewise.
72320         * elf/tst-auditmod4b.c: Likewise.
72321         * elf/tst-auditmod5b.c: Likewise.
72322         * elf/tst-auditmod6b.c: Likewise.
72323         * elf/tst-auditmod6c.c: Likewise.
72324         * elf/tst-auditmod7b.c: Likewise.
72325
72326         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
72327         and x32_gnu_pltexit.
72328
72329         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
72330         __ELF_NATIVE_CLASS.
72331         (La_x32_regs): New macro.
72332         (La_x32_retval): Likewise.
72333         (la_x32_gnu_pltenter): New function prototype.
72334         (la_x32_gnu_pltexit): Likewise.
72335
72336 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
72337
72338         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
72339         exponent.
72340
72341         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72342
72343         * configure.in (libc_cv_cc_nofma): Check for option to disable
72344         generation of FMA instructions.
72345         * configure: Regenerate.
72346         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
72347         * sysdeps/ieee754/dbl-64/Makefile: New file.
72348         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
72349         Remove brandred-fma4.
72350         (CFLAGS-brandred-fma4.c): Remove.
72351         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
72352         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
72353         define.
72354         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
72355         define.
72356
72357 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72358
72359         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
72360         LLONG_MAX != LONG_MAX.
72361         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72362         (_fitoa_word): Likewise.
72363         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
72364         LLONG_MAX != LONG_MAX.
72365         * stdio-common/_itowa.h: Include <_itoa.h>.
72366         (_itowa_word): Use _ITOA_WORD_TYPE on value.
72367         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
72368         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
72369         only if not defined.
72370         (_ITOA_WORD_TYPE): Likewise.
72371         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72372         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
72373
72374 2012-03-21  David S. Miller  <davem@davemloft.net>
72375
72376         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72377
72378 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72379
72380         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
72381         of x86_64 when setting libc_cv_slibdir, libdir and
72382         libc_cv_localedir.
72383         * sysdeps/unix/sysv/linux/configure: Regenerated.
72384
72385 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72386
72387         * manual/lang.texi (Old Varargs): Remove section.
72388         (How Variadic): Update menu.
72389         (va_start): Do not mention varargs.h.
72390
72391 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72392             Joseph Myers  <joseph@codesourcery.com>
72393
72394         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
72395         link test.
72396         * configure: Regenerated.
72397
72398 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72399
72400         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
72401         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
72402         conformtest.pl
72403
72404 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72405
72406         * NOTES: Remove.
72407         * Makefile (files-for-dist): Remove NOTES.
72408         (NOTES): Remove rule.
72409         * README: Don't refer to NOTES.
72410         * manual/creature.texi: Don't include macros.texi.
72411         * manual/intro.texi (creature.texi): Remove comment referring to
72412         NOTES.
72413
72414         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
72415         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
72416         * configure: Regenerated.
72417         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
72418         LIBC_TRY_CC_OPTION.
72419         (libc_cv_as_i686): Likewise.
72420         (libc_cv_cc_avx): Likewise.
72421         (libc_cv_cc_sse2avx): Likewise.
72422         (libc_cv_cc_fma4): Likewise.
72423         (libc_cv_cc_novzeroupper): Likewise.
72424         * sysdeps/i386/configure: Regenerated.
72425
72426         [BZ #13883]
72427         * sysdeps/i386/fpu/s_cexp.S: Remove.
72428         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
72429         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
72430         * math/libm-test.inc (cexp_test): Add more tests.
72431         * sysdeps/i386/fpu/libm-test-ulps: Update.
72432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72433
72434 2012-03-21  Allan McRae  <allan@archlinux.org>
72435
72436         * timezone/Makefile: Do not install iso3166.tab and zone.tab
72437
72438 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72439
72440         [BZ #13871]
72441         * math/w_exp2.c: Do not include <float.h>.
72442         (o_threshold, u_threshold): Remove.
72443         (__exp2): Calculate result before checking finiteness and calling
72444         __kernel_standard.
72445         * math/w_exp2f.c: Likewise.
72446         * math/w_exp2l.c: Likewise.
72447         * math/libm-test.inc (exp2_test): Require overflow exception for
72448         1e6 input.
72449
72450         [BZ #3866]
72451         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
72452         range of signed 64-bit integers before using fistpll.  Remove
72453         checks for whether integers fit in mantissa bits.
72454         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
72455         the range of signed 32-bit integers before using fistpl.  Remove
72456         checks for whether integers fit in mantissa bits.
72457         * sysdeps/i386/fpu/e_powl.S (p64): New object.
72458         (__ieee754_powl): Test for y outside the range of signed 64-bit
72459         integers before using fistpll.  Reduce 64-bit values to 63-bit
72460         ones as needed.
72461         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
72462         divide-by-zero is raised for zero to large negative powers.
72463         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
72464         (__ieee754_powl): Test for y outside the range of signed 64-bit
72465         integers before using fistpll.  Reduce 64-bit values to 63-bit
72466         ones as needed.
72467         * math/libm-test.inc (pow_test): Add more tests.
72468
72469 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72470
72471         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
72472         <stdio-common/_itoa.h>.
72473         * debug/segfault.c: Likewise.
72474         * elf/dl-cache.c: Likewise.
72475         * elf/dl-minimal.c: Likewise.
72476         * elf/dl-misc.c: Likewise.
72477         * elf/dl-sysdep.c: Likewise.
72478         * elf/dl-version.c: Likewise.
72479         * elf/rtld.c: Likewise.
72480         * hurd/hurdsock.c: Likewise.
72481         * hurd/lookup-retry.c: Likewise.
72482         * malloc/malloc.c: Likewise.
72483         * malloc/mtrace.c: Likewise.
72484         * nscd/nscd_getgr_r.c: Likewise.
72485         * nscd/nscd_getpw_r.c: Likewise.
72486         * nscd/nscd_getserv_r.c: Likewise.
72487         * posix/getopt_init.c: Likewise.
72488         * posix/wordexp.c: Likewise.
72489         * stdio-common/_itoa.c: Likewise.
72490         * stdio-common/printf_fphex.c: Likewise.
72491         * stdio-common/vfprintf.c: Likewise.
72492         * string/_strerror.c: Likewise.
72493         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
72494         * sysdeps/i386/i686/hp-timing.h: Likewise.
72495         * sysdeps/mach/_strerror.c: Likewise.
72496         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
72497         * sysdeps/mach/hurd/sethostid.c: Likewise.
72498         * sysdeps/mach/hurd/xmknodat.c: Likewise.
72499         * sysdeps/mach/xpg-strerror.c: Likewise.
72500         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
72501         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
72502         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
72503         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
72504         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
72505         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
72506         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
72507         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
72508         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
72509         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
72510         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
72511         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
72512         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
72513         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
72514         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
72515         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
72516         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
72517         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
72518         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
72519         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
72520         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
72521
72522         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
72523
72524         * stdio-common/_itoa.h: Moved to ...
72525         * sysdeps/generic/_itoa.h: Here.
72526
72527         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
72528
72529         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
72530         instead of "_itoa.h" and "_itowa.h".
72531         * stdio-common/vfprintf.: Likewise.
72532
72533 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72534
72535         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
72536         <bits/wordsize.h>.
72537         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
72538         (__signbit): Likwise.
72539         (llrintf): Likwise.
72540         (llrint): Likwise.
72541
72542 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72543
72544         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
72545         __WORDSIZE != 64.
72546
72547 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
72548
72549         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
72550         OVERFLOW_EXCEPTION_OK.
72551         * math/libm-test.inc ("Philosophy"): Update comment about
72552         exception testing.
72553         (OVERFLOW_EXCEPTION): Define.
72554         (OVERFLOW_EXCEPTION_OK): Likewise.
72555         (INVALID_EXCEPTION_OK): Renumber.
72556         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
72557         (IGNORE_ZERO_INF_SIGN): Likewise.
72558         (test_exceptions): Handle FE_OVERFLOW.
72559         (exp10_test): Expect overflow exceptions.
72560         (exp2_test): Likewise.
72561         (expm1_test): Likewise.
72562         (nextafter_test): Likewise.
72563         (pow_test): Likewise.
72564         (scalbn_test): Likewise.
72565         (scalbln_test): Likewise.
72566
72567 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72568
72569         * sysdeps/x86_64/bits/atomic.h
72570         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
72571         64bit integer.
72572         (atomic_exchange_acq): Likewise.
72573         (__arch_exchange_and_add_body): Likewise.
72574         (__arch_add_body): Likewise.
72575         (atomic_add_negative): Likewise.
72576         (atomic_add_zero): Likewise.
72577
72578 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72579
72580         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
72581         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
72582
72583 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72584
72585         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
72586         Check __x86_64__ instead of __WORDSIZE.
72587
72588 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72589
72590         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
72591
72592 2012-03-19  David S. Miller  <davem@davemloft.net>
72593
72594         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72595
72596         * sysdeps/sparc/fpu/fenv_private.h: New file.
72597         * sysdeps/sparc/fpu/math_private.h: Use it.
72598         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
72599         Remove.
72600         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
72601         (libc_feholdexcept_setroundl): Remove.
72602         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
72603         Remove.
72604         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
72605         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
72606
72607 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72608
72609         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
72610         int64_t instead of long int.
72611         (INSERT_WORDS64): Likwise.
72612
72613 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72614
72615         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
72616         _Unwind_GetCFA return to _Unwind_Ptr first.
72617
72618 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
72619
72620         [BZ #13629]
72621         * math/s_clog.c: Include <float.h>.
72622         (__clog): Scale large or subnormal inputs.
72623         * math/s_clogf.c: Likewise.
72624         * math/s_clogl.c: Likewise.
72625         * math/s_clog10.c: Include <float.h>.
72626         (M_LOG10_2): Define.
72627         (__clog10): Scale large or subnormal inputs.
72628         * math/s_clog10f.c: Likewise.
72629         * math/s_clog10l.c: Likewise.
72630         * math/libm-test.inc (clog_test): Add more tests.
72631         (clog10_test): Likewise.
72632         * sysdeps/i386/fpu/libm-test-ulps: Update.
72633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72634
72635         [BZ #11451]
72636         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
72637         x and y.
72638         * math/libm-test.inc (atan2_test): Add another test.
72639
72640         * Makerules (common-objdir-compile): Remove.
72641         * sysdeps/unix/Makefile (config-generated): Do not add
72642         $(unix-generated) to variable.
72643         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
72644         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
72645         Remove rule.
72646         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
72647         Likewise.
72648         [generic bits/local_lim.h] (before-compile): Do not append to
72649         variable.
72650         [generic bits/local_lim.h] (common-generated): Likewise.
72651         [generic sys/param.h] (before-compile): Do not append to variable.
72652         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
72653         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
72654         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
72655         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
72656         include.
72657         [generic sys/param.h] (sys/param.h-includes): Remove variable.
72658         [generic sys/param.h] (sys/param.h-includes): Remove rule.
72659         [generic sys/param.h] ($(addprefix
72660         $(common-objpfx),$(sys/param.h-includes))): Likewise.
72661         [generic sys/param.h] (common-generated): Do not append to
72662         variable.
72663         [generic sys/param.h] (sysdep_headers): Likewise.
72664         [generic bits/errno.h] (before-compile): Do not append to
72665         variable.
72666         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
72667         rule.
72668         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
72669         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
72670         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
72671         [generic bits/errno.h] (common-generated): Do not append to
72672         variable.
72673         [generic bits/ioctls.h] (before-compile): Do not append to
72674         variable.
72675         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
72676         rule.
72677         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
72678         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
72679         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
72680         rule.
72681         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
72682         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
72683         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
72684         [generic bits/ioctls.h] (common-generated): Do not append to
72685         variable.
72686         [generic sys/syscall.h] (syscall.h): Remove variable.
72687         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
72688         rule.
72689         [generic sys/syscall.h] (before-compile): Do not append to
72690         variable.
72691         [generic sys/syscall.h] (common-generated): Likewise.
72692         * sysdeps/unix/errnos-tmpl.c: Remove file.
72693         * sysdeps/unix/errnos.awk: Likewise.
72694         * sysdeps/unix/ioctls-tmpl.c: Likewise.
72695         * sysdeps/unix/ioctls.awk: Likewise.
72696         * sysdeps/unix/mk-local_lim.c: Likewise.
72697         * sysdeps/unix/snarf-ioctls: Likewise.
72698
72699 2012-03-19  Richard Henderson  <rth@twiddle.net>
72700
72701         * sysdeps/i386/fpu/fenv_private.h: New file.
72702         * sysdeps/i386/fpu/math_private.h: Use it.
72703         (math_opt_barrier, math_force_eval): Remove.
72704         (libc_feholdexcept_setround_53bit): Remove.
72705         (libc_feupdateenv_53bit): Remove.
72706         * sysdeps/x86_64/fpu/math_private.h: Likewise.
72707         (math_opt_barrier, math_force_eval): Remove.
72708         (libc_feholdexcept): Remove.
72709         (libc_feholdexcept_setround): Remove.
72710         (libc_fetestexcept, libc_fesetenv): Remove.
72711         (libc_feupdateenv_test): Remove.
72712         (libc_feupdateenv, libc_feholdsetround): Remove.
72713         (libc_feresetround): Remove.
72714
72715         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
72716         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
72717
72718         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
72719         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
72720         (libc_feupdateenv_testl): New.
72721         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
72722         (libc_feupdateenv_testf): New.
72723         (libc_feupdateenv): Use libc_feupdateenv_test.
72724         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
72725         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
72726
72727         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
72728         (libc_feholdsetroundf, libc_feholdsetroundl): New.
72729         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
72730         (libc_feresetround_noex): New.
72731         (libc_feresetround_noexf): New.
72732         (libc_feresetround_noexl): New.
72733         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
72734         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
72735         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
72736         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
72737         SET_RESTORE_ROUND.
72738         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
72739         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
72740         (__cos): Likewise.
72741         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
72742         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
72743         SET_RESTORE_ROUND_NOEX.
72744         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
72745         SET_RESTORE_ROUND_NOEXF.
72746         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
72747         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
72748         (libc_feholdsetroundf): New.
72749         (libc_feresetround, libc_feresetroundf): New.
72750
72751         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
72752         (libc_feholdexcept_setround_53bit): Convert from macro to function.
72753         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
72754
72755         * sysdeps/generic/math_private.h: Include <fenv.h>.
72756         (default_libc_feholdexcept): New.
72757         (default_libc_feholdexcept_setround): New.
72758         (default_libc_fesetenv, default_libc_feupdateenv): New.
72759         (libc_feholdexcept): Only define if undefined.
72760         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
72761         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
72762         (libc_feholdexcept_setroundl): Likewise.
72763         (libc_feholdexcept_setround_53bit): Likewise.
72764         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
72765         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
72766         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
72767         (libc_feupdateenv_53bit): Likewise.
72768         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
72769         (libc_feholdexcept): Convert from macro to inline function.
72770         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
72771         (libc_fesetenv, libc_feupdateenv): Likewise.
72772
72773         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
72774         not previously defined.
72775         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
72776         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
72777         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
72778         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
72779         * sysdeps/ieee754/flt-32/math_private.h: New file.
72780         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
72781         math_private.h below SET_FLOAT_WORD.
72782         (__isnan, __isinf_ns, __finite): Remove.
72783         (__isnanf, __isinf_nsf, __finitef): Remove.
72784
72785 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
72786
72787         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72788
72789 2012-03-17  David S. Miller  <davem@davemloft.net>
72790
72791         [BZ #6471]
72792         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
72793         for 2.16.
72794
72795 2012-03-16  David S. Miller  <davem@davemloft.net>
72796
72797         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
72798         warnings.
72799
72800         [BZ #6471]
72801         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
72802         properly.
72803         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
72804         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
72805         sysdep_routines when subdir is sysvipc.
72806         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
72807         __getshmlba helper.
72808
72809         * sysdeps/sparc/fpu/libm-test/ulps: Update.
72810
72811 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
72812
72813         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
72814         [__LP64__].
72815
72816 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
72817
72818         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
72819         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
72820         (__lround): Renamed to ...
72821         (__llround): This.  Replace long int with long long int.
72822         Define lround functions as aliases of llround functions.
72823         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
72824
72825 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
72826
72827         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
72828         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
72829         adresses to uintptr_t.  Replace "long int" and "unsigned long
72830         int" with "greg_t" on va_arg.
72831
72832 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
72833
72834         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
72835         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
72836
72837         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
72838         Move e_machine check before EI_CLASS check.  Handle x32
72839         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
72840         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
72841         SKIP_EM_IA_64 and include
72842         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
72843
72844         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
72845         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
72846         (add_system_dir): New macro.
72847
72848         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
72849         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
72850
72851 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
72852
72853         [BZ #2551]
72854         [BZ #2552]
72855         [BZ #2553]
72856         [BZ #2554]
72857         [BZ #2562]
72858         [BZ #2563]
72859         [BZ #2565]
72860         [BZ #2566]
72861         [BZ #2576]
72862         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
72863         (y0): Likewise.
72864         * math/w_j0f.c (j0f): Likewise.
72865         (y0f): Likewise.
72866         * math/w_j0l.c (__j0l): Likewise.
72867         (__y0l): Likewise.
72868         * math/w_j1.c (j1): Likewise.
72869         (y1): Likewise.
72870         * math/w_j1f.c (j1f): Likewise.
72871         (y1f): Likewise.
72872         * math/w_j1l.c (__j1l): Likewise.
72873         (__y1l): Likewise.
72874         * math/w_jn.c (jn): Likewise.
72875         (yn): Likewise.
72876         * math/w_jnf.c (jnf): Likewise.
72877         (ynf): Likewise.
72878         * math/w_jnl.c (__jnl): Likewise.
72879         (__ynl): Likewise.
72880         * math/libm-test.inc (j0_test): Add more tests.
72881         (j1_test): Likewise.
72882         (jn_test): Likewise.  Add trailing semicolon to existing test.
72883         (y0_test): Likewise.
72884         (y1_test): Likewise.
72885         * sysdeps/i386/fpu/libm-test-ulps: Update.
72886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72887
72888         [BZ #13851]
72889         [BZ #13854]
72890         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
72891         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
72892         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
72893         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
72894         (__tanl): Set errno for infinite argument.
72895         * sysdeps/i386/fpu/mptan.c: Remove.
72896         * sysdeps/i386/fpu/s_tan.S: Likewise.
72897         * sysdeps/i386/fpu/s_tanl.S: Likewise.
72898         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
72899         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
72900         * math/libm-test.inc (tan_test): Add more tests and enable more
72901         tests for double and long double.
72902         * sysdeps/i386/fpu/libm-test-ulps: Update.
72903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72904
72905 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
72906
72907         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
72908         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
72909
72910 2012-03-16  Roland McGrath  <roland@hack.frob.com>
72911
72912         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
72913         * configure.in: Use it for both main tree and add-ons.
72914         * configure: Regenerated.
72915
72916 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
72917
72918         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
72919
72920 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
72921
72922         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
72923         in comment.
72924
72925         [BZ #13851]
72926         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
72927         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
72928         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
72929         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
72930         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
72931         infinite argument.
72932         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
72933         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
72934         != 0 for prec == 2.
72935         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
72936         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
72937         * sysdeps/i386/fpu/s_cosl.S: Likewise.
72938         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
72939         * sysdeps/i386/fpu/s_sinl.S: Likewise.
72940         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
72941         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
72942         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
72943         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
72944         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
72945         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
72946         * math/libm-test.inc (cos_test): Add more tests and enable more
72947         tests for long double.
72948         (sin_test): Likewise.
72949         (sincos_test): Likewise.
72950         * sysdeps/i386/fpu/libm-test-ulps: Update.
72951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72952
72953 2012-03-16  David S. Miller  <davem@davemloft.net>
72954
72955         * sysdeps/sparc/fpu/math_private.h: New file.
72956
72957 2012-03-15  David S. Miller  <davem@davemloft.net>
72958
72959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
72960         file.
72961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
72962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
72963         file.
72964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
72965         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
72966         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
72967         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
72968         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
72969         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
72970         sysdep routines.
72971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
72972
72973         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
72974         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
72975
72976         * sysdeps/sparc/sparc-ifunc.h: New file.
72977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
72978         sparc-ifunc.h
72979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
72980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
72981         Likewise.
72982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
72983         Likewise.
72984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
72985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
72986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
72987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
72988         Likewise.
72989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
72990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
72991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
72992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
72993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
72994         Likewise.
72995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
72996         Likewise.
72997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
72998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
72999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
73000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
73001         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
73002         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
73003         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
73004         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
73005         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
73006         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
73007         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
73008         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
73009         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
73010         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
73011         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
73012         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
73013         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
73014         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
73015         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
73016         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
73017         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
73018         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
73019         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
73020         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
73021
73022 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73023
73024         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
73025         scaling.
73026         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73027
73028 2012-03-15  Andreas Jaeger  <aj@suse.de>
73029
73030         [BZ #13852]
73031         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
73032         ieee754/flt-32 implementation for sin, cos and sincos.
73033         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
73034         * sysdeps/i386/fpu/s_cosf.S: Likewise.
73035         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
73036         * sysdeps/i386/fpu/s_sinf.S: Likewise.
73037         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
73038         ieee754/flt-32 implementation for tan.
73039
73040         * math/libm-test.inc (cos_test): Enable some large input tests for
73041         float as well
73042         (sin_test): Likewise.
73043         (sincos_test): Likewise.
73044         (tan_test): Add tests for large input.
73045
73046         * sysdeps/i386/fpu/libm-test-ulps: Update.
73047
73048 2012-03-15  Andreas Jaeger  <aj@suse.de>
73049
73050         [BZ #13658]
73051         * math/libm-test.inc (cos_test): Add more test cases.
73052         (sin_test): Likewise.
73053         (sincos_test): Likewise.
73054
73055 2012-03-15  Andreas Jaeger  <aj@suse.de>
73056
73057         [BZ #13837]
73058         * math/libm-test.inc (cos_test): Add a test case for large input
73059         value.
73060         (sin_test): Likewise.
73061         (sincos_test): Likewise.
73062
73063 2012-03-15  Andreas Jaeger  <aj@suse.de>
73064             Joseph Myers  <joseph@codesourcery.com>
73065
73066         [BZ #13658]
73067         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
73068         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
73069         * sysdeps/i386/fpu/branred.c: Likewise.
73070         * sysdeps/i386/fpu/dosincos.c: Likewise.
73071         * sysdeps/i386/fpu/mpa.c: Likewise.
73072         * sysdeps/i386/fpu/s_cos.S: Likewise.
73073         * sysdeps/i386/fpu/s_sin.S: Likewise.
73074         * sysdeps/i386/fpu/s_sincos.S: Likewise.
73075         * sysdeps/i386/fpu/sincos32.c: Likewise.
73076
73077         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
73078         Define.
73079         (libc_feupdateenv_53bit): Define.
73080         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
73081         Define.
73082         (libc_feupdateenv_53bit): Define.
73083
73084         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
73085         53 bit (without extend i386 double precision).
73086
73087         * math/libm-test.inc (sincos_test): Add tests for large input.
73088         (sin): Likewise.
73089         (cos): Likewise.
73090
73091         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
73092
73093 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73094
73095         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73096
73097 2012-03-15  David S. Miller  <davem@davemloft.net>
73098
73099         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
73100         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
73101         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
73102         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
73103         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
73104         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
73105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
73106         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
73107         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
73108         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
73109         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
73110         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
73111         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
73112         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
73113         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
73114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
73115         file.
73116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
73117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
73118         file.
73119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
73120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
73121         file.
73122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
73123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
73124         file.
73125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
73126         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
73127         fmin/fmax sysdep routines.
73128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73129
73130 2012-03-14  David S. Miller  <davem@davemloft.net>
73131
73132         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
73133         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
73134         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
73135         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
73136         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
73137         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
73138         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
73139         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
73140         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
73141         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
73142         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
73143         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
73144         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
73145         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
73146         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
73147         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
73148         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
73149         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
73150         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
73151         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
73152         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
73153         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
73154         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
73155         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
73156         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
73157         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
73158         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
73159         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
73160         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
73161         routines.
73162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
73163         file.
73164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
73165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
73166         file.
73167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
73168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
73169         file.
73170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
73171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
73172         file.
73173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
73174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
73175         file.
73176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
73177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
73178         file.
73179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
73180         file.
73181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
73182         file.
73183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
73184         file.
73185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
73186         New file.
73187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
73188         file.
73189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
73190         file.
73191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
73192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
73193         file.
73194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
73195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
73196         file.
73197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
73198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
73199         file.
73200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
73201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
73202         VIS3 routines.
73203
73204         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
73205         New file.
73206
73207         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73208
73209         * sysdeps/sparc/configure.in: New file.
73210         * sysdeps/sparc/configure: Generate.
73211         * configure.in (libc_cv_sparc_as_vis3): Substitute.
73212         * configure: Regenerate.
73213         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
73214         * config.make.in (have-as-vis3): New.
73215         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
73216         available use -Av9d instead of -Av9a.
73217         * sysdeps/sparc/sparc64/Makefile: Likewise.
73218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
73219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
73220         New file.
73221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
73222         file.
73223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
73224         New file.
73225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
73226         file.
73227         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
73228         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
73229         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
73230         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
73231         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
73232
73233         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
73234         fzeros/fnegs to load 0x80000000 into a float register instead of
73235         using the stack.
73236         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
73237
73238 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73239
73240         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73241         bits/syscall.h.
73242         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
73243         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
73244         ($(inst_includedir)/bits/syscall.h): Remove rule.
73245         ($(objpfx)bits/syscall.d): Include instead of
73246         $(objpfx)syscall-list.d.
73247         (generated): Change syscall-list.h and syscall-list.d to
73248         bits/syscall.h and bits/syscall.d.
73249
73250 2012-03-14  Roland McGrath  <roland@hack.frob.com>
73251
73252         [BZ #13846]
73253         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
73254
73255 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73256
73257         [BZ #13841]
73258         * math/s_csqrt.c: Include <float.h>.
73259         (__csqrt): Scale large or subnormal inputs.
73260         * math/s_csqrtf.c: Likewise.
73261         * math/s_csqrtl.c: Likewise.
73262         * math/libm-test.inc (csqrt_test): Add more tests.
73263         * sysdeps/i386/fpu/libm-test-ulps: Update.
73264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73265
73266         [BZ #13840]
73267         * math/libm-test.inc (hypot_test): Add more tests.
73268
73269 2012-03-13  David S. Miller  <davem@davemloft.net>
73270
73271         [BZ #13840]
73272         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
73273         double-precision for the calculation instead of scaling.
73274
73275 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
73276
73277         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
73278         manipulate bits before adding and subtracting TWO52[sx].
73279         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
73280         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
73281         Likewise.
73282         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
73283
73284 2012-03-13  David S. Miller  <davem@davemloft.net>
73285
73286         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
73287         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
73288         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
73289         rtld-global-offsets.h
73290         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73291
73292         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
73293         large parameters.
73294
73295         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
73296
73297         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
73298         'err' in the ifdef scope in which it is actually used.
73299
73300         * nss/nss_db/db-init.c: Include string.h
73301
73302 2012-03-12  David S. Miller  <davem@davemloft.net>
73303
73304         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73305         masking out of the most significant byte of random value used.
73306         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73307         Fix coding style in previous change.
73308
73309         * sysdeps/unix/sysv/linux/kernel-features.h
73310         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
73311         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
73312         expression.
73313         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
73314         later.
73315
73316 2012-03-11  David S. Miller  <davem@davemloft.net>
73317
73318         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
73319         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
73320         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
73321         for 'resultvar' otherwise things get truncated on 64-bit.
73322
73323         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73324         Fix masking out of the most significant byte of random value used.
73325
73326         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73327
73328 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
73329
73330         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73331
73332 2012-03-09  David S. Miller  <davem@davemloft.net>
73333
73334         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
73335         variables with appropriate CPP guards.
73336         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
73337         from the frame pointer, not the stack pointer.  Correct layout
73338         comments.  Fix test on resulting framesize and the management of
73339         the outregs buffer for pltexit.  Preserve floating point return
73340         values across _dl_call_pltexit call.
73341         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
73342         framesize and the management of the outregs buffer for pltexit.
73343         Preserve floating point return values across _dl_call_pltexit
73344         call.
73345         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
73346         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
73347         (la_sparc64_gnu_pltexit): New functions.
73348         (print_exit): Fix format string for return register value.
73349
73350 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
73351
73352         * sunrpc/Makefile (others): Add rpcgen.
73353         ($(objpfx)rpcgen): Remove special build rule and dependency on
73354         libc.
73355         * sunrpc/rpcgen.c: New file.
73356
73357 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73358
73359         [BZ #13673]
73360         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
73361         * stdio-common/bug-vfprintf-nargs.c: Likewise.
73362         * sysdeps/i386/crti.S: Likewise.
73363         * sysdeps/i386/crtn.S: Likewise.
73364         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
73365         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
73366         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
73367         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
73368         * sysdeps/sh/crti.S: Likewise.
73369         * sysdeps/sh/crtn.S: Likewise.
73370         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
73371
73372         [BZ #13673]
73373         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
73374         with URL.
73375         * locale/programs/locfile-kw.gperf: Likewise.
73376         * locale/programs/charmap-kw.h: Regenerated.
73377         * locale/programs/locfile-kw.h: Likewise.
73378
73379         [BZ #13673]
73380         * intl/plural.y: Replace FSF snail mail address with URL.
73381         * intl/plural.c: Regenerated.
73382
73383 2012-03-09  Richard Henderson  <rth@twiddle.net>
73384
73385         * include/math_private.h: Remove file.
73386         * math/math_private.h: Move file ...
73387         * sysdeps/generic/math_private.h: ... here.
73388
73389         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
73390         * sysdeps/powerpc/fpu/math_private.h: Likewise.
73391         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73392
73393         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
73394         and <math_private.h>.
73395         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
73396         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
73397         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
73398         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
73399         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
73400         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
73401         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
73402         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
73403         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
73404         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
73405         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
73406         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
73407         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
73408         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
73409         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
73410         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
73411         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
73412         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
73413         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
73414         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
73415         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
73416         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
73417         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
73418         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
73419         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
73420         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
73421         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
73422         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
73423         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
73424         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
73425         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
73426         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
73427         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
73428         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
73429         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
73430         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
73431         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
73432         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
73433         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
73434         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
73435         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
73436         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
73437         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
73438         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
73439         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
73440         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
73441         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
73442         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
73443         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
73444         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
73445         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
73446         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
73447         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
73448         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
73449         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
73450         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
73451         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
73452         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
73453         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
73454         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
73455         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
73456         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
73457         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
73458         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
73459         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
73460         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
73461         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
73462         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
73463         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
73464         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
73465         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
73466         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
73467         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
73468         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
73469         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
73470         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
73471         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
73472         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
73473         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
73474         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
73475         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
73476         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
73477         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
73478         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
73479         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
73480         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
73481         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
73482         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
73483         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
73484         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
73485         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
73486         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
73487         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
73488         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
73489         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
73490         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
73491         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
73492         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
73493         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73494         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
73495         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
73496         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
73497         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
73498         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
73499         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
73500         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
73501         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
73502         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
73503         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
73504         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
73505         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
73506         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
73507         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
73508         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
73509         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
73510         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
73511         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
73512         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
73513         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
73514         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
73515         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
73516         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
73517         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
73518         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
73519         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
73520         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
73521         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
73522         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
73523         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
73524         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
73525         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
73526         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
73527         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
73528         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
73529         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
73530         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
73531         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
73532         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
73533         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
73534         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
73535         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
73536         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
73537         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
73538         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
73539         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
73540         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
73541         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
73542         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
73543         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
73544         * sysdeps/ieee754/k_standard.c: Likewise.
73545         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
73546         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
73547         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
73548         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
73549         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
73550         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
73551         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
73552         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
73553         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
73554         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
73555         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73556         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
73557         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
73558         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
73559         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
73560         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
73561         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
73562         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
73563         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
73564         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
73565         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
73566         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
73567         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
73568         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
73569         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
73570         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
73571         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
73572         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
73573         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
73574         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
73575         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
73576         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
73577         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
73578         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
73579         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
73580         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
73581         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
73582         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
73583         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
73584         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
73585         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
73586         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
73587         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
73588         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
73589         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
73590         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
73591         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
73592         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
73593         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
73594         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
73595         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
73596         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
73597         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
73598         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
73599         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
73600         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
73601         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
73602         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
73603         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
73604         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
73605         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
73606         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
73607         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
73608         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
73609         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
73610         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
73611         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
73612         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
73613         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
73614         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
73615         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
73616         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73617         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
73618         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
73619         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
73620         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
73621         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
73622         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
73623         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
73624         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
73625         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
73626         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
73627         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
73628         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
73629         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
73630         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
73631         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
73632         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
73633         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
73634         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
73635         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
73636         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
73637         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
73638         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
73639         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
73640         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
73641         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
73642         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
73643         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
73644         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
73645         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
73646         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
73647         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
73648         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
73649         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
73650         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
73651         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
73652         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
73653         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
73654         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
73655         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
73656         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
73657         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
73658         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
73659         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
73660         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
73661         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
73662         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
73663         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
73664         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
73665         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73666         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
73667         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
73668         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
73669         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
73670         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
73671         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
73672         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
73673         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
73674         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
73675         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
73676         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
73677         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
73678         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
73679         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
73680         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
73681         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
73682         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
73683         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
73684         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
73685         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
73686         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
73687         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
73688         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
73689         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
73690         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
73691         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
73692         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
73693         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
73694         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
73695         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
73696         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
73697         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
73698         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
73699         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
73700         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
73701         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
73702         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
73703         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
73704         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
73705         * sysdeps/ieee754/s_lib_version.c: Likewise.
73706         * sysdeps/ieee754/s_matherr.c: Likewise.
73707         * sysdeps/ieee754/s_signgam.c: Likewise.
73708         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
73709         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
73710         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
73711         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
73712         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
73713         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
73714         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
73715         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
73716         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
73717         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
73718         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
73719         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
73720         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
73721         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
73722         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
73723         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
73724         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
73725         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
73726         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
73727         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
73728         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
73729
73730 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
73731
73732         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
73733         * sunrpc/rpc_main.c: Likewise.
73734         * sunrpc/rpc_svcout.c: Likewise.
73735
73736 2012-03-09  David S. Miller  <davem@davemloft.net>
73737
73738         * include/math_private.h: New file.
73739
73740 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
73741
73742         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
73743         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
73744         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
73745         from <bits/socket_type.h>.
73746         (enum __socket_type): Don't define here.
73747         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
73748         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73749         bits/socket_type.h.
73750
73751         [BZ #13566]
73752         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
73753         checking __USE_GNU.
73754
73755         * Makerules ($(inst_includedir)/%.h): New rule.
73756         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
73757         (install-others): Remove variable setting.
73758         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
73759
73760 2012-03-08  Richard Henderson  <rth@twiddle.net>
73761
73762         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
73763         from macro to inline function; merge with the
73764         !__LIBC_INTERNAL_MATH_INLINES version.
73765         (__ieee754_sqrtf): Likewise.
73766
73767         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
73768         to inline function.
73769         (__rintf, __floor, __floorf): Likewise.
73770
73771         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
73772         macro to inline function.
73773         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
73774
73775         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
73776         not <math/math_private.h>.
73777
73778 2012-03-08  David S. Miller  <davem@davemloft.net>
73779
73780         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
73781         copyright year.
73782         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
73783
73784 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
73785
73786         * resolv/gai_misc.c (handle_requests): Fix struct timespec
73787         normalization.
73788         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
73789         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
73790
73791 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
73792
73793         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
73794         be defined individually, they must be defined as a block.  Define
73795         S for printing a string instead of hidint the different by using a
73796         macro for adding the 'l'.
73797         * stdio-common/tst-fphex-wide.c: Adjust.
73798
73799 2012-03-07  Marek Polacek  <polacek@redhat.com>
73800
73801         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
73802
73803 2012-03-08  Marek Polacek  <polacek@redhat.com>
73804
73805         [BZ #13806]
73806         * stdio-common/Makefile (tests): Add tst-fphex-wide.
73807         * stdio-common/tst-fphex.c: Define a few macros to make the
73808         test reusable.  Use them.
73809         * stdio-common/tst-fphex-wide.c: New file.
73810
73811 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
73812
73813         [BZ #6911]
73814         * manual/macros.texi (gnusystems): New macro.
73815         (nongnusystems): Likewise.
73816         (gnulinuxhurdsystems): Likewise.
73817         (gnuhurdsystems): Likewise..
73818         (gnulinuxsystems): Likewise.
73819         * manual/charset.texi: Use new macros or @theglibc{} to refer to
73820         variants of the GNU system, not "GNU system".
73821         * manual/conf.texi: Likewise.
73822         * manual/errno.texi: Likewise.  Update example of errno macro
73823         expansion.
73824         * manual/filesys.texi: Likewise.
73825         (getumask): Document as specific to GNU/Hurd.
73826         * manual/install.texi: Likewise.  Reword some references to
73827         GNU/Linux.
73828         * manual/intro.texi: Likewise.
73829         * manual/io.texi: Likewise.
73830         (File Name Portability): Detail which constraints are inapplicable
73831         to all GNU systems and which are only inapplicable to GNU/Hurd.
73832         * manual/job.texi: Likewise.
73833         * manual/llio.texi: Likewise.
73834         (O_NOCTTY): Document as present on GNU/Linux.
73835         * manual/maint.texi: Likewise.
73836         * manual/memory.texi: Likewise.
73837         * manual/pattern.texi: Likewise.
73838         * manual/pipe.texi: Likewise.
73839         * manual/process.texi: Likewise.
73840         * manual/resource.texi: Likewise.
73841         (RUSAGE_CHILDREN): Remove statement about specifying a particular
73842         child on GNU/Hurd.
73843         * manual/setjmp.texi: Likewise.
73844         * manual/signal.texi: Likewise.
73845         * manual/startup.texi: Likewise.
73846         * manual/stdio.texi: Likewise.
73847         * manual/terminal.texi: Likewise.
73848         (ONLCR): Document as POSIX.
73849         (OXTABS): Document availability on GNU/Linux as XTABS.
73850         (ONOEOT): Document availability separately from other bits.
73851         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
73852         * manual/time.texi: Likewise.
73853         * manual/users.texi: Likewise.
73854         * INSTALL: Regenerated.
73855         * sysdeps/gnu/errlist.c: Regenerated.
73856
73857         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
73858         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
73859         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
73860         puts.
73861         * configure: Regenerated.
73862
73863 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
73864
73865         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
73866         default includes instead of AC_HEADER_CHECK.
73867         * sysdeps/i386/configure: Regenerated.
73868
73869         [BZ #10716]
73870         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
73871         * math/s_cacoshf.c (__cacoshf): Likewise.
73872         * math/s_cacoshl.c (__cacoshl): Likewise.
73873         * math/s_casinh.c (__casinh): Set signs of result from argument.
73874         * math/s_casinhf.c (__casinhf): Likewise.
73875         * math/s_casinhl.c (__casinhl): Likewise.
73876         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
73877         (casinh_test): Add more tests.
73878         * sysdeps/i386/fpu/libm-test-ulps: Update.
73879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73880
73881 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
73882
73883         * po/zh_TW.po: Update from translation team.
73884
73885         * login/Makefile (distribute): Remove variable.
73886         * catgets/Makefile: Likewise.
73887         * mach/Makefile: Likewise.
73888         * malloc/Makefile: Likewise.
73889         * misc/Makefile: Likewise.
73890         * iconv/Makefile: Likewise.
73891         * nscd/Makefile: Likewise.
73892         * hurd/Makefile: Likewise.
73893         * manual/Makefile: Likewise.
73894         * locale/Makefile: Likewise.
73895         * intl/Makefile: Likewise.
73896         * conform/Makefile: Likewise.
73897         * nss/Makefile: Likewise.
73898         * time/Makefile: Likewise.
73899         * soft-fp/Makefile: Likewise.
73900         * dirent/Makefile: Likewise.
73901         * gmon/Makefile: Likewise.
73902         * po/Makefile: Likewise.
73903         * rt/Makefile: Likewise.
73904         * socket/Makefile: Likewise.
73905         * math/Makefile: Likewise.
73906         * signal/Makefile: Likewise.
73907         * debug/Makefile: Likewise.
73908         * elf/Makefile: Likewise.
73909         * timezone/Makefile: Likewise.
73910         * stdlib/Makefile: Likewise.
73911         * iconvdata/Makefile: Likewise.
73912         * sunrpc/Makefile: Likewise.
73913         * io/Makefile: Likewise.
73914         * argp/Makefile: Likewise.
73915         * inet/Makefile: Likewise.
73916         * hesiod/Makefile: Likewise.
73917         * grp/Makefile: Likewise.
73918         * csu/Makefile: Likewise.
73919         * wctype/Makefile: Likewise.
73920         * crypt/Makefile: Likewise.
73921         * libio/Makefile: Likewise.
73922         * string/Makefile: Likewise.
73923         * nis/Makefile: Likewise.
73924         * resolv/Makefile: Likewise.
73925         * stdio-common/Makefile: Likewise.
73926         * wcsmbs/Makefile: Likewise.
73927         * dlfcn/Makefile: Likewise.
73928         * posix/Makefile: Likewise.
73929
73930         [BZ #6959]
73931         * timezone/Makefile: Don't install timezone files, just the programs
73932         and scripts.
73933
73934 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
73935
73936         * nss/databases.def: Add missing gshadow entry.
73937
73938         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
73939
73940 2012-03-06  Marek Polacek  <polacek@redhat.com>
73941
73942         [BZ #13726]
73943         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
73944         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
73945         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
73946         * stdio-common/tst-long-dbl-fphex.c: New file.
73947
73948 2012-03-06  David S. Miller  <davem@davemloft.net>
73949
73950         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
73951         (set_obp_int): New function.
73952         (get_obp_int): New function.
73953         (__get_clockfreq_via_dev_openprom): Likewise.
73954         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
73955         Avoid unused variable warnings on 'val' and use builtin_expect.
73956         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
73957         __builtin_expect.
73958         (INLINE_CLONE_SYSCALL): Likewise.
73959
73960 2012-03-05  David S. Miller  <davem@davemloft.net>
73961
73962         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73963
73964 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
73965
73966         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73967
73968         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
73969         only for |x| >= 40.
73970         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
73971
73972 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
73973
73974         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
73975         Replace gettimeofday with __vdso_gettimeofday.
73976
73977         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73978         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
73979         __vdso_clock_gettime and __vdso_getcpu.
73980
73981         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
73982         time with __vdso_time.
73983
73984 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
73985
73986         * manual/lang.texi (size_t): Note types to which size_t may be
73987         equivalent with the GNU C Library, but do not describe when
73988         differences between them are significant.
73989
73990 2012-03-05  Andreas Jaeger  <aj@suse.de>
73991
73992         * sysdeps/i386/fpu/libm-test-ulps: Update.
73993
73994 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
73995
73996         [BZ #3976]
73997         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
73998         (__ieee754_pow): Save and restore rounding mode and use
73999         round-to-nearest for main computations.
74000         * math/libm-test.inc (pow_test_tonearest): New function.
74001         (pow_test_towardzero): Likewise.
74002         (pow_test_downward): Likewise.
74003         (pow_test_upward): Likewise.
74004         (main): Call the new functions.
74005         * sysdeps/i386/fpu/libm-test-ulps: Update.
74006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74007
74008         [BZ #3976]
74009         * math/libm-test.inc (cosh_test_tonearest): New function.
74010         (cosh_test_towardzero): Likewise.
74011         (cosh_test_downward): Likewise.
74012         (cosh_test_upward): Likewise.
74013         (sinh_test_tonearest): Likewise.
74014         (sinh_test_towardzero): Likewise.
74015         (sinh_test_downward): Likewise.
74016         (sinh_test_upward): Likewise.
74017         (main): Call the new functions.
74018         * sysdeps/i386/fpu/libm-test-ulps: Update.
74019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74020
74021 2012-03-05  Tom de Vries  <tom@codesourcery.com>
74022
74023         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
74024         default stack guard is set in last bytes.
74025         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
74026
74027 2012-03-05  Kees Cook  <keescook@chromium.org>
74028
74029         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
74030
74031         [BZ #13656]
74032         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
74033         possibly allocate from heap instead of stack.
74034         * stdio-common/bug-vfprintf-nargs.c: New file.
74035         * stdio-common/Makefile (tests): Add nargs overflow test.
74036
74037 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
74038
74039         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74040
74041 2012-03-03  Marek Polacek  <polacek@redhat.com>
74042
74043         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
74044         * math/math_private.h: Likewise.
74045         * stdlib/tst-strtod.c: Likewise.
74046         * sysdeps/i386/i486/bits/atomic.h: Likewise.
74047         * sysdeps/x86_64/bits/atomic.h: Likewise.
74048
74049 2012-03-02  David S. Miller  <davem@davemloft.net>
74050
74051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
74052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
74053         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
74054         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
74055         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
74056         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
74057         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
74058         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
74059
74060 2012-03-02  Roland McGrath  <roland@hack.frob.com>
74061
74062         [BZ #13792]
74063         * manual/examples/README: New file, says the example source files
74064         can be used under GPL>=2.
74065         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
74066         line containing just "*/".
74067         * manual/examples/add.c: Add copyright header (GPL>=2).
74068         * manual/examples/argp-ex1.c: Likewise.
74069         * manual/examples/argp-ex2.c: Likewise.
74070         * manual/examples/argp-ex3.c: Likewise.
74071         * manual/examples/argp-ex4.c: Likewise.
74072         * manual/examples/atexit.c: Likewise.
74073         * manual/examples/db.c: Likewise.
74074         * manual/examples/dir.c: Likewise.
74075         * manual/examples/dir2.c: Likewise.
74076         * manual/examples/execinfo.c: Likewise.
74077         * manual/examples/filecli.c: Likewise.
74078         * manual/examples/filesrv.c: Likewise.
74079         * manual/examples/fmtmsgexpl.c: Likewise.
74080         * manual/examples/genpass.c: Likewise.
74081         * manual/examples/inetcli.c: Likewise.
74082         * manual/examples/inetsrv.c: Likewise.
74083         * manual/examples/isockad.c: Likewise.
74084         * manual/examples/longopt.c: Likewise.
74085         * manual/examples/memopen.c: Likewise.
74086         * manual/examples/memstrm.c: Likewise.
74087         * manual/examples/mkfsock.c: Likewise.
74088         * manual/examples/mkisock.c: Likewise.
74089         * manual/examples/mygetpass.c: Likewise.
74090         * manual/examples/pipe.c: Likewise.
74091         * manual/examples/popen.c: Likewise.
74092         * manual/examples/rprintf.c: Likewise.
74093         * manual/examples/search.c: Likewise.
74094         * manual/examples/select.c: Likewise.
74095         * manual/examples/setjmp.c: Likewise.
74096         * manual/examples/sigh1.c: Likewise.
74097         * manual/examples/sigusr.c: Likewise.
74098         * manual/examples/stpcpy.c: Likewise.
74099         * manual/examples/strdupa.c: Likewise.
74100         * manual/examples/strftim.c: Likewise.
74101         * manual/examples/strncat.c: Likewise.
74102         * manual/examples/subopt.c: Likewise.
74103         * manual/examples/swapcontext.c: Likewise.
74104         * manual/examples/termios.c: Likewise.
74105         * manual/examples/testopt.c: Likewise.
74106         * manual/examples/testpass.c: Likewise.
74107         * manual/examples/timeval_subtract.c: Likewise.
74108
74109         [BZ #13792]
74110         * manual/time.texi (Elapsed Time): Move timeval_subtract example
74111         function to ...
74112         * manual/timeval_subtract.c.texi: ... here, new file.
74113
74114 2012-03-02  David S. Miller  <davem@davemloft.net>
74115
74116         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
74117
74118 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
74119
74120         [BZ #3976]
74121         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
74122         (__sin): Save and restore rounding mode and use round-to-nearest
74123         for all computations.
74124         (__cos): Save and restore rounding mode and use round-to-nearest
74125         for all computations.
74126         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
74127         <fenv.h>.
74128         (tan): Save and restore rounding mode and use round-to-nearest for
74129         all computations.
74130         * math/libm-test.inc (cos_test_tonearest): New function.
74131         (cos_test_towardzero): Likewise.
74132         (cos_test_downward): Likewise.
74133         (cos_test_upward): Likewise.
74134         (sin_test_tonearest): Likewise.
74135         (sin_test_towardzero): Likewise.
74136         (sin_test_downward): Likewise.
74137         (sin_test_upward): Likewise.
74138         (tan_test_tonearest): Likewise.
74139         (tan_test_towardzero): Likewise.
74140         (tan_test_downward): Likewise.
74141         (tan_test_upward): Likewise.
74142         (main): Call the new functions.
74143         * sysdeps/i386/fpu/libm-test-ulps: Update.
74144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74145
74146         [BZ #10135]
74147         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
74148         small n, then large n, before computing and testing k+n.
74149         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
74150         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
74151         Likewise.
74152         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
74153         Likewise.
74154         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
74155         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
74156         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
74157         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
74158         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
74159         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
74160         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
74161         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
74162         * math/libm-test.inc (scalbn_test): Add more tests.
74163         (scalbln_test): Likewise.
74164
74165         * manual/filesys.texi (mode_t): Describe constraints on size and
74166         signedness, not exact equivalence to a particular type.
74167         (ino_t): Likewise.
74168         (ino64_t): Likewise.
74169         (dev_t): Likewise.
74170         (nlink_t): Likewise.
74171         (blkcnt_t): Likewise.
74172         (blkcnt64_t): Likewise.
74173         * manual/llio.texi (off_t): Likewise.
74174
74175         [BZ #3976]
74176         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
74177         (__ieee754_exp): Save and restore rounding mode and use
74178         round-to-nearest for all computations.
74179         * math/libm-test.inc (exp_test_tonearest): New function.
74180         (exp_test_towardzero): Likewise.
74181         (exp_test_downward): Likewise.
74182         (exp_test_upward): Likewise.
74183         (main): Call the new functions.
74184         * sysdeps/i386/fpu/libm-test-ulps: Update.
74185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74186
74187 2012-03-01  Chris Demetriou  <cgd@google.com>
74188
74189         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
74190         have predictable order.
74191
74192 2012-03-01  David S. Miller  <davem@davemloft.net>
74193
74194         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
74195
74196         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
74197         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
74198         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
74199         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
74200
74201         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
74202         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
74203         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
74204         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
74205         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
74206         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
74207         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
74208         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
74209         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
74210
74211         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74212
74213         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
74214         * sysdeps/sparc/fpu/libm-test-ulps: to here.
74215         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
74216
74217         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
74218         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
74219         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
74220         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
74221         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
74222         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
74223         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
74224         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
74225         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
74226         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
74227         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
74228         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74229         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
74230         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
74231         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
74232         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
74233         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
74234         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
74235         * sysdeps/sparc/elf/configure: Regenerated.
74236
74237 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
74238
74239         * configure.in (AS, LD): Require binutils 2.20 or later.
74240         * configure: Regenerated.
74241         * manual/install.texi (Tools for Compilation): Give binutils 2.20
74242         as required minimum version.
74243         * INSTALL: Regenerated.
74244
74245         [BZ #2541]
74246         [BZ #4108]
74247         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
74248         before squaring exponent.
74249         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
74250         bottom long double and 27 bits of top long double before squaring
74251         exponent.
74252         * math/libm-test.inc (erfc_test): Add more tests.
74253         * sysdeps/i386/fpu/libm-test-ulps: Update.
74254         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
74255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74256
74257 2012-03-01  Kai Tietz  <ktietz@redhat.com>
74258
74259         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
74260         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
74261         containing bit-fields.
74262         * soft-fp/extended.h (_FP_UNION_E): Likewise.
74263         * soft-fp/single.h (_FP_UNION_S): Likewise.
74264         * soft-fp/double.h (_FP_UNION_D): Likewise.
74265
74266 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74267
74268         [BZ #13786]
74269         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
74270         not include ../strcmp.S.
74271         [USE_AS_STRNCASECMP_L]: Likewise.
74272         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
74273         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
74274         * sysdeps/i386/i686/multiarch/strncase_l-c.c
74275         (__strncasecmp_l_ia32): Define as alias to
74276         __strncasecmp_l_nonascii.
74277
74278         [BZ #5794]
74279         * math/libm-test.inc (expm1_test): Add test for bug 5794.
74280         * sysdeps/i386/fpu/libm-test-ulps: Update.
74281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74282
74283         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
74284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74285
74286 2012-02-29  Jeff Law  <law@redhat.com>
74287
74288         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
74289         out of bounds read.
74290
74291 2012-02-29  Marek Polacek  <polacek@redhat.com>
74292
74293         [BZ #13706]
74294         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
74295         * elf/Makefile: Add rules to run tst-unused-dep.out.
74296
74297 2012-02-28  David S. Miller  <davem@davemloft.net>
74298
74299         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
74300         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
74301         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
74302         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
74303         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
74304         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
74305
74306 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74307
74308         * math/libm-test.inc (llround_test): Move one test from
74309         lround_test.  Use TEST_f_L in moved test.
74310         (lround_test): Move misplaced test to llround_test.  Add testcase
74311         from bug 2561.
74312
74313 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
74314
74315         * sysdeps/x86_64/fpu/e_expf.S: New file.
74316         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
74317
74318 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
74319
74320         [BZ #13637]
74321         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
74322         of remain_len that may cause incomplete multi-byte character and
74323         false match.
74324         * posix/bug-regex33.c: New file.
74325         * posix/Makefile (tests): Add bug-regex33.
74326
74327 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
74328
74329         * manual/macros.texi: New file.
74330         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
74331         * manual/libc.texinfo: Include macros.texi.
74332         * manual/creatute.texi: Likewise.
74333         * manual/install.texi: Likewise.
74334         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
74335         @glibcadj{} in references to the GNU C Library.
74336         * manual/charset.texi: Likewise.
74337         * manual/conf.texi: Likewise.
74338         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
74339         when not using those macros.
74340         * manual/creature.texi: Likewise.
74341         * manual/crypt.texi: Likewise.
74342         * manual/errno.texi: Likewise.
74343         * manual/filesys.texi: Likewise.
74344         * manual/header.texi: Likewise.
74345         * manual/install.texi: Likewise.
74346         * manual/intro.texi: Likewise.
74347         * manual/io.texi: Likewise.
74348         * manual/job.texi: Likewise.
74349         * manual/lang.texi: Likewise.
74350         * manual/libc.texiinfo: Likewise.
74351         * manual/llio.texi: Likewise.
74352         * manual/locale.texi: Likewise.
74353         * manual/maint.texi: Likewise.
74354         * manual/math.texi: Likewise.
74355         * manual/memory.texi: Likewise.
74356         * manual/message.texi: Likewise.
74357         * manual/nss.texi: Likewise.
74358         * manual/pattern.texi: Likewise.
74359         * manual/process.texi: Likewise.
74360         * manual/resource.texi: Likewise.
74361         * manual/search.texi: Likewise.
74362         * manual/setjmp.texi: Likewise.
74363         * manual/signal.texi: Likewise.
74364         * manual/socket.texi: Likewise.
74365         * manual/startup.texi: Likewise.
74366         * manual/stdio.texi: Likewise.
74367         * manual/string.texi: Likewise.
74368         * manual/sysinfo.texi: Likewise.
74369         * manual/syslog.texi: Likewise.
74370         * manual/terminal.texi: Likewise.
74371         * manual/time.texi: Likewise.
74372         * manual/users.texi: Likewise.
74373         * INSTALL: Regenerated.
74374         * NOTES: Regenerated.
74375         * sysdeps/gnu/errlist.c: Regenerated.
74376
74377 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
74378
74379         * include/dirent.h: Include <dirstream.h> before
74380         <dirent/dirent.h>.
74381
74382 2012-02-28  David S. Miller  <davem@davemloft.net>
74383
74384         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
74385         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
74386         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
74387         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
74388
74389 2012-02-27  David S. Miller  <davem@davemloft.net>
74390
74391         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
74392         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
74393         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
74394         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
74395
74396         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
74397         frame pointer instead of stack pointer relative arg slot.
74398         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74399         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74400         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74401
74402 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
74403
74404         [BZ #3992]
74405         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
74406
74407 2012-02-27  David S. Miller  <davem@davemloft.net>
74408
74409         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
74410         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74411         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
74412         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
74413         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74414         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74415         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
74416         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
74417
74418 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74419
74420         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
74421         later.  Allow versions 5-9.
74422         * configure: Regenerated.
74423         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
74424         required minimum version and 4.6 as recommended version.  Do not
74425         mention bugs in GCC 2.7 and 2.8.
74426         * INSTALL: Regenerated.
74427
74428 2012-02-27  David S. Miller  <davem@davemloft.net>
74429
74430         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
74431         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
74432         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
74433         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
74434         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
74435         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
74436         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
74437         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
74438
74439         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
74440         manipulate bits before adding and subtracting TWO112[sx].
74441         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
74442
74443 2012-02-27  Roland McGrath  <roland@hack.frob.com>
74444
74445         [BZ #13775]
74446         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
74447         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
74448         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
74449         being in POSIX, because they are in 1003.1-2008.
74450
74451         * rt/tst-aio.c: Include <fcntl.h>.
74452         * rt/tst-aio7.c: Likewise.
74453         * rt/tst-aio64.c: Likewise.
74454
74455         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
74456
74457 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74458
74459         * manual/install.texi (--with-headers): Describe headers as
74460         interface headers, not private headers.
74461         (Specific advice for GNU/Linux systems): Describe use of headers
74462         from "make headers_install", not private headers from older
74463         kernels.
74464         * INSTALL: Regenerated.
74465         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
74466         Change to 2.6.19.
74467         * sysdeps/unix/sysv/linux/configure: Regenerated.
74468
74469         * manual/llio.texi (fclean): Remove documentation.
74470
74471         * manual/Makefile (libc-texi-generated): New variable.  Include
74472         version.texi.
74473         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
74474         $(libc-texi-generated), not duplicated list of files.
74475         (version.texi, stamp-version): New rules.
74476         (realclean): Remove $(libc-texi-generated), not individual files
74477         from that list.  Do not remove dir-add.texinfo.
74478         * manual/libc.texinfo: Comment out uses of edition numbers and
74479         references to printed manual.  Remove last-updated dates.
74480         (EDITION): Comment out.
74481         (ISBN): Likewise.
74482         (VERSION, UPDATED): Remove.
74483         (version.texi): Include.
74484
74485 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
74486
74487         * sysdeps/posix/spawni.c: Include <signal.h>.
74488         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
74489         * sysdeps/pthread/aio_fsync.c: Likewise.
74490
74491 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
74492
74493         * conform/Makefile (tests): Run only when not cross-compiling and
74494         when fast-check is not defined.
74495
74496         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
74497         * conform/data/limits.h-data: Fixes for POSIX2008.
74498         * conform/run-conformtest.sh: Run all tests.
74499         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
74500         headers.
74501         * include/bits/dlfcn.h: Likewise.
74502         * include/langinfo.h: Likewise.
74503         * include/monetary.h: Likewise.
74504         * include/sys/poll.h: Likewise.
74505
74506         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
74507         for __USE_GNU.
74508         * posix/spawn.h: Define __need_sigset_t.
74509         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
74510         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
74511         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
74512         to get sigevent_t only.
74513         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
74514         only for __USE_GNU.
74515         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
74516         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
74517         process_vm_writev only for __USE_GNU.
74518         * termios/termios.h: Declare tcgetsid also for POSIX2008.
74519
74520         * conform/Makefile: For now ignore errors from run-conformtest.
74521         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
74522         POSIX to avoid namespace pollution.  Don't prepend headers.
74523         * conform/data/aio.h-data: Fixes for POSIX testing.
74524         * conform/data/fcntl.h-data: Likewise.
74525         * conform/data/glob.h-data: Likewise.
74526         * conform/data/grp.h-data: Likewise.
74527         * conform/data/pthread.h-data: Likewise.
74528         * conform/data/pwd.h-data: Likewise.
74529         * conform/data/signal.h-data: Likewise.
74530         * conform/data/spawn.h-data: Likewise.
74531         * conform/data/stdio.h-data: Likewise.
74532         * conform/data/stdlib.h-data: Likewise.
74533         * conform/data/stropts.h-data: Likewise.
74534         * conform/data/sys/mman.h-data: Likewise.
74535         * conform/data/sys/stat.h-data: Likewise.
74536         * conform/data/sys/types.h-data: Likewise.
74537         * conform/data/sys/wait.h-data: Likewise.
74538         * conform/data/time.h-data: Likewise.
74539         * conform/data/unistd.h-data: Likewise.
74540         * conform/data/utime.h-data: Likewise.
74541
74542         * io/sys/stat.h: fchmod was always in POSIX.
74543         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
74544         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
74545         * rt/aio.h: Define __need_timespec before including <time.h>.
74546         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
74547         struct.  Add forward declaration of pthread_attr_t and use it in
74548         sigevent.
74549         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74550         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74551         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
74552         always remove CLK_TCK definition.
74553
74554 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
74555
74556         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
74557
74558 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
74559
74560         * conform/run-conformtest.sh: New file.
74561         * conform/Makefile: Run run-conformtest for tests.
74562         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
74563         support.
74564
74565         * conform/data/uchar.h-data: New file.
74566         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
74567         * conform/data/arpa/inet.h-data: Likewise.
74568         * conform/data/assert.h-data: Likewise.
74569         * conform/data/complex.h-data: Likewise.
74570         * conform/data/cpio.h-data: Likewise.
74571         * conform/data/ctype.h-data: Likewise.
74572         * conform/data/dirent.h-data: Likewise.
74573         * conform/data/dlfcn.h-data: Likewise.
74574         * conform/data/errno.h-data: Likewise.
74575         * conform/data/fcntl.h-data: Likewise.
74576         * conform/data/float.h-data: Likewise.
74577         * conform/data/fmtmsg.h-data: Likewise.
74578         * conform/data/fnmatch.h-data: Likewise.
74579         * conform/data/ftw.h-data: Likewise.
74580         * conform/data/glob.h-data: Likewise.
74581         * conform/data/grp.h-data: Likewise.
74582         * conform/data/iconv.h-data: Likewise.
74583         * conform/data/inttypes.h-data: Likewise.
74584         * conform/data/langinfo.h-data: Likewise.
74585         * conform/data/libgen.h-data: Likewise.
74586         * conform/data/limits.h-data: Likewise.
74587         * conform/data/locale.h-data: Likewise.
74588         * conform/data/math.h-data: Likewise.
74589         * conform/data/monetary.h-data: Likewise.
74590         * conform/data/mqueue.h-data: Likewise.
74591         * conform/data/ndbm.h-data: Likewise.
74592         * conform/data/net/if.h-data: Likewise.
74593         * conform/data/netdb.h-data: Likewise.
74594         * conform/data/netinet/in.h-data: Likewise.
74595         * conform/data/nl_types.h-data: Likewise.
74596         * conform/data/poll.h-data: Likewise.
74597         * conform/data/pthread.h-data: Likewise.
74598         * conform/data/pwd.h-data: Likewise.
74599         * conform/data/regex.h-data: Likewise.
74600         * conform/data/sched.h-data: Likewise.
74601         * conform/data/search.h-data: Likewise.
74602         * conform/data/semaphore.h-data: Likewise.
74603         * conform/data/setjmp.h-data: Likewise.
74604         * conform/data/signal.h-data: Likewise.
74605         * conform/data/spawn.h-data: Likewise.
74606         * conform/data/stdarg.h-data: Likewise.
74607         * conform/data/stdio.h-data: Likewise.
74608         * conform/data/stdlib.h-data: Likewise.
74609         * conform/data/string.h-data: Likewise.
74610         * conform/data/strings.h-data: Likewise.
74611         * conform/data/stropts.h-data: Likewise.
74612         * conform/data/sys/ipc.h-data: Likewise.
74613         * conform/data/sys/mman.h-data: Likewise.
74614         * conform/data/sys/msg.h-data: Likewise.
74615         * conform/data/sys/resource.h-data: Likewise.
74616         * conform/data/sys/select.h-data: Likewise.
74617         * conform/data/sys/sem.h-data: Likewise.
74618         * conform/data/sys/shm.h-data: Likewise.
74619         * conform/data/sys/socket.h-data: Likewise.
74620         * conform/data/sys/stat.h-data: Likewise.
74621         * conform/data/sys/statvfs.h-data: Likewise.
74622         * conform/data/sys/time.h-data: Likewise.
74623         * conform/data/sys/timeb.h-data: Likewise.
74624         * conform/data/sys/times.h-data: Likewise.
74625         * conform/data/sys/types.h-data: Likewise.
74626         * conform/data/sys/uio.h-data: Likewise.
74627         * conform/data/sys/un.h-data: Likewise.
74628         * conform/data/sys/utsname.h-data: Likewise.
74629         * conform/data/sys/wait.h-data: Likewise.
74630         * conform/data/syslog.h-data: Likewise.
74631         * conform/data/tar.h-data: Likewise.
74632         * conform/data/termios.h-data: Likewise.
74633         * conform/data/utime.h-data: Likewise.
74634         * conform/data/utmpx.h-data: Likewise.
74635         * conform/data/varargs.h-data: Likewise.
74636         * conform/data/wchar.h-data: Likewise.
74637         * conform/data/wctype.h-data: Likewise.
74638         * conform/data/wordexp.h-data: Likewise.
74639
74640         * include/stropts.h: New file.
74641         * include/uchar.h: New file.
74642         * include/aio.h: Changes to allow conformtest.pl to use the headers.
74643         * include/assert.h: Likewise.
74644         * include/ctype.h: Likewise.
74645         * include/dirent.h: Likewise.
74646         * include/dlfcn.h: Likewise.
74647         * include/fcntl.h: Likewise.
74648         * include/fnmatch.h: Likewise.
74649         * include/glob.h: Likewise.
74650         * include/grp.h: Likewise.
74651         * include/libio.h: Likewise.
74652         * include/locale.h: Likewise.
74653         * include/math.h: Likewise.
74654         * include/net/if.h: Likewise.
74655         * include/netdb.h: Likewise.
74656         * include/netinet/in.h: Likewise.
74657         * include/pthread.h: Likewise.
74658         * include/pwd.h: Likewise.
74659         * include/regex.h: Likewise.
74660         * include/sched.h: Likewise.
74661         * include/search.h: Likewise.
74662         * include/setjmp.h: Likewise.
74663         * include/signal.h: Likewise.
74664         * include/stdio.h: Likewise.
74665         * include/stdlib.h: Likewise.
74666         * include/string.h: Likewise.
74667         * include/sys/cdefs.h: Likewise.
74668         * include/sys/mman.h: Likewise.
74669         * include/sys/msg.h: Likewise.
74670         * include/sys/resource.h: Likewise.
74671         * include/sys/select.h: Likewise.
74672         * include/sys/socket.h: Likewise.
74673         * include/sys/stat.h: Likewise.
74674         * include/sys/statvfs.h: Likewise.
74675         * include/sys/time.h: Likewise.
74676         * include/sys/times.h: Likewise.
74677         * include/sys/uio.h: Likewise.
74678         * include/sys/utsname.h: Likewise.
74679         * include/sys/wait.h: Likewise.
74680         * include/termios.h: Likewise.
74681         * include/time.h: Likewise.
74682         * include/ulimit.h: Likewise.
74683         * include/unistd.h: Likewise.
74684         * include/utime.h: Likewise.
74685         * include/wchar.h: Likewise.
74686         * include/wctype.h: Likewise.
74687         * include/wordexp.h: Likewise.
74688
74689         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
74690
74691         * time/time.h: TIME_UTC must be a macro.
74692         Make timespec_get available for ISO C11 only as well.
74693
74694 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
74695
74696         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
74697         Reported by Peng Haitao <penght@cn.fujitsu.com>.
74698
74699 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
74700
74701         * configure.in: Use -o not -a in test for unsupported multi-arch.
74702
74703 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
74704
74705         * manual/texinfo.tex: Update to version 2012-01-19.16.
74706
74707 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
74708
74709         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
74710
74711 2012-02-24  Roland McGrath  <roland@hack.frob.com>
74712
74713         [BZ #13738]
74714         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
74715         * manual/fdl-1.3.texi: New file.
74716         * manual/fdl-1.1.texi: File removed.
74717
74718         [BZ #13738]
74719         * manual/libc.texinfo (FDL_VERSION): New @set.
74720         Use it for mention of FDL in cover text.
74721         (Documentation License): Use it in @include file name.
74722
74723 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74724             Roland McGrath  <roland@hack.frob.com>
74725
74726         [BZ #5461]
74727         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
74728         (not LONG_LONG_MAX and LONG_LONG_MIN.
74729         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
74730         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
74731         name.
74732         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
74733
74734 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74735
74736         [BZ #2547]
74737         [BZ #11365]
74738         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
74739         manipulate bits before adding and subtracting TWO23[sx].
74740         * math/libm-test.inc (nearbyint_test): Add more tests.
74741
74742 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74743
74744         [BZ #2548]
74745         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
74746         bits before adding and subtracting TWO23[sx].
74747         * math/libm-test.inc (rint_test): Add more tests.
74748         (rint_test_tonearest): Likewise.
74749         (rint_test_towardzero): Likewise.
74750         (rint_test_downward): Likewise.
74751         (rint_test_upward: Likewise.
74752
74753 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74754
74755         [BZ #10110]
74756         * include/stdc-predef.h: New file.  Extracted from features.h.
74757         * include/features.h: Include stdc-predef.h.
74758         * Makefile (headers): Add stdc-predef.h.
74759         * CONFORMANCE (Compiler limitations): Update.
74760
74761 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74762
74763         * manual/libc.texinfo (VERSION, UPDATED): Revert.
74764
74765 2012-02-21  David S. Miller  <davem@davemloft.net>
74766
74767         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
74768         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
74769
74770 2012-02-20  David S. Miller  <davem@davemloft.net>
74771
74772         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
74773         using a normal save/restore sequence, rather than allocating a
74774         dummy stack frame just to store a frame pointer and restore.
74775         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74776
74777 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
74778
74779         * manual/install.texi: Fix stray word in line-wrapped comment.
74780
74781 2012-02-20  David S. Miller  <davem@davemloft.net>
74782
74783         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
74784         both binutils and gcc support GOTDATA.
74785
74786         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
74787         "rd %pc" in the PIC register setup sequences.
74788
74789         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
74790         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
74791         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
74792         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
74793         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
74794         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
74795         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
74796         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74797         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
74798         (SYSCALL_ERROR_HANDLER): Likewise.
74799         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
74800         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
74801         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
74802         (SYSCALL_ERROR_HANDLER): Likewise.
74803
74804         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
74805         (HAVE_GCC_GOTDATA): New.
74806         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
74807         relocation support in both binutils and gcc.
74808         * sysdeps/sparc/elf/configure: Regenerate.
74809
74810         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
74811         * sysdeps/sparc/sparc32/elf/configure: Delete.
74812         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
74813         * sysdeps/sparc/sparc64/elf/configure: Delete.
74814         * sysdeps/sparc/elf/configure.in: New file.
74815         * sysdeps/sparc/elf/configure: Generate.
74816
74817         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
74818         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
74819         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
74820         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
74821         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
74822
74823 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
74824
74825         * manual/install.texi: Do not mention specific glibc version
74826         numbers.
74827         * manual/libc.texinfo (VERSION, UPDATED): Update.
74828         (@copying): Use @copyright{} and range of years.
74829
74830 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
74831
74832         [BZ #13695]
74833         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
74834         [crti.S not in sysdirs] (generated): Do not append.
74835         [crti.S not in sysdirs] (omit-deps): Likewise.
74836         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
74837         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
74838         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
74839         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
74840         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
74841         Likewise.
74842         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
74843         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
74844         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
74845         * csu/defs.awk: Remove file.
74846         * sysdeps/generic/initfini.c: Likewise.
74847         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
74848         variable.
74849         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
74850         Likewise.
74851
74852 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
74853
74854         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
74855         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
74856         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
74857         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
74858         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
74859         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
74860         <bits/epoll.h>.
74861         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
74862         (__EPOLL_PACKED): Define to empty if not defined by
74863         <bits/epoll.h>.
74864         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
74865         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74866         bits/epoll.h.
74867
74868 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
74869
74870         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
74871         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
74872         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
74873         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
74874         <bits/timerfd.h>.
74875         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
74876         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74877         bits/timerfd.h.
74878
74879 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
74880
74881         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
74882         in C locale.
74883         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
74884         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
74885         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
74886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74887
74888 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
74889
74890         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
74891         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
74892
74893 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
74894
74895         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
74896         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
74897         defined.
74898         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
74899         Likewise.
74900         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
74901         entry for 2.16.
74902
74903 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
74904
74905         * math/w_acos.c: Use non-signaling floating-point comparisons.
74906         * math/w_acosf.c: Likewise.
74907         * math/w_acosh.c: Likewise.
74908         * math/w_acoshf.c: Likewise.
74909         * math/w_acoshl.c: Likewise.
74910         * math/w_acosl.c: Likewise.
74911         * math/w_asin.c: Likewise.
74912         * math/w_asinf.c: Likewise.
74913         * math/w_asinl.c: Likewise.
74914         * math/w_atanh.c: Likewise.
74915         * math/w_atanhf.c: Likewise.
74916         * math/w_atanhl.c: Likewise.
74917         * math/w_exp2.c: Likewise.
74918         * math/w_exp2f.c: Likewise.
74919         * math/w_exp2l.c: Likewise.
74920         * math/w_j0.c: Likewise.
74921         * math/w_j0f.c: Likewise.
74922         * math/w_j0l.c: Likewise.
74923         * math/w_j1.c: Likewise.
74924         * math/w_j1f.c: Likewise.
74925         * math/w_j1l.c: Likewise.
74926         * math/w_jn.c: Likewise.
74927         * math/w_jnf.c: Likewise.
74928         * math/w_log.c: Likewise.
74929         * math/w_log10.c: Likewise.
74930         * math/w_log10f.c: Likewise.
74931         * math/w_log10l.c: Likewise.
74932         * math/w_log2.c: Likewise.
74933         * math/w_log2f.c: Likewise.
74934         * math/w_log2l.c: Likewise.
74935         * math/w_logf.c: Likewise.
74936         * math/w_logl.c: Likewise.
74937         * math/w_sqrt.c: Likewise.
74938         * math/w_sqrtf.c: Likewise.
74939         * math/w_sqrtl.c: Likewise.
74940         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
74941         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
74942         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
74943         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
74944         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
74945
74946 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
74947
74948         [BZ #9739]
74949         * manual/string.texi (strnlen): Use correct parameter name in
74950         equivalent expression.
74951
74952 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
74953
74954         [BZ #11174]
74955         * manual/users.texi (seteuid): Consistently use neweuid for
74956         argument name.
74957
74958 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
74959
74960         [BZ #13704]
74961         * manual/nss.texi (Services in the NSS configuration): Correct
74962         list of services in example configuration file.
74963
74964 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
74965
74966         [BZ #11322]
74967         * manual/arith.texi: Remove statements about negative zero
74968         behaving identically to zero.
74969
74970 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
74971
74972         [BZ #5993]
74973         * manual/install.texi: Do not document upgrading from libc5.
74974
74975 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
74976
74977         [BZ #4596]
74978         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
74979
74980 2012-02-18  David S. Miller  <davem@davemloft.net>
74981
74982         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
74983         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
74984         %o7 across the call.
74985         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
74986         instead.
74987         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
74988         SETUP_PIC_REG_LEAF.
74989         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
74990         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
74991         * sysdeps/sparc/crtn.S: Likewise.
74992
74993 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
74994
74995         * aout/Makefile: Remove.
74996
74997 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
74998
74999         [BZ #13058]
75000         * manual/examples/argp-ex1.c (main): Format definition in GNU
75001         style.
75002         * manual/examples/argp-ex2.c (main): Likewise.
75003         * manual/examples/argp-ex3.c (main): Likewise.
75004         * manual/examples/argp-ex4.c (main): Likewise.
75005         * manual/examples/longopt.c (main): Use new-style prototype
75006         definition.
75007         * manual/examples/strncat.c (main): Specify return type and use
75008         (void) for arguments.
75009         * manual/examples/subopt.c (main): Use char **argv argument.
75010
75011 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75012
75013         [BZ #5077]
75014         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
75015         rounding modes.
75016
75017 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
75018
75019         [BZ #6907]
75020         * manual/string.texi (strchr): Change when strchrnul is
75021         recommended.
75022
75023 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
75024
75025         [BZ #174]
75026         * manual/locale.texi (setlocale): Document LOCPATH.
75027
75028 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75029
75030         [BZ #10210]
75031         * manual/process.texi (execle): Move @dots{} before last argument.
75032
75033 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
75034
75035         [BZ #12047]
75036         * manual/charset.texi (Generic Charset Conversion): Fix typo
75037         (LC_TYPE -> LC_CTYPE).
75038
75039 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
75040
75041         [BZ #5805]
75042         * manual/arith.texi (scalbn): Use @var{} on parameter names.
75043         (scalbnf): Likewise.
75044         (scalbnl): Likewise.
75045         (scalbln): Likewise.
75046         (scalblnf): Likewise.
75047         (scalblnl): Likewise.
75048         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
75049         (vwarnx): Likewise.
75050         (verr): Likewise.
75051         (verrx): Likewise.
75052         * manual/filesys.texi (telldir): Use braces around return type.
75053         * manual/llio.texi (mmap): Add space after comma.
75054         (mmap64): Likewise.
75055         * manual/math.texi (jn): Use @var{} on parameter names.
75056         (jnf): Likewise.
75057         (jnl): Likewise.
75058         (yn): Likewise.
75059         (ynf): Likewise.
75060         (ynl): Likewise.
75061         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
75062         line.
75063         * manual/resource.texi (ulimit): Use @dots{} instead of literal
75064         "...".
75065         (sched_get_priority_min): Remove semicolon on @deftypefun line.
75066         (sched_get_priority_max): Likewise.
75067         * manual/signal.texi (sigvec): Add space after comma.
75068         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
75069         names.
75070         (if_indextoname): Likewise.
75071         (if_freenameindex): Likewise.
75072         (sendto): Use ',' instead of '.' in prototype.
75073         * manual/startup.texi (syscall): Use @dots{} instead of literal
75074         "...".
75075         * manual/stdio.texi (__fpending): Separate initial words of
75076         paragraph from @deftypefun line.
75077         * manual/syslog.texi (syslog): Use @dots{} instead of literal
75078         "...".
75079         (vsyslog): Use @var{} on parameter names.
75080         * manual/terminal.texi (stty): Use @var{} on parameter names.
75081         * manual/users.texi (getutmp): Use @var{} on parameter names.
75082         (getutmpx): Likewise.
75083
75084 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75085
75086         [BZ #6884]
75087         * manual/stdio.texi (fopen): Fix typos in description of
75088         ",ccs=STRING".
75089
75090 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
75091
75092         [BZ #4026]
75093         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
75094         get clock_id definition.
75095
75096 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
75097
75098         [BZ #4822]
75099         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
75100         (madvise): Cast every argument to void on its own.
75101
75102 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75103
75104         [BZ #9902]
75105         * manual/startup.texi (Exit Status): Fix typo.
75106
75107 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75108
75109         [BZ #10140]
75110         * manual/examples/argp-ex1.c: Include <stdlib.h>.
75111         * manual/examples/argp-ex2.c: Likewise.
75112         * manual/examples/argp-ex3.c: Likewise.
75113
75114 2012-02-16  Richard Henderson  <rth@redhat.com>
75115
75116         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
75117         * sysdeps/s390/s390-32/initfini.c: Remove.
75118         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
75119         * sysdeps/s390/s390-64/initfini.c: Remove.
75120
75121 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
75122
75123         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
75124         compiler output for sysdeps/generic/initfini.c.
75125         * sysdeps/sh/elf/initfini.c: Remove file.
75126
75127 2012-02-16  David S. Miller  <davem@davemloft.net>
75128
75129         [BZ #11494]
75130         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
75131
75132         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
75133         * sysdeps/sparc/crti.S: New file.
75134         * sysdeps/sparc/crtn.S: New file.
75135         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
75136         * sysdeps/sparc/sparc64/Makefile: Likewise.
75137
75138 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
75139
75140         [BZ #3335]
75141         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
75142
75143 2012-02-15  Roland McGrath  <roland@hack.frob.com>
75144
75145         [BZ #4822]
75146         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
75147
75148         * mach/devstream.c (cookie_io_functions_t): Macro removed.
75149         (write, read, close): Likewise.
75150         Patch by Aurelien Jarno <aurelien@aurel32.net>.
75151
75152 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
75153
75154         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
75155         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
75156         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
75157         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
75158         <bits/signalfd.h>.
75159         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
75160         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75161         bits/signalfd.h.
75162
75163 2012-02-14  Marek Polacek  <polacek@redhat.com>
75164
75165         * sysdeps/x86_64/crti.S: New file.
75166         * sysdeps/x86_64/crtn.S: New file.
75167         * sysdeps/x86_64/elf/initfini.c: Remove file.
75168
75169 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75170
75171         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
75172         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
75173         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
75174         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
75175         <bits/inotify.h>.
75176         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
75177         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75178         bits/inotify.h.
75179
75180 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75181
75182         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
75183         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
75184         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
75185         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
75186         <bits/eventfd.h>.
75187         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
75188         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75189         bits/eventfd.h.
75190
75191 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
75192
75193         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
75194         __feraiseexcept instead of feraiseexcept.
75195
75196         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
75197         nanosleep invocations.
75198         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
75199         strings, and add error checking for a nanosleep invocations.
75200
75201 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
75202
75203         Replace FSF snail mail address with URLs, as per GNU coding standards.
75204         Most of the snail mail addresses were wrong anyway, and omitting
75205         them makes the source code easier to maintain.  Almost all of the
75206         changes are to license notices and to locale LC_IDENTIFICATION
75207         addresses, except for this one:
75208         * manual/libc.texinfo: In "Published by", give the FSF's URL,
75209         not its snail mail address.
75210
75211 2012-02-09  Richard Henderson  <rth@twiddle.net>
75212
75213         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
75214         of kernel-features.h.
75215
75216         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
75217
75218 2012-02-08  Marek Polacek  <polacek@redhat.com>
75219
75220         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
75221         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
75222         * sysdeps/gnu/_G_config.h: Likewise.
75223         * sysdeps/generic/_G_config.h: Likewise.
75224
75225 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
75226
75227         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
75228         tests.
75229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75230
75231         * sysdeps/powerpc/powerpc32/crti.S: New file.
75232         * sysdeps/powerpc/powerpc32/crtn.S: New file.
75233         * sysdeps/powerpc/powerpc64/crti.S: New file.
75234         * sysdeps/powerpc/powerpc64/crtn.S: New file.
75235
75236         * Makeconfig (have-initfini): Don't set.
75237         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
75238         * configure.in (nopic_initfini): Don't substitute.
75239         * config.h.in (HAVE_INITFINI): Don't #undef.
75240         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
75241         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
75242
75243 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
75244
75245         Support crti.S and crtn.S provided directly by architectures.
75246         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
75247         [crti.S in sysdirs] (omit-deps): Likewise.
75248         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
75249         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
75250         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
75251         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
75252         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
75253         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
75254         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
75255         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
75256         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
75257         compiler output for sysdeps/generic/initfini.c.
75258         * sysdeps/i386/elf/Makefile: Remove file.
75259         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
75260
75261 2012-02-07  Marek Polacek  <polacek@redhat.com>
75262
75263         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
75264         * sysdeps/gnu/_G_config.h: Likewise.
75265         * sysdeps/mach/hurd/_G_config.h: Likewise.
75266
75267 2012-02-07  Marek Polacek  <polacek@redhat.com>
75268
75269         * math/Makefile (tests): Add tst-CMPLX2.
75270         * math/tst-CMPLX2.c: New file.
75271
75272 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
75273
75274         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75275
75276         * math/libm-test.inc (jn_test): Add missing L suffix.
75277
75278 2012-02-06  Marek Polacek  <polacek@redhat.com>
75279
75280         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
75281         * sysdeps/i386/fpu/e_powf.S: Likewise.
75282         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
75283         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
75284         * sysdeps/i386/fpu/e_acosh.S: Likewise.
75285         * sysdeps/i386/fpu/e_pow.S: Likewise.
75286         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
75287         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
75288         * sysdeps/i386/fpu/s_expm1.S: Likewise.
75289         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
75290         * sysdeps/i386/fpu/e_log2.S: Likewise.
75291         * sysdeps/i386/fpu/e_log2l.S: Likewise.
75292         * sysdeps/i386/fpu/e_scalb.S: Likewise.
75293         * sysdeps/i386/fpu/e_powl.S: Likewise.
75294         * sysdeps/i386/fpu/s_log1p.S: Likewise.
75295         * sysdeps/i386/fpu/e_log10f.S: Likewise.
75296         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
75297         * sysdeps/i386/fpu/e_logl.S: Likewise.
75298         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
75299         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
75300         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
75301         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
75302         * sysdeps/i386/fpu/e_log2f.S: Likewise.
75303         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
75304         * sysdeps/i386/fpu/e_log.S: Likewise.
75305         * sysdeps/i386/fpu/s_cexp.S: Likewise.
75306         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
75307         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
75308         * sysdeps/i386/fpu/e_logf.S: Likewise.
75309         * sysdeps/i386/fpu/e_log10l.S: Likewise.
75310         * sysdeps/i386/fpu/e_atanh.S: Likewise.
75311         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
75312         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
75313         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
75314         * sysdeps/i386/fpu/e_log10.S: Likewise.
75315         * sysdeps/i386/fpu/s_frexp.S: Likewise.
75316         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
75317         * sysdeps/i386/fpu/s_asinh.S: Likewise.
75318         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
75319         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
75320         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
75321         * sysdeps/i386/asm-syntax.h: Likewise.
75322         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
75323         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
75324         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
75325         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
75326         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
75327         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
75328         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
75329         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
75330         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
75331         * sysdeps/powerpc/sysdep.h: Likewise.
75332         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
75333         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
75334
75335 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75336
75337         [BZ #411]
75338         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
75339
75340 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75341
75342         * sysdeps/i386/sysdep.h: Include <features.h>.
75343         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
75344         version.
75345
75346 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
75347
75348         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
75349         Define.
75350         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
75351         LOAD_PIC_REG_STR.
75352
75353 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75354
75355         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
75356         (SETUP_PIC_REG): Use GET_PC_THUNK.
75357         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
75358         macro.
75359
75360 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75361
75362         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
75363         for non-PIC compilation.
75364         (SETUP_PIC_REG): Add .p2align directive.
75365         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
75366         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
75367         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
75368         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
75369         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
75370         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
75371         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
75372         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75373         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
75374         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
75375         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
75376         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
75377         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
75378         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
75379         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
75380         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
75381         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
75382         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
75383         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
75384         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
75385         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
75386         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
75387         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
75388         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
75389         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
75390         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
75391         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
75392         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
75393         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
75394         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
75395         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
75396         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
75397         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
75398         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
75399         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
75400         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
75401         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
75402         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
75403         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
75404         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
75405         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
75406
75407 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75408
75409         * math/tst-CMPLX.c: Include <stdio.h>.
75410
75411 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
75412
75413         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
75414         float.
75415         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
75416         * sysdeps/sparc/bits/mathdef.h: Likewise.
75417
75418 2012-01-31  Marek Polacek  <polacek@redhat.com>
75419
75420         * libio/libio.h: Don't define _PARAMS.
75421         * locale/programs/config.h: Don't define PARAMS.
75422         * stdlib/strtol_l.c: Likewise.
75423         (__strtol_l): Remove PARAMS from the prototype.
75424
75425 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
75426
75427         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
75428         names.  Just use the correct names.  Remove unnecessary wrapper
75429         functions.
75430         * malloc/arena.c: Likewise.
75431         * malloc/hooks.c: Likewise.
75432
75433         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
75434         ARENA_TEST says not to.  Simplify test for creation of a new arena.
75435         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
75436
75437 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
75438
75439         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
75440         into tail calls.
75441         (update_get_addr): New function.
75442         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
75443         GET_ADDR_MODULE parameter.
75444
75445 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75446
75447         * crypt/cert.c: Remove __STDC__ conditionals.
75448         * crypt/crypt-entry.c: Likewise.
75449         * crypt/crypt_util.c: Likewise.
75450         * libio/filedoalloc.c: Likewise.
75451         * libio/fileops.c: Likewise.
75452         * libio/genops.c: Likewise.
75453         * libio/iofclose.c: Likewise.
75454         * libio/iofdopen.c: Likewise.
75455         * libio/iofopen.c: Likewise.
75456         * libio/iofopen64.c: Likewise.
75457         * libio/iogetdelim.c: Likewise.
75458         * libio/iopopen.c: Likewise.
75459         * libio/obprintf.c: Likewise.
75460         * libio/oldfileops.c: Likewise.
75461         * libio/oldiofclose.c: Likewise.
75462         * libio/oldiofdopen.c: Likewise.
75463         * libio/oldiofopen.c: Likewise.
75464         * libio/oldiopopen.c: Likewise.
75465         * libio/wfiledoalloc.c: Likewise.
75466         * libio/wgenops.c: Likewise.
75467         * locale/programs/xmalloc.c: Likewise.
75468         * misc/syslog.c: Likewise.
75469         * stdio-common/xbug.c: Likewise.
75470         * string/memchr.c: Likewise.
75471         * string/memcmp.c: Likewise.
75472         * string/memrchr.c: Likewise.
75473         * string/rawmemchr.c: Likewise.
75474         * sysdeps/posix/getcwd.c: Likewise.
75475         * time/strftime_l.c: Likewise.
75476
75477 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75478
75479         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
75480         * config.make.in (config-cflags-sse2avx): Define.
75481         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
75482         Fix typo.
75483
75484 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
75485
75486         * scripts/config.guess: Update from upstream config git repository.
75487         * scripts/config.sub: Likewise.
75488
75489 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
75490
75491         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
75492         (EM_NUM): Update.
75493         (R_TILEPRO_*, R_TILEGX_*): New macros.
75494
75495         * scripts/firstversions.awk: Fix bug in version range handling.
75496
75497         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
75498
75499         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
75500
75501         * include/sys/epoll.h: New file.
75502         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
75503         libc_hidden_def.
75504
75505 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
75506
75507         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
75508         Avoid unnecessary __WORDSIZE == 64 test.
75509         (fmaxf): Use VEX format if possible.
75510         (fmax): Likewise.
75511         (fminf): Likewise.
75512         (fmin): Likewise.
75513
75514         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
75515         * math/math_private.h: Remove libc_fegetround* and
75516         libc_fesetround*.
75517         * sysdeps/i386/configure.in: Check for -msse2avx.
75518         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
75519         also if SSE2AVX is defined.
75520         Remove libc_fegetround* and libc_fesetround*.
75521         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
75522         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
75523         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
75524         of HAS_YMM_USABLE.
75525         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
75526         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
75527         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
75528         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
75529         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
75530
75531         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
75532
75533 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75534
75535         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
75536         size is not set.
75537         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75538
75539 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
75540
75541         [BZ #13618]
75542         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
75543         relocation.
75544         * Makeconfig (libm): Define.
75545         * elf/Makefile: Add rules to build and run tst-relsort1.
75546         * elf/tst-relsort1.c: New file.
75547         * elf/tst-relsort1mod1.c: New file.
75548         * elf/tst-relsort1mod2.c: New file.
75549
75550 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
75551
75552         * math/s_ldexp.c: Remove __STDC__ conditionals.
75553         * math/s_ldexpf.c: Likewise.
75554         * math/s_ldexpl.c: Likewise.
75555         * math/s_nextafter.c: Likewise.
75556         * math/s_nexttowardf.c: Likewise.
75557         * math/s_significand.c: Likewise.
75558         * math/s_significandf.c: Likewise.
75559         * math/s_significandl.c: Likewise.
75560         * math/w_jnl.c: Likewise.
75561         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
75562         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
75563         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
75564         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
75565         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
75566         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
75567         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
75568         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
75569         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
75570         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
75571         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
75572         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
75573         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
75574         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
75575         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
75576         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
75577         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
75578         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
75579         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
75580         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
75581         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
75582         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
75583         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
75584         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
75585         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
75586         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
75587         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
75588         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
75589         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
75590         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
75591         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
75592         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
75593         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
75594         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
75595         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
75596         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
75597         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
75598         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
75599         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
75600         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
75601         * sysdeps/ieee754/k_standard.c: Likewise.
75602         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
75603         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
75604         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
75605         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
75606         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
75607         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
75608         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
75609         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
75610         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
75611         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
75612         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
75613         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
75614         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
75615         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
75616         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
75617         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
75618         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
75619         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
75620         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
75621         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
75622         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
75623         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
75624         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
75625         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
75626         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
75627         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
75628         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
75629         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
75630         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
75631         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
75632         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
75633         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
75634         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
75635         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
75636         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
75637         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
75638         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
75639         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
75640         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
75641         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
75642         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
75643         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
75644         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
75645         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
75646         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
75647         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
75648         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
75649         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
75650         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
75651         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
75652         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
75653         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
75654         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
75655         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
75656         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
75657         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
75658         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
75659         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
75660         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
75661         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
75662         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
75663         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
75664         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
75665         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
75666         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
75667         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
75668         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
75669         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
75670         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
75671         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
75672         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
75673         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
75674         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
75675         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
75676         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
75677         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
75678         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
75679         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
75680         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
75681         * sysdeps/ieee754/s_matherr.c: Likewise.
75682         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
75683         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
75684         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
75685         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
75686
75687 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
75688
75689         * crypt/md5.h: Remove __STDC__ conditionals.
75690         * libio/libioP.h: Likewise.
75691         * locale/programs/config.h: Likewise.
75692         * sysdeps/generic/sysdep.h: Likewise.
75693         * sysdeps/i386/asm-syntax.h: Likewise.
75694         * sysdeps/s390/asm-syntax.h: Likewise.
75695         * sysdeps/unix/sysdep.h: Likewise.
75696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
75697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
75698
75699 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
75700
75701         * libio/libio.h: Remove __STDC__ conditionals.
75702         * malloc/obstack.h: Likewise.
75703         * math/complex.h: Likewise.
75704         * math/math.h: Likewise.
75705         * sysdeps/generic/_G_config.h: Likewise.
75706         * sysdeps/gnu/_G_config.h: Likewise.
75707         * sysdeps/mach/hurd/_G_config.h: Likewise.
75708         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75709         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
75710         * sysdeps/sparc/bits/mathdef.h: Likewise.
75711
75712 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
75713
75714         [BZ #13583]
75715         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
75716         Clean up HAS_* macros.
75717         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
75718         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
75719         possible.
75720         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
75721         HAS_AVX.
75722         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
75723         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
75724         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
75725         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
75726         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
75727
75728 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
75729
75730         * elf/tst-unique3.cc (gets): Remove declaration.
75731         * elf/tst-unique3lib.cc (gets): Likewise.
75732         * elf/tst-unique3lib2.cc (gets): Likewise.
75733         * elf/tst-unique4.cc (gets): Likewise.
75734
75735 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
75736
75737         * include/stdio.h: Add C++ protection.  Add gets declarations and
75738         definitions.
75739         * debug/tst-chk1.c: Don't declare gets here.
75740         * stdio-common/tst-gets.c: Likewise.
75741
75742 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
75743
75744         * posix/glob: Remove directory.
75745
75746 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
75747
75748         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
75749
75750 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
75751
75752         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
75753         of the non-standard EPFNOSUPPORT.
75754
75755 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75756
75757         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
75758         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
75759         ANYWHERE set to 1 only on KERN_NO_SPACE error.
75760
75761 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
75762
75763         * wcsmbs/uchar.h: Test __STDC_VERSION__.
75764
75765 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
75766
75767         * nscd/aicache.c (addhstaiX): Do not cache negative results of
75768         transient errors.
75769         * nscd/grpcache.c (cache_addgr): Likewise.
75770         * nscd/hstcache.c (cache_addhst): Likewise.
75771         * nscd/initgrcache.c (addinitgroupsX): Likewise.
75772         * nscd/pwdcache.c (cache_addpw): Likewise.
75773         * nscd/servicescache.c (cache_addserv): Likewise.
75774
75775 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
75776
75777         * malloc/malloc.c: Various cleanups.
75778         * malloc/hooks.c: Likewise.
75779
75780         * stdlib/Makefile (tests): Add bug-fmtmsg1.
75781         * stdlib/bug-fmtmsg1.c: New file.
75782
75783         * stdlib/fmtmsg.c (init): Add missing unlock.
75784         Patch by Peng Haitao <penght@cn.fujitsu.com>.
75785
75786 2012-01-12  Marek Polacek  <polacek@redhat.com>
75787
75788         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
75789         and _GNU_SOURCE.
75790
75791 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
75792
75793         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
75794         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
75795         macro to ensure uniqueness of label name.
75796         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
75797         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
75798
75799 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
75800
75801         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
75802
75803         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
75804         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
75805         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
75806         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
75807
75808 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
75809
75810         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
75811
75812         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
75813         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
75814         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
75815
75816         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
75817
75818         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
75819         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
75820         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
75821         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
75822
75823         * math/bits/math-finite.h: Add ldexp support.
75824
75825 2012-01-10  Marek Polacek  <polacek@redhat.com>
75826
75827         * locale/programs/localedef.h (show_archive_content): Add noreturn
75828         attribute.
75829
75830 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
75831
75832         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
75833
75834 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
75835
75836         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
75837
75838         * io/Makefile (headers): Add bits/poll2.h.
75839
75840 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
75841
75842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
75843         typo #include statement.
75844
75845 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
75846
75847         * include/sys/cdefs.h: Define __attribute_alloc_size.
75848         * catgets/gencat.c: Add alloc_size attribute and apply consistently
75849         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
75850         * elf/pldd.c: Likewise.
75851         * iconv/iconv_charmap.c: Likewise.
75852         * iconv/iconvconfig.c: Likewise.
75853         * iconv/strtab.c: Likewise.
75854         * locale/programs/locale.c: Likewise.
75855         * locale/programs/localedef.h: Likewise.
75856         * locale/programs/simple-hash.c: Likewise.
75857         * nscd/nscd.h: Likewise.
75858         * nss/makedb.c: Likewise.
75859         * sysdeps/generic/ldconfig.h: Likewise.
75860         * locale/programs/localedef.c: Remove xmalloc prototype.
75861         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
75862
75863 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75864
75865         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
75866         appropriate.
75867
75868 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
75869
75870         * math/Makefile (tests): Add tst-CMPLX.
75871         * math/tst-CMPLX.c: New file.
75872
75873         * math/complex.h (CMPLXL): Fix typo.
75874
75875         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
75876         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
75877         GLIBC_2.16.
75878         * debug/tst-chk1.c: Add poll and ppoll tests.
75879         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
75880         * include/sys/poll.h: Add hidden proto for ppoll.
75881         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
75882         * sysdeps/mach/hurd/ppoll.c: Likewise.
75883         * io/ppoll.c: Likewise.
75884         * debug/poll_chk.c: New file.
75885         * debug/ppoll_chk.c: New file.
75886         * include/bits/poll2.h: New file.
75887         * io/bits/poll2.h: New file.
75888
75889         [BZ #1350]
75890         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
75891
75892         * configure.in: static is always set to yes.  Remove.
75893         * config.make.in: Don't set build-static.
75894         * Makeconfig: Remove use of build-static.
75895         * dlfcn/Makefile: Likewise.
75896         * elf/Makefile: Likewise.
75897         * math/Makefile: Likewise.
75898         * misc/Makefile: Likewise.
75899         * nptl/Makefile: Likewise.
75900         * sysdeps/mach/hurd/Makefile: Likewise.
75901
75902         * configure.in: PWD_P is not used anymore.
75903         * config.make.in: Remove PWD_P entry.
75904
75905         * configure.in: Remove last remnants of RANLIB.
75906         No need to check for signed size_t anymore.
75907         Don't set libc_commonpagesize and libc_relro_required here for Alpha
75908         and IA-64.
75909         Remove __builtin_expect test because we require at least gcc 3.4.
75910         * aclocal.m4: Likewise.
75911
75912         * wcsmbs/mbrtoc16.c: Implement using towc function.
75913         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
75914         * wcsmbs/wcsmbsload.c: Likewise.
75915         * iconv/gconv_simple.c: Likewise.
75916         * iconv/gconv_int.h: Likewise.
75917         * iconv/gconv_builtin.h: Likewise.
75918         * iconv/iconv_prog.c: Remove CHAR16 handling.
75919
75920         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
75921
75922         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
75923
75924         * configure.in: Remove --with-elf and --enable-bounded options.
75925         Dont set base_machine for ia64.  More non-ELF conditions removed.
75926         Remove testing and setting of leading underscore information.
75927         * config.make.in (build-bounded): Set to no.
75928         * config.h.in: Remove NO_UNDERSCORES entry.
75929         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
75930         them.
75931         * csu/start.c: Remove !NO_UNDERSCORE code.
75932         * locale/localeinfo.h: Likewise.
75933         * sysdeps/generic/machine-gmon.h: Likewise.
75934         * sysdeps/generic/sysdep.h: Likewise.
75935         * sysdeps/i386/sysdep.h: Likewise.
75936         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
75937         * sysdeps/mach/sysdep.h: Likewise.
75938         * sysdeps/s390/s390-32/sysdep.h: Likewise.
75939         * sysdeps/s390/s390-64/sysdep.h: Likewise.
75940         * sysdeps/sh/sysdep.h: Likewise.
75941         * sysdeps/sparc/sparc32/alloca.S: Likewise.
75942         * sysdeps/unix/i386/sysdep.S: Likewise.
75943         * sysdeps/unix/sparc/start.c: Likewise.
75944         * sysdeps/unix/sparc/sysdep.S: Likewise.
75945         * sysdeps/unix/sparc/sysdep.h: Likewise.
75946         * sysdeps/unix/start.c: Likewise.
75947         * sysdeps/unix/x86_64/sysdep.S: Likewise.
75948         * sysdeps/x86_64/sysdep.h: Likewise.
75949
75950 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
75951
75952         [BZ #13553]
75953         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
75954         for non-gcc.
75955         * argp/argp-fmtstream.h: Use const instead __const.
75956         * argp/argp.h: Likewise.
75957         * assert/assert.h: Likewise.
75958         * bits/fenv.h: Likewise.
75959         * bits/sched.h: Likewise.
75960         * bits/sigset.h: Likewise.
75961         * bits/sigthread.h: Likewise.
75962         * catgets/nl_types.h: Likewise.
75963         * conform/data/pthread.h-data: Likewise.
75964         * crypt/crypt-private.h: Likewise.
75965         * crypt/crypt.h: Likewise.
75966         * crypt/crypt_util.c: Likewise.
75967         * ctype/ctype.h: Likewise.
75968         * debug/execinfo.h: Likewise.
75969         * debug/mbsnrtowcs_chk.c: Likewise.
75970         * debug/mbsrtowcs_chk.c: Likewise.
75971         * debug/wcsnrtombs_chk.c: Likewise.
75972         * debug/wcsrtombs_chk.c: Likewise.
75973         * debug/wcstombs_chk.c: Likewise.
75974         * dirent/dirent.h: Likewise.
75975         * dlfcn/dlfcn.h: Likewise.
75976         * elf/neededtest4.c: Likewise.
75977         * grp/grp.h: Likewise.
75978         * gshadow/gshadow.h: Likewise.
75979         * iconv/gconv.h: Likewise.
75980         * iconv/gconv_int.h: Likewise.
75981         * iconv/gconv_simple.c: Likewise.
75982         * iconv/iconv.h: Likewise.
75983         * iconv/loop.c: Likewise.
75984         * iconv/skeleton.c: Likewise.
75985         * include/aio.h: Likewise.
75986         * include/aliases.h: Likewise.
75987         * include/argz.h: Likewise.
75988         * include/arpa/inet.h: Likewise.
75989         * include/assert.h: Likewise.
75990         * include/dirent.h: Likewise.
75991         * include/dlfcn.h: Likewise.
75992         * include/execinfo.h: Likewise.
75993         * include/fcntl.h: Likewise.
75994         * include/fenv.h: Likewise.
75995         * include/glob.h: Likewise.
75996         * include/grp.h: Likewise.
75997         * include/libintl.h: Likewise.
75998         * include/mntent.h: Likewise.
75999         * include/netdb.h: Likewise.
76000         * include/pwd.h: Likewise.
76001         * include/rpc/netdb.h: Likewise.
76002         * include/sched.h: Likewise.
76003         * include/search.h: Likewise.
76004         * include/shadow.h: Likewise.
76005         * include/signal.h: Likewise.
76006         * include/stdio.h: Likewise.
76007         * include/stdlib.h: Likewise.
76008         * include/string.h: Likewise.
76009         * include/sys/socket.h: Likewise.
76010         * include/sys/stat.h: Likewise.
76011         * include/sys/statfs.h: Likewise.
76012         * include/sys/statvfs.h: Likewise.
76013         * include/sys/syslog.h: Likewise.
76014         * include/sys/time.h: Likewise.
76015         * include/sys/uio.h: Likewise.
76016         * include/time.h: Likewise.
76017         * include/unistd.h: Likewise.
76018         * include/utmp.h: Likewise.
76019         * include/wchar.h: Likewise.
76020         * include/wctype.h: Likewise.
76021         * inet/aliases.h: Likewise.
76022         * inet/arpa/inet.h: Likewise.
76023         * inet/netinet/ether.h: Likewise.
76024         * inet/netinet/in.h: Likewise.
76025         * intl/libintl.h: Likewise.
76026         * io/bits/fcntl2.h: Likewise.
76027         * io/fcntl.h: Likewise.
76028         * io/ftw.h: Likewise.
76029         * io/sys/poll.h: Likewise.
76030         * io/sys/stat.h: Likewise.
76031         * io/sys/statfs.h: Likewise.
76032         * io/sys/statvfs.h: Likewise.
76033         * io/utime.h: Likewise.
76034         * libio/bits/stdio.h: Likewise.
76035         * libio/bits/stdio2.h: Likewise.
76036         * libio/libio.h: Likewise.
76037         * libio/libioP.h: Likewise.
76038         * libio/stdio.h: Likewise.
76039         * locale/lc-ctype.c: Likewise.
76040         * locale/locale.h: Likewise.
76041         * login/utmp.h: Likewise.
76042         * malloc/arena.c: Likewise.
76043         * malloc/malloc.c: Likewise.
76044         * malloc/malloc.h: Likewise.
76045         * malloc/mcheck.c: Likewise.
76046         * malloc/mtrace.c: Likewise.
76047         * math/bits/mathcalls.h: Likewise.
76048         * math/fenv.h: Likewise.
76049         * math/math_private.h: Likewise.
76050         * misc/bits/error.h: Likewise.
76051         * misc/bits/syslog.h: Likewise.
76052         * misc/err.h: Likewise.
76053         * misc/error.h: Likewise.
76054         * misc/fstab.h: Likewise.
76055         * misc/mntent.h: Likewise.
76056         * misc/regexp.h: Likewise.
76057         * misc/search.h: Likewise.
76058         * misc/sgtty.h: Likewise.
76059         * misc/sys/mman.h: Likewise.
76060         * misc/sys/syslog.h: Likewise.
76061         * misc/sys/uio.h: Likewise.
76062         * misc/sys/xattr.h: Likewise.
76063         * misc/ttyent.h: Likewise.
76064         * nis/rpcsvc/ypclnt.h: Likewise.
76065         * nss/nss.h: Likewise.
76066         * posix/bits/unistd.h: Likewise.
76067         * posix/fnmatch.h: Likewise.
76068         * posix/glob.h: Likewise.
76069         * posix/sched.h: Likewise.
76070         * posix/spawn.h: Likewise.
76071         * posix/sys/wait.h: Likewise.
76072         * posix/unistd.h: Likewise.
76073         * posix/wordexp.h: Likewise.
76074         * pwd/pwd.h: Likewise.
76075         * resolv/netdb.h: Likewise.
76076         * resource/sys/resource.h: Likewise.
76077         * rt/aio.h: Likewise.
76078         * rt/bits/mqueue2.h: Likewise.
76079         * rt/mqueue.h: Likewise.
76080         * shadow/shadow.h: Likewise.
76081         * signal/signal.h: Likewise.
76082         * socket/send.c: Likewise.
76083         * socket/sendto.c: Likewise.
76084         * socket/sys/socket.h: Likewise.
76085         * stdio-common/printf.h: Likewise.
76086         * stdlib/bits/stdlib.h: Likewise.
76087         * stdlib/fmtmsg.h: Likewise.
76088         * stdlib/monetary.h: Likewise.
76089         * stdlib/stdlib.h: Likewise.
76090         * stdlib/ucontext.h: Likewise.
76091         * streams/stropts.h: Likewise.
76092         * string/argz.h: Likewise.
76093         * string/bits/string2.h: Likewise.
76094         * string/string.h: Likewise.
76095         * string/strings.h: Likewise.
76096         * sunrpc/rpc/auth.h: Likewise.
76097         * sunrpc/rpc/auth_des.h: Likewise.
76098         * sunrpc/rpc/clnt.h: Likewise.
76099         * sunrpc/rpc/netdb.h: Likewise.
76100         * sunrpc/rpc/pmap_clnt.h: Likewise.
76101         * sunrpc/rpc/xdr.h: Likewise.
76102         * sysdeps/generic/inttypes.h: Likewise.
76103         * sysdeps/generic/net/if.h: Likewise.
76104         * sysdeps/generic/sys/swap.h: Likewise.
76105         * sysdeps/gnu/net/if.h: Likewise.
76106         * sysdeps/gnu/utmpx.h: Likewise.
76107         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
76108         * sysdeps/i386/i486/bits/string.h: Likewise.
76109         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
76110         * sysdeps/s390/bits/string.h: Likewise.
76111         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
76112         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
76113         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
76114         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
76115         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
76116         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
76117         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
76118         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
76119         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
76120         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
76121         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
76122         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
76123         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
76124         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
76125         * sysdeps/unix/sysv/linux/readv.c: Likewise.
76126         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
76127         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
76128         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
76129         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
76130         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
76131         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76132         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
76133         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
76134         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
76135         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
76136         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
76137         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
76138         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76139         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
76140         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
76141         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
76142         * sysvipc/sys/ipc.h: Likewise.
76143         * sysvipc/sys/msg.h: Likewise.
76144         * sysvipc/sys/sem.h: Likewise.
76145         * sysvipc/sys/shm.h: Likewise.
76146         * termios/termios.h: Likewise.
76147         * time/sys/time.h: Likewise.
76148         * time/time.h: Likewise.
76149         * wcsmbs/bits/wchar2.h: Likewise.
76150         * wcsmbs/uchar.h: Likewise.
76151         * wcsmbs/wchar.h: Likewise.
76152         * wctype/wctype.h: Likewise.
76153
76154         [BZ #13551]
76155         * Makeconfig: Remove all but ELF support including AIX support.
76156         * Makerules: Likewise.
76157         * config.h.in: Likewise.
76158         * config.make.in: Likewise.
76159         * configure: Likewise.
76160         * configure.in: Likewise.
76161         * csu/Makefile: Likewise.
76162         * csu/version.c: Likewise.
76163         * debug/Makefile: Likewise.
76164         * dlfcn/Makefile: Likewise.
76165         * elf/Makefile: Likewise.
76166         * extra-lib.mk: Likewise.
76167         * iconv/Makefile: Likewise.
76168         * include/libc-symbols.h: Likewise.
76169         * include/shlib-compat.h: Likewise.
76170         * resolv/Makefile: Likewise.
76171         * resolv/res_libc.c: Likewise.
76172         * rt/Makefile: Likewise.
76173         * sysdeps/i386/asm-syntax.h: Likewise.
76174         * sysdeps/i386/sysdep.h: Likewise.
76175         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76176         * sysdeps/mach/sysdep.h: Likewise.
76177         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
76178         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
76179         * sysdeps/s390/asm-syntax.h: Likewise.
76180         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76181         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76182         * sysdeps/sh/sysdep.h: Likewise.
76183         * sysdeps/unix/sparc/sysdep.h: Likewise.
76184         * sysdeps/wordsize-32/divdi3.c: Likewise.
76185         * sysdeps/x86_64/sysdep.h: Likewise.
76186
76187         * argp/Versions: Remove _argp_unlock_xxx.
76188
76189         [BZ #13559]
76190         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
76191         * abilist/libBrokenLocale.abilist: Likewise.
76192         * abilist/libanl.abilist: Likewise.
76193         * abilist/libc.abilist: Likewise.
76194         * abilist/libcrypt.abilist: Likewise.
76195         * abilist/libdl.abilist: Likewise.
76196         * abilist/libm.abilist: Likewise.
76197         * abilist/libnsl.abilist: Likewise.
76198         * abilist/libpthread.abilist: Likewise.
76199         * abilist/libresolv.abilist: Likewise.
76200         * abilist/librt.abilist: Likewise.
76201         * abilist/libthread_db.abilist: Likewise.
76202         * abilist/libutil.abilist: Likewise.
76203         * abilist/libnss_db.abilist: New file.
76204
76205         * scripts/abilist.awk: Add support for indirect functions.
76206
76207         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
76208
76209         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
76210
76211         * shlib-versions: Remove entries for ports architectures.
76212
76213         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
76214         files in ports.
76215         * elf/stackguard-macros.h: Remove support for IA-64.
76216         * elf/tst-auditmod1.c: Likewise.
76217         * sysdeps/generic/ldsodefs.h: Likewise.
76218
76219         * sysdeps/unix/sysv/linux/configure.in: Ports should define
76220         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
76221         configure files.
76222
76223         [BZ #13552]
76224         * configure.in: Remove --enable-omitfp support.
76225         * FAQ.in: Adjust.
76226         * config.make.in: Likewise.
76227         * Makeconfig: Likewise.
76228         * manual/install.texi: Likewise.
76229
76230         In case anyone cares, the IA-64 architecture could move to ports.
76231         * sysdeps/ia64/*: Removed.
76232         * sysdeps/unix/sysv/linux/ia64/*: Removed.
76233         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
76234
76235         [BZ #13555]
76236         * configure.in: Remove entries for unsupported architectures.
76237
76238         [BZ #13533]
76239         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
76240         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
76241         routines.
76242         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
76243         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
76244         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
76245         fall back to using wcrtomb.
76246         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
76247         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
76248         renaming.
76249         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
76250         * wcsmbs/tst-c16c32-1.c: New file.
76251
76252         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
76253         local variable.
76254
76255         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
76256
76257         * elf/tst-unique3.cc: Add explicit declaration of gets.
76258         * elf/tst-unique3lib.cc: Likewise.
76259         * elf/tst-unique3lib2.cc: Likewise.
76260         * elf/tst-unique4.cc: Likewise.
76261
76262         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
76263
76264 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
76265
76266         [BZ #13566]
76267         * assert/assert.h (static_assert): Don't define for C++.
76268         * libio/stdio.h (gets): Do declare for C++ <= C++11.
76269         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
76270
76271 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
76272
76273         * iconv/loop.c (single loop): Fix assertion in storing of
76274         remaining bytes.
76275
76276         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
76277
76278 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
76279
76280         * posix/getconf.c: Update copyright year.
76281         * nss/getent.c: Likewise.
76282         * nss/makedb.c: Likewise.
76283         * iconv/iconvconfig.c: Likewise.
76284         * iconv/iconv_prog.c: Likewise.
76285         * elf/ldconfig.c: Likewise.
76286         * elf/pldd.c: Likewise.
76287         * elf/sotruss.ksh: Likewise.
76288         * catgets/gencat.c: Likewise.
76289         * csu/version.c: Likewise.
76290         * elf/ldd.bash.in: Likewise.
76291         * elf/sprof.c (print_version): Likewise.
76292         * locale/programs/locale.c: Likewise.
76293         * locale/programs/localedef.c: Likewise.
76294         * login/programs/pt_chown.c: Likewise.
76295         * nscd/nscd.c (print_version): Likewise.
76296         * debug/xtrace.sh: Likewise.
76297         * malloc/memusage.sh: Likewise.
76298         * malloc/mtrace.pl: Likewise.
76299         * debug/catchsegv.sh: Likewise.
76300
76301 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
76302
76303         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
76304         pure attribute.
76305
76306 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
76307
76308         [BZ #13533]
76309         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
76310         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
76311         transformations.
76312         * iconv/gconv_int.h: Likewise.
76313         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
76314         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
76315         from libc for GLIBC_2.16.
76316         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
76317         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
76318         * wcsmbs/uchar.h: Really define mbstate_t.
76319         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
76320         * wcsmbs/c16rtomb.c: New file.
76321         * wcsmbs/mbrtoc16.c: New file.
76322         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
76323         for C/POSIX locale.
76324         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
76325         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
76326
76327         * wcsmbs/wchar.h: Add missing __restrict.
76328
76329 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76330
76331         [BZ #13532]
76332         * time/Makefile (routines): Add timespec_get.
76333         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
76334         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
76335         timespec for ISO C11.
76336         * time/timespec_get.c: New file.
76337         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
76338         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
76339
76340         [BZ #13531]
76341         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
76342         * stdlib/stdlib.h: Declare aligned_alloc.
76343         * Versions.def: Add GLIBC_2.16 for libc.
76344         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
76345
76346         [BZ 13527]
76347         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
76348         ISO C11.
76349
76350         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
76351         code.
76352
76353         [BZ #13528]
76354         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
76355
76356         [BZ #13529]
76357         * assert/assert.h (static_assert): Define.
76358
76359         * version.h: Update for 2.16 development version.
76360
76361         [BZ #13526]
76362         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
76363         _ISOC11_SOURCE.
76364
76365         * version.h (RELEASE): Bump for 2.15 release.
76366         * include/features.h (__GLIBC_MINOR__): Bump to 15.
76367
76368         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
76369         Patch by Marek Polacek <mpolacek@redhat.com>.
76370
76371         * bits/byteswap.h: Protect long long constants with __extension__.
76372         * sysdeps/i386/bits/byteswap.h: Likewise.
76373         * sysdeps/ia64/bits/byteswap.h: Likewise.
76374         * sysdeps/s390/bits/byteswap.h: Likewise.
76375         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76376
76377 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76378
76379         [BZ #13540]
76380         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
76381         destination buffer.
76382         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
76383
76384 2011-12-23  Marek Polacek  <polacek@redhat.com>
76385
76386         * elf/dl-addr.c (determine_info): Add inline keyword.
76387         * elf/tst-auditmod4b.c (check_avx): Likewise.
76388         * elf/tst-auditmod6b.c (check_avx): Likewise.
76389         * elf/tst-auditmod6c.c (check_avx): Likewise.
76390         * elf/tst-auditmod7b.c (check_avx): Likewise.
76391
76392 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76393
76394         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
76395         !__SSE_MATH__.
76396
76397 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76398
76399         [BZ #13540]
76400         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
76401         processing for last bytes.
76402
76403 2011-08-06  Bruno Haible  <bruno@clisp.org>
76404
76405         [BZ #13061]
76406         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
76407         U+0385, not to U+1FEE.
76408
76409         [BZ #13062]
76410         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
76411         entry for U+00A5 U+0301.
76412
76413 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76414
76415         [BZ #13166]
76416         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
76417         buffer for the output is too small.
76418
76419         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
76420         optimization.
76421
76422         [BZ #13185]
76423         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
76424         SSE flags if possible.
76425
76426 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76427
76428         [BZ #13540]
76429         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
76430         processing for last bytes.
76431
76432 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
76433
76434         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
76435         (syscall-list-default-options, syscall-list-default-condition)
76436         (syscall-list-includes): Define.
76437         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
76438         list of ABIs and options and #if conditions for each ABI.  Do not
76439         handle common syscalls between ABIs specially.
76440         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
76441         Remove.
76442         (syscall-list-variants, syscall-list-32bit-options)
76443         (syscall-list-32bit-condition, syscall-list-64bit-options)
76444         (syscall-list-64bit-condition): Define.
76445         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
76446         (syscall-list-variants, syscall-list-32bit-options)
76447         (syscall-list-32bit-condition, syscall-list-64bit-options)
76448         (syscall-list-64bit-condition): Define.
76449         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
76450         Remove.
76451         (syscall-list-variants, syscall-list-32bit-options)
76452         (syscall-list-32bit-condition, syscall-list-64bit-options)
76453         (syscall-list-64bit-condition): Define.
76454         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
76455         Remove.
76456         (syscall-list-variants, syscall-list-32bit-options)
76457         (syscall-list-32bit-condition, syscall-list-64bit-options)
76458         (syscall-list-64bit-condition): Define.
76459
76460 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76461
76462         * locale/iso-639.def: Add brx entry.
76463
76464         [BZ #13328]
76465         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
76466         Proposed by Mariusz_Cukr <marcukr@op.pl>.
76467
76468         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
76469         __feraiseexcept_renamed.
76470
76471 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76472
76473         [BZ #13538]
76474         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
76475         EPOLLET with unsigned values.
76476         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76477         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76478
76479         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
76480         to large cancellation.
76481         * math/s_cacoshf.c: Likewise.
76482         * math/s_cacoshl.c: Likewise.
76483
76484 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
76485
76486         [BZ #13305]
76487         [BZ #12786]
76488         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
76489         * math/s_cacoshf.c: Likewise.
76490         * math/s_cacoshl.c: Likewise.
76491
76492 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76493
76494         [BZ #13439]
76495         * iconv/gconv.h: Define __GCONV_SWAP.
76496         * iconvdata/unicode.c: The swap bit must be stored in __flags.
76497         * iconvdata/utf-16.c: Likewise.
76498         * iconvdata/utf-32.c: Likewise.
76499
76500 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
76501
76502         [BZ #13524]
76503         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
76504         numerator after shifting it by one limb.
76505
76506 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
76507
76508         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
76509         under [__USE_EXTERN_INLINES].
76510
76511 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76512
76513         [BZ #13446]
76514         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
76515
76516 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76517
76518         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
76519         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
76520         optimized code.
76521         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
76522         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
76523         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
76524         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
76525         for strncasecmp/strncasecmp_l compilation.
76526         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
76527         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
76528
76529 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
76530
76531         [BZ #13484]
76532         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
76533         of __asm__.
76534
76535 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76536
76537         [BZ #13506]
76538         * time/tzfile.c (__tzfile_read): Check values from file header.
76539
76540 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
76541
76542         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
76543         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
76544         * powerpc/powerpc32/dl-start.S: Likewise.
76545         * powerpc/powerpc32/elf/start.S: Likewise.
76546         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
76547         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
76548         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
76549         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
76550         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
76551         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
76552         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
76553         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
76554         * powerpc/powerpc32/fpu/s_round.S: Likewise.
76555         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
76556         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
76557         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
76558         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
76559         * powerpc/powerpc32/memset.S: Likewise.
76560         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
76561         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
76562         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
76563         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
76564         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
76565         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
76566         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
76567         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
76568         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
76569         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
76570         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
76571         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76572         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76573
76574 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76575
76576         * math/libm-test.inc: Added more nearbyint tests.
76577         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
76578         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
76579         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
76580         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
76581
76582 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
76583
76584         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
76585         FD_CLOEXEC.
76586
76587 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76588
76589         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
76590         Add wcscpy-ssse3 wcscpy-c.
76591         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
76592         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
76593         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
76594         * sysdeps/x86_64/wcschr.S: New file.
76595         * sysdeps/x86_64/wcsrchr.S: New file.
76596         * string/test-strcmp.c: Remove checking of wcscmp function for
76597         wrong alignments.
76598         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
76599         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
76600         wcsrchr-sse2 wcsrchr-c.
76601         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
76602         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
76603         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
76604         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
76605         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
76606         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
76607         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
76608         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
76609         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
76610         * wcsmbc/wcschr.c (WCSCHR): New macro.
76611
76612 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76613
76614         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
76615         * wcsmbs/test-wcsrchr.c: New file.
76616         * string/test-strrchr.c: Add wcsrchr support.
76617         (WIDE): New macro.
76618         * wcsmbs/test-wcscpy.c: New file.
76619         * string/test-strcpy.c: Add wcscpy support.
76620         (WIDE): New macro.
76621
76622 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
76623
76624         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
76625         the inner loop.
76626
76627 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
76628
76629         [BZ #13472]
76630         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
76631
76632 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
76633
76634         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
76635         Minor optimizations.
76636
76637         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
76638         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
76639         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
76640
76641 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
76642
76643         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
76644         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
76645         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
76646         for gcc to avoid warnings.
76647         * inet/Makefile (tests): Add tst-checks.
76648         * inet/tst-checks.c: New file.
76649
76650         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
76651         warning.
76652
76653         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
76654         __wmemcmp_sse2.
76655
76656         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
76657         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
76658
76659         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
76660
76661 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
76662
76663         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
76664         problem.
76665
76666         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
76667
76668 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
76669
76670         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
76671         conditional on GCC version.
76672         (__arch_compare_and_exchange_val_8_acq)
76673         (__arch_compare_and_exchange_val_16_acq)
76674         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
76675         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
76676         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
76677
76678 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
76679
76680         * sysdeps/sh/backtrace.c: New file.
76681
76682 2011-12-02  Andreas Schwab  <schwab@redhat.com>
76683
76684         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
76685         parenthesis.
76686
76687 2011-12-01  Andreas Schwab  <schwab@redhat.com>
76688
76689         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
76690         falling back to utime.
76691
76692 2011-11-30  Andreas Schwab  <schwab@redhat.com>
76693
76694         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
76695         expectations for float.
76696
76697 2011-11-29  Andreas Schwab  <schwab@redhat.com>
76698
76699         * locale/weight.h (findidx): Add parameter len.
76700         * locale/weightwc.h (findidx): Likewise.
76701         * posix/fnmatch_loop.c (FCT): Adjust caller.
76702         * posix/regcomp.c (build_equiv_class): Likewise.
76703         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
76704         * posix/regexec.c (check_node_accept_bytes): Likewise.
76705         * string/strcoll_l.c (STRCOLL): Likewise.
76706         * string/strxfrm_l.c (STRXFRM): Likewise.
76707
76708 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
76709
76710         * Makefile.in: Remove CVSOPT handling.
76711         * configure.in: Remove use of AC_REVISION.
76712         * iconvdata/Makefile (distribute): No need to filter out CVS.
76713         * scripts/list-sources.sh: Remove CVS, subversion and monotone
76714         handling.
76715
76716 2011-11-16  Andreas Schwab  <schwab@redhat.com>
76717
76718         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
76719         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
76720         [USE_AS_STRNCASECMP_L]: Likewise.
76721         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
76722         NO_TLS_DIRECT_SEG_REFS.
76723         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
76724         Fix argument offsets for non-PIC.
76725         [USE_AS_STRNCASECMP_L]: Likewise.
76726         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
76727         NO_TLS_DIRECT_SEG_REFS.
76728
76729 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
76730
76731         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
76732         O_CLOEXEC.
76733         * locale/loadlocale.c (_nl_load_locale): Likewise.
76734
76735 2011-11-15  Andreas Schwab  <schwab@redhat.com>
76736
76737         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
76738         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
76739         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
76740         (SYSCALL_GETTIME): Set errno on error.
76741
76742         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
76743         count references to noai6ai_cached.
76744
76745 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
76746
76747         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
76748
76749         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
76750         FD_CLOEXEC for /proc/self/maps.
76751
76752         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
76753         FD_CLOEXEC for /proc/meminfo.
76754
76755         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
76756         gai.conf.
76757
76758         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
76759         FD_CLOEXEC for given file.
76760
76761         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
76762
76763         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
76764         FD_CLOEXEC for /etc/hosts.
76765         (_gethtent): Likewise.
76766
76767         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
76768
76769         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
76770         cancellation and set FD_CLOEXEC for /etc/netgroup.
76771
76772         * nss/nss_files/files-key.c (search): Don't allow cancellation when
76773         reading /etc/publickey.
76774
76775         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
76776         allow cancellation when reading /etc/group.
76777
76778         * nss/nss_files/files-alias.c (internal_setent): Don't allow
76779         cancellation.
76780         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
76781
76782         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
76783         when using data file.
76784
76785         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
76786
76787         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
76788         (write_nis_obj): Use "c" and "e" in fopen.
76789
76790         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
76791
76792         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
76793
76794         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
76795
76796         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
76797
76798         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
76799         locale.alias.
76800
76801         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
76802
76803         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
76804
76805         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
76806
76807         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
76808         file parsing and set FD_CLOEXEC.
76809
76810 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
76811
76812         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
76813
76814 2011-11-14  Andreas Schwab  <schwab@redhat.com>
76815
76816         * malloc/arena.c (arena_get2): Don't call reused_arena when
76817         _int_new_arena failed.
76818
76819 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
76820
76821         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
76822         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
76823         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
76824         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
76825         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
76826         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
76827         to compile strcasecmp and strncasecmp.
76828         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
76829         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
76830
76831         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
76832
76833 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
76834
76835         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
76836         locale-defines.sym to gen-as-const-headers.
76837         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
76838         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
76839         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
76840         to compile strcasecmp and strncasecmp.
76841         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
76842         strcasecmp_l and strncasecmp_l.
76843         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
76844         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
76845         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
76846         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
76847         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
76848         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
76849         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
76850         * sysdeps/i386/i686/multiarch/strncase.S: New file.
76851         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
76852         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
76853         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
76854
76855 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
76856
76857         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
76858         result of SYSDEP_GETTIME_CPU to retval.
76859         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
76860         parameter list to macro.  Remove trailing semicolon.  Adjust users.
76861
76862         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
76863         variable.
76864
76865         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
76866         mantissa words.
76867         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
76868
76869         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
76870         from unused variable.
76871
76872         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
76873         DWARF definitions.
76874         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
76875         for assembling.
76876
76877         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
76878         over namespaces.
76879
76880         * sunrpc/rpc_prot.c (rejected): Fix case value.
76881
76882         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
76883         unsigned long long int to avoid warnings in shift.
76884
76885         * posix/regex_internal.c (re_string_reconstruct): Actually use result
76886         of use of trans.
76887         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
76888         variable tmp.
76889
76890         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
76891         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
76892         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
76893
76894         * nis/nis_table.c (nis_list): Use variable of correct type for
76895         result of __follow_path call.
76896
76897 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76898
76899         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
76900         of math functions ceil, trunc, floor, round, and sqrt, when
76901         avaliable on the platform.
76902         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
76903         name clash.
76904         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
76905         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
76906         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
76907
76908 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
76909
76910         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
76911         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
76912
76913 2011-11-11  Roland McGrath  <roland@hack.frob.com>
76914
76915         * include/unistd.h: Fix __readlink return type.
76916         Reported by Chris Metcalf <cmetcalf@tilera.com>.
76917
76918 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
76919
76920         * stdlib/ucontext.h: Undo last change for makecontext.
76921
76922 2011-11-11  Andreas Schwab  <schwab@redhat.com>
76923
76924         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
76925
76926         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
76927         * setjmp/setjmp.h: Mark functions as non-leaf.
76928         * setjmp/bits/setjmp2.h: Likewise.
76929         * stdlib/ucontext.h: Likewise.
76930
76931 2011-11-10  Andreas Schwab  <schwab@redhat.com>
76932
76933         * malloc/arena.c (_int_new_arena): Don't increment narenas.
76934         (reused_arena): Don't check arena limit.
76935         (arena_get2): Atomically check arena limit.
76936
76937 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
76938
76939         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
76940         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
76941
76942         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
76943         instructions.
76944
76945 2011-11-07  Andreas Schwab  <schwab@redhat.com>
76946
76947         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
76948         handler when locking.
76949
76950         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
76951         Fix size of allocated buffer.
76952
76953 2011-11-04  Andreas Schwab  <schwab@redhat.com>
76954
76955         [BZ #10103]
76956         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
76957         declarations for long double functions.
76958         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
76959
76960         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
76961
76962 2011-11-03  Andreas Schwab  <schwab@redhat.com>
76963
76964         * nscd/nscd.c (main): Don't start AVC thread until credentials are
76965         installed.
76966
76967         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
76968         is disabled.
76969
76970 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76971
76972         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
76973
76974 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
76975
76976         * include/alloca.h (stackinfo_alloca_round): Define.
76977         (extend_alloca): Use it.
76978         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
76979         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
76980         here.
76981
76982         * scripts/check-local-headers.sh: Ignore libaudit.h.
76983
76984         * nscd/Makefile (extra-objs): Make recursively expanded.
76985
76986 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
76987
76988         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
76989         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
76990
76991         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
76992         * posix/tst-rfc3484-2.c: Likewise.
76993         * posix/tst-rfc3484-3.c: Likewise.
76994
76995         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
76996         process_vm_writev.
76997         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
76998         process_vm_writev.
76999         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
77000         process_vm_writev from libc using GLIBC_2.15 version.
77001
77002         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
77003
77004 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
77005
77006         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
77007         stack usage.
77008
77009 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
77010
77011         [BZ #13367]
77012         * nss/getent.c (initgroups_keys): Show error message in case no group
77013         names are given.
77014
77015         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
77016         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
77017         __bump_nl_timestamp.
77018         * nscd/connections (nscd_init): When host database is served open
77019         netlink socket and request notification about configuration changes.
77020         (main_loop_poll): Track netlink file descriptor and bump timestamp
77021         in case data becomes available.
77022         (main_loop_epoll): Likewise.
77023         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
77024         (database_pers_head): Add extra_data fileds.
77025         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
77026         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
77027         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
77028         Adjust caller.
77029         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
77030         in6ai data, call __free_in6ai.
77031         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
77032         Add -DHAVE_NETLINK.
77033         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
77034         interface information.  Reuse previous data if netlink timestamp
77035         is not changed.
77036         (__bump_nl_timestamp): New function.
77037         (__free_in6ai): New function.
77038
77039 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
77040
77041         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
77042         close_not_cancel_no_status here.
77043         (__check_pf): Reorganize code a bit to not call close twice if OOM.
77044
77045 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77046
77047         [BZ #13276]
77048         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
77049         return value.
77050
77051         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
77052         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
77053         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
77054
77055 2011-07-03  Andreas Jaeger  <aj@suse.de>
77056
77057         [BZ #10709]
77058         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
77059         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
77060         * math/libm-test.inc (sin_test): Add test case.
77061
77062 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77063
77064         [BZ #13337]
77065         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
77066         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77067
77068         * elf/chroot_canon.c (chroot_canon): Cleanups.
77069
77070         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
77071
77072         [BZ #13335]
77073         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
77074         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77075
77076         * string/test-strchr.c: Make usable for strchrnul testing.
77077         * string/test-strchrnul.c: New file.
77078         * string/Makefile (strop-tests): Add strchrnul.
77079
77080         * po/it.po: Update from translation team.
77081         * po/es.po: Likewise.
77082
77083 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
77084
77085         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
77086         the three constants needed as parameters.  Drop the others.
77087         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
77088         __m128i_strloadu_tolower.
77089         Create and initialize variable zero and use it in all the places
77090         where _mm_setzero_si128 was used.
77091
77092         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
77093         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
77094         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
77095         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
77096         anymore.
77097         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
77098         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
77099         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
77100         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
77101         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
77102         __mpranred, __mptan.
77103         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
77104         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
77105         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
77106         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
77107         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
77108         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
77109         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
77110         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
77111         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
77112
77113 2011-10-28  Andreas Schwab  <schwab@redhat.com>
77114
77115         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
77116         redefine if SHARED.
77117         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
77118
77119         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
77120         wide char related routines to wcsmbs subdir.
77121
77122 2011-10-27  Andreas Schwab  <schwab@redhat.com>
77123
77124         [BZ #13344]
77125         * misc/sys/cdefs.h (__THROWNL): Define.
77126         * posix/unistd.h: Use __THREADNL instead of __THREAD
77127         for memory synchronization functions.
77128
77129 2011-10-26  Roland McGrath  <roland@hack.frob.com>
77130
77131         [BZ #13349]
77132         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
77133         doesn't exist.
77134         * manual/stdio.texi (Obstack Streams): Node removed.
77135
77136 2011-10-26  Andreas Schwab  <schwab@redhat.com>
77137
77138         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
77139         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77140         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77141
77142         * math/math_private.h (math_force_eval): Allow non-addressable
77143         arguments.
77144         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
77145
77146 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77147
77148         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
77149         file is not needed.
77150
77151         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
77152         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
77153         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
77154         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
77155         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
77156         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
77157         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
77158         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
77159         Add AVX variants.
77160         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
77161         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
77162         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
77163         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
77164         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
77165         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
77166         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
77167         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
77168         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
77169         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
77170         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
77171         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
77172         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
77173         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
77174         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
77175         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
77176         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
77177         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
77178         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
77179
77180         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
77181         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
77182
77183         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
77184         place.  Use VEX encoding when compiling for AVX.
77185
77186 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77187
77188         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
77189         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
77190
77191         * string/test-strchr.c (do_test): Don't generate NUL bytes.
77192
77193 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77194
77195         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
77196         useless if() expression.
77197         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
77198         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
77199         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
77200         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77201         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
77202         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77203         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77204         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77205         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
77206         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
77207         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
77208         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77209         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
77210         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77211         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
77212         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77213         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
77214         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
77215         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
77216
77217         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
77218
77219 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77220
77221         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
77222         condition.
77223         * elf/dl-fini.c (_dl_sort_fini): Likewise.
77224
77225 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77226
77227         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
77228         .text section.  Avoid duplicate constants.
77229         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
77230         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77231         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
77232         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77233         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77234         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77235         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77236         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77237         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
77238         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
77239         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
77240         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
77241         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
77242         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
77243         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
77244         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
77245         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
77246         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
77247         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
77248         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77249         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
77250         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
77251         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
77252         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
77253         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
77254         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
77255         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
77256         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
77257         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
77258         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
77259         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
77260         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
77261         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
77262         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
77263         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
77264         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
77265         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
77266         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
77267         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
77268         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
77269         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
77270         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
77271         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
77272         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
77273         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
77274
77275 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
77276
77277         * sysdeps/x86_64/dla.h: Move to ...
77278         * sysdeps/x86_64/fpu/dla.h: ...here.
77279         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
77280         situations.  Use __builtin_fma only for gcc 4.6 and up.
77281
77282         * config.make.in: Add have-mfma4 entry.
77283         * configure.in: Substitute libc_cv_cc_fma4.
77284         * math/Makefile (dbl-only-routines): Add sincostab.
77285         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
77286         Use __sincostab not sincos.
77287         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
77288         name is a macro.
77289         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77290         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77291         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77292         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
77293         using __copysign.
77294         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
77295         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
77296         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
77297         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
77298         and __inv.
77299         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
77300         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
77301         __copysign.
77302         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
77303         define aliases when function name is a macro.
77304         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
77305         sysdeps/ieee754/dbl-64/sincos.tbl.
77306         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
77307         fma4-enabled routines.
77308         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
77309         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
77310         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
77311         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
77312         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
77313         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
77314         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
77315         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
77316         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
77317         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
77318         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
77319         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
77320         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
77321         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
77322         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
77323         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
77324         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
77325         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
77326         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
77327         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
77328         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
77329         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
77330         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
77331         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
77332         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
77333         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
77334         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
77335         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
77336         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
77337         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
77338
77339         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
77340         rename.
77341         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77342         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77343         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77344         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77345         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77346         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77347         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77348         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77349
77350 2011-10-24  Andreas Schwab  <schwab@redhat.com>
77351
77352         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
77353
77354 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77355
77356         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
77357
77358         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
77359         prediction.
77360         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
77361
77362         * string/strnlen.c: Don't define STRNLEN, reverse logic.
77363         Remove unused variable magic_bits.
77364         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
77365
77366         * string/strnlen.c: Define and use STRNLEN macro.
77367         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
77368         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
77369         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
77370         * wcsmbs/wcslen.c: Define and use WCSLEN.
77371         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
77372         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
77373         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
77374         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
77375         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
77376         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
77377         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
77378
77379 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77380
77381         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77382         strnlen-sse2-no-bsf.
77383         Rename strlen-no-bsf to strlen-sse2-no-bsf.
77384         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
77385         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
77386         Add strnlen support.
77387         (USE_AS_STRNLEN): New macro.
77388         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
77389         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
77390         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
77391         * sysdeps/x86_64/wcslen.S: New file.
77392
77393 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
77394
77395         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
77396         XMM-moves are used for copying on small sizes.
77397
77398 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77399
77400         * wcsmbs/Makefile (strop-tests): Add wcschr.
77401         * wcsmbs/test-wcschr.c: New file.
77402         * string/test-strchr.c: Update.
77403         Add wcschr support.
77404         (WIDE): New macro.
77405
77406 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77407
77408         * wcsmbs/Makefile (strop-tests): Add wcslen.
77409         * wcsmbs/test-wcslen.c: New file.
77410         * string/test-strlen.c: Update.
77411         Add wcslen support.
77412         (WIDE): New macro.
77413
77414 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77415
77416         * po/it.po: Update from translation team.
77417
77418 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77419
77420         * sysdeps/x86_64/wcscmp.S: Update.
77421         Fix wrong comparison semantics.
77422         wcscmp shall use signed comparison not unsigned.
77423         Don't use substraction to avoid overflow bug.
77424         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
77425         * wcsmbc/wcscmp.c: Likewise.
77426         * string/test-strcmp.c: Likewise.
77427         Add new tests to check cases with negative values.
77428
77429 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77430
77431         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
77432         * sysdeps/x86_64/dla.h: ...here.  New file.
77433         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
77434         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77435         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77436         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77437         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77438         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
77439         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77440         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77441         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77442
77443 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
77444
77445         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
77446         __ynl_finite aliases.
77447
77448 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77449
77450         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77451
77452         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
77453         define DLA_FMA.
77454         [DLA_FMA] (EMULV): Use DLA_FMA.
77455         [DLA_FMA] (MUL12): Use EMULV.
77456         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
77457         that are not needed.
77458         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77459         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77460         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77461         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77462         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77463         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77464         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77465
77466 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
77467
77468         * math/s_nan.c: Undef __nan.
77469         * math/s_nanf.c: Undef __nanf.
77470         * math/s_nanl.c: Undef __nanl.
77471         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
77472         "math_private.h".
77473
77474 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77475
77476         * math/s_catan.c: Add branch predictions.
77477         * math/s_catanf.c: Likewise.
77478         * math/s_catanh.c: Likewise.
77479         * math/s_catanhf.c: Likewise.
77480         * math/s_catanhl.c: Likewise.
77481         * math/s_catanl.c: Likewise.
77482         * math/s_cexp.c: Likewise.
77483         * math/s_cexpf.c: Likewise.
77484         * math/s_cexpl.c: Likewise.
77485         * math/s_clog.c: Likewise.
77486         * math/s_clog10.c: Likewise.
77487         * math/s_clog10f.c: Likewise.
77488         * math/s_clog10l.c: Likewise.
77489         * math/s_clogf.c: Likewise.
77490         * math/s_clogl.c: Likewise.
77491         * math/s_csqrt.c: Likewise.
77492         * math/s_csqrtf.c: Likewise.
77493         * math/s_csqrtl.c: Likewise.
77494         * math/s_ctanf.c: Likewise.
77495         * math/s_ctanh.c: Likewise.
77496         * math/s_ctanhf.c: Likewise.
77497         * math/s_ctanhl.c: Likewise.
77498         * math/s_ctanl.c: Likewise.
77499
77500         * math/math_private.h: Define __nan, __nanf, __nanl.
77501         * math/s_cacosh.c: Include <math_private.h>.
77502         * math/s_cacoshl.c: Likewise.
77503         * math/s_casinh.c: Likewise.
77504         * math/s_casinhf.c: Likewise.
77505         * math/s_casinhl.c: Likewise.
77506         * math/s_ccos.c: Rely entire on ccosh.
77507         * math/s_ccosf.c: Rely entire on ccoshf.
77508         * math/s_ccosl.c: Rely entirely on ccoshl.
77509         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
77510         Remove tests for FE_INVALID.
77511         * math/s_ccoshf.c: Likewise.
77512         * math/s_ccoshl.c: Likewise.
77513         * math/s_csin.c: Likewise.
77514         * math/s_csinf.c: Likewise.
77515         * math/s_csinh.c Likewise.
77516         * math/s_csinhf.c: Likewise.
77517         * math/s_csinhl.c: Likewise.
77518         * math/s_csinl.c: Likewise.
77519         * math/s_ctan.c: Likewise.
77520         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
77521         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
77522         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
77523
77524 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
77525
77526         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
77527         compilation problems.
77528
77529         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
77530         __builtin_expect.
77531
77532 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
77533
77534         * sysdeps/i386/configure.in: Test for -mfma4 option.
77535         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
77536         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
77537         COMMON_CPUID_INDEX_80000001.
77538         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
77539         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
77540         use it if FMA3 is not supported.
77541         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
77542
77543         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
77544         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
77545
77546 2011-10-20  Andreas Schwab  <schwab@redhat.com>
77547
77548         [BZ #12892]
77549         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
77550         it would create a cycle with a link time dependency.
77551
77552 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
77553
77554         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
77555         instruction.
77556         * string/Makefile (strop-tests): Add rawmemchr.
77557         * string/test-rawmemchr.c: New file.
77558
77559         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
77560         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
77561         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
77562         when compiling str{,n}casecmp and when AVX is available.  Hook up
77563         new optimized code in initializers.
77564
77565 2011-10-19  Andreas Schwab  <schwab@redhat.com>
77566
77567         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
77568         __feraiseexcept instead of feraiseexcept.
77569
77570 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
77571
77572         * math/math_private.h: Define defaults for libc_fetestexcept and
77573         libc_feupdateenv.
77574         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
77575         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
77576         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
77577         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
77578         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
77579         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77580         libc_fetestexcept and libc_feupdateenv.
77581
77582         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
77583         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
77584         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
77585         * sysdeps/x86_64/fpu/math_private.h: Define special version of
77586         libc_feholdexcept_setround.
77587
77588         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
77589         Add s_nearbyint-c and s_nearbyintf-c.
77590         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
77591         nearbyintf inlines.
77592         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
77593         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
77594         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
77595         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
77596
77597         * math/math_private.h: Define defaults for libc_fegetround,
77598         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
77599         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
77600         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
77601         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
77602         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
77603         standard functions.
77604         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
77605         Remove comments and hacks for old compiler versions.
77606         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77607         libc_fegetround, libc_fesetround, libc_feholdexcept, and
77608         libc_feholdexceptl.
77609
77610 2011-10-18  Andreas Schwab  <schwab@redhat.com>
77611
77612         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
77613         (__feraiseexcept_renamed): Add __NTH.
77614         (feraiseexcept): Add __NTH.  Rename local variables to fix
77615         namespace violations.
77616
77617 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
77618
77619         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
77620
77621         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
77622
77623         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
77624         recently added interfaces.
77625         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
77626
77627         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
77628         about macro parameter expansion.
77629
77630         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
77631         __NO_MATH_INLINES is defined.  Cleanups.
77632
77633         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
77634         and __floorf is target has SSE4.1.
77635         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
77636         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
77637         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
77638         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
77639
77640         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
77641         name.
77642         (floorf): Likewise.
77643
77644         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
77645
77646 2011-10-17  Andreas Schwab  <schwab@redhat.com>
77647
77648         * misc/sys/cdefs.h: Fix last change.
77649
77650         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
77651         database lookup.
77652
77653 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
77654
77655         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
77656
77657         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
77658         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77659         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
77660         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77661         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77662         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
77663         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77664         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77665         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
77666         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
77667         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
77668         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
77669         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
77670         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
77671         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
77672         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
77673         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
77674         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
77675         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
77676         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
77677         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
77678         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
77679
77680         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
77681         ceil, ceilf, floor, floorf.
77682
77683         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
77684         Perform IRELATIVE relocations last.
77685
77686         * elf/do-rel.h: Add another parameter nrelative, replacing the
77687         local variable with the same name.  Change name of the function
77688         to end in Rel or Rela (uppercase).
77689         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
77690         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
77691         elf_dynamic_do_##reloc function.
77692
77693 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
77694
77695         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
77696         is sufficient, at least on modern CPUs.
77697
77698         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
77699
77700         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
77701         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
77702
77703         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
77704         __expl_finite.
77705         * math/bits/math-finite.h: Add entries for exp.
77706         * math/e_expl.c: Add __*_finite alias.
77707         * sysdeps/i386/fpu/e_exp.S: Likewise.
77708         * sysdeps/i386/fpu/e_expf.S: Likewise.
77709         * sysdeps/i386/fpu/e_expl.c: Likewise.
77710         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77711         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
77712         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
77713         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
77714         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
77715         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
77716         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
77717
77718         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
77719         is sufficient, at least on modern CPUs.
77720
77721         * ctype/ctype-info.c (__ctype_init): Define.
77722         * include/ctype.h (__ctype_init): Declare.
77723         (__ctype_b_loc): The variable is always initialized.
77724         (__ctype_toupper_loc): Likewise.
77725         (__ctype_tolower_loc): Likewise.
77726         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
77727         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
77728
77729 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
77730
77731         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
77732
77733         * configure.in: Also look in $cxxmachine/include for C++ system
77734         headers.
77735
77736 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77737
77738         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
77739         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
77740         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
77741         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
77742         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
77743         (USE_AS_WMEMCMP): New macro.
77744         Fixing indents.
77745         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
77746         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
77747         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
77748         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
77749         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77750         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
77751         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
77752         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
77753         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
77754         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
77755         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
77756         (USE_AS_WMEMCMP): New macro.
77757         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
77758         * sysdeps/string/test-memcmp.c: Update.
77759         Fix simple_wmemcmp.
77760         Add new tests.
77761         * wcsmbs/wmemcmp.c: Update.
77762         (WMEMCMP): New macro.
77763         Fix overflow bug.
77764
77765 2011-10-12  Andreas Jaeger  <aj@suse.de>
77766
77767         [BZ #13268]
77768         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
77769
77770 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
77771
77772         * libio/iofwide.c (do_length): Avoid warning.
77773
77774         * ctype/ctype.h (__isctype_f): Add missing __THROW.
77775
77776 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
77777
77778         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
77779
77780         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
77781         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
77782         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
77783         * sysdeps/i386/i686/fpu/e_log.S: New file.
77784         * sysdeps/i386/i686/fpu/e_logf.S: New file.
77785         * sysdeps/i386/i686/fpu/e_logl.S: New file.
77786
77787         * ctype/ctype.h: Add support for inlined isXXX functions when
77788         compiling C++ code.
77789
77790 2011-10-14  Andreas Schwab  <schwab@redhat.com>
77791
77792         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
77793
77794         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
77795
77796 2011-10-13  Roland McGrath  <roland@hack.frob.com>
77797
77798         [BZ #13291]
77799         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
77800
77801 2011-10-13  Andreas Schwab  <schwab@redhat.com>
77802
77803         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
77804         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
77805         feraiseexcept.
77806
77807         * sysdeps/x86_64/memrchr.S: Check for zero size.
77808
77809         * string/stratcliff.c: Add memrchr tests.
77810
77811 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77812
77813         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77814         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
77815         rawmemchr-sse2 rawmemchr-sse2-bsf.
77816         * sysdeps/i386/i686/multiarch/memchr.S: New file.
77817         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
77818         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
77819         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
77820         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
77821         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
77822         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
77823         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
77824         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
77825         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
77826         * string/memrchr.c (MEMRCHR): New macro.
77827
77828 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
77829
77830         Add integration with gcc's -ffinite-math-only and optimize wrapper
77831         functions in libm.
77832         * Versions.def: Define GLIBC_2.15 version for libm.
77833         * math/Makefile (headers): Add bits/math-finite.h.
77834         * math/bits/math-finite.h: New file.
77835         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
77836         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
77837         * math/e_acoshl.c: Add __*_finite alias.
77838         * math/e_acosl.c: Likewise.
77839         * math/e_asinl.c: Likewise.
77840         * math/e_atan2l.c: Likewise.
77841         * math/e_atanhl.c: Likewise.
77842         * math/e_coshl.c: Likewise.
77843         * math/e_exp10.c: Likewise.
77844         * math/e_exp10f.c: Likewise.
77845         * math/e_exp10l.c: Likewise.
77846         * math/e_exp2l.c: Likewise.
77847         * math/e_fmodl.c: Likewise.
77848         * math/e_gammal_r.c: Likewise.
77849         * math/e_hypotl.c: Likewise.
77850         * math/e_j0l.c: Likewise.
77851         * math/e_j1l.c: Likewise.
77852         * math/e_jnl.c: Likewise.
77853         * math/e_lgammal_r.c: Likewise.
77854         * math/e_log10l.c: Likewise.
77855         * math/e_log2l.c: Likewise.
77856         * math/e_logl.c: Likewise.
77857         * math/e_powl.c: Likewise.
77858         * math/e_sinhl.c: Likewise.
77859         * math/e_sqrtl.c: Likewise.
77860         * math/e_scalb.c: Completely rewritten and optimized.
77861         * math/e_scalbf.c: Likewise.
77862         * math/e_scalbl.c: Likewise.
77863         * math/w_acos.c: Likewise.
77864         * math/w_acosf.c: Likewise.
77865         * math/w_acosl.c: Likewise.
77866         * math/w_acosh.c: Likewise.
77867         * math/w_acoshf.c: Likewise.
77868         * math/w_acoshl.c: Likewise.
77869         * math/w_asin.c: Likewise.
77870         * math/w_asinf.c: Likewise.
77871         * math/w_asinl.c: Likewise.
77872         * math/w_atan2.c: Likewise.
77873         * math/w_atan2f.c: Likewise.
77874         * math/w_atan2l.c: Likewise.
77875         * math/w_atanh.c: Likewise.
77876         * math/w_atanhf.c: Likewise.
77877         * math/w_atanhl.c: Likewise.
77878         * math/w_exp10.c: Likewise.
77879         * math/w_exp10f.c: Likewise.
77880         * math/w_exp10l.c: Likewise.
77881         * math/w_fmod.c: Likewise.
77882         * math/w_fmodf.c: Likewise.
77883         * math/w_fmodl.c: Likewise.
77884         * math/w_j0.c: Likewise.
77885         * math/w_j0f.c: Likewise.
77886         * math/w_j0l.c: Likewise.
77887         * math/w_j1.c: Likewise.
77888         * math/w_j1f.c: Likewise.
77889         * math/w_j1l.c: Likewise.
77890         * math/w_jn.c: Likewise.
77891         * math/w_jnf.c: Likewise.
77892         * math/w_log.c: Likewise.
77893         * math/w_logf.c: Likewise.
77894         * math/w_logl.c: Likewise.
77895         * math/w_log10.c: Likewise.
77896         * math/w_log10f.c: Likewise.
77897         * math/w_log10l.c: Likewise.
77898         * math/w_log2.c: Likewise.
77899         * math/w_log2f.c: Likewise.
77900         * math/w_log2l.c: Likewise.
77901         * math/w_pow.c: Likewise.
77902         * math/w_powf.c: Likewise.
77903         * math/w_powl.c: Likewise.
77904         * math/w_remainder.c: Likewise.
77905         * math/w_remainderf.c: Likewise.
77906         * math/w_remainderl.c: Likewise.
77907         * math/w_scalb.c: Likewise.
77908         * math/w_scalbf.c: Likewise.
77909         * math/w_scalbl.c: Likewise.
77910         * math/w_sqrt.c: Likewise.
77911         * math/w_sqrtf.c: Likewise.
77912         * math/w_sqrtl.c: Likewise.
77913         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
77914         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
77915         used.
77916         * math/math_private.h: Declare __kernel_standard_f.
77917         * math/w_cosh.c: Remove cruft and optimize a bit.
77918         * math/w_coshf.c: Likewise.
77919         * math/w_coshl.c: Likewise.
77920         * math/w_exp2.c: Likewise.
77921         * math/w_exp2f.c: Likewise.
77922         * math/w_exp2l.c: Likewise.
77923         * math/w_hypot.c: Likewise.
77924         * math/w_hypotf.c: Likewise.
77925         * math/w_hypotl.c: Likewise.
77926         * math/w_lgamma.c: Likewise.
77927         * math/w_lgamma_r.c: Likewise.
77928         * math/w_lgammaf.c: Likewise.
77929         * math/w_lgammaf_r.c: Likewise.
77930         * math/w_lgammal.c: Likewise.
77931         * math/w_lgammal_r.c: Likewise.
77932         * math/w_sinh.c: Likewise.
77933         * math/w_sinhf.c: Likewise.
77934         * math/w_sinhl.c: Likewise.
77935         * math/w_tgamma.c: Likewise.
77936         * math/w_tgammaf.c: Likewise.
77937         * math/w_tgammal.c: Likewise.
77938         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
77939         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
77940         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
77941         Minor optimizations.  Pretty printing.  Remove cruft.
77942         * sysdeps/i386/fpu/e_acosf.S: Likewise.
77943         * sysdeps/i386/fpu/e_acosh.S: Likewise.
77944         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
77945         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
77946         * sysdeps/i386/fpu/e_acosl.c: Likewise.
77947         * sysdeps/i386/fpu/e_asin.S: Likewise.
77948         * sysdeps/i386/fpu/e_asinf.S: Likewise.
77949         * sysdeps/i386/fpu/e_atan2.S: Likewise.
77950         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
77951         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
77952         * sysdeps/i386/fpu/e_atanh.S: Likewise.
77953         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
77954         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
77955         * sysdeps/i386/fpu/e_exp10.S: Likewise.
77956         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
77957         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
77958         * sysdeps/i386/fpu/e_exp2.S: Likewise.
77959         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
77960         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
77961         * sysdeps/i386/fpu/e_fmod.S: Likewise.
77962         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
77963         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
77964         * sysdeps/i386/fpu/e_hypot.S: Likewise.
77965         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
77966         * sysdeps/i386/fpu/e_log.S: Likewise.
77967         * sysdeps/i386/fpu/e_log10.S: Likewise.
77968         * sysdeps/i386/fpu/e_log10f.S: Likewise.
77969         * sysdeps/i386/fpu/e_log10l.S: Likewise.
77970         * sysdeps/i386/fpu/e_log2.S: Likewise.
77971         * sysdeps/i386/fpu/e_log2f.S: Likewise.
77972         * sysdeps/i386/fpu/e_log2l.S: Likewise.
77973         * sysdeps/i386/fpu/e_logf.S: Likewise.
77974         * sysdeps/i386/fpu/e_logl.S: Likewise.
77975         * sysdeps/i386/fpu/e_pow.S: Likewise.
77976         * sysdeps/i386/fpu/e_powf.S: Likewise.
77977         * sysdeps/i386/fpu/e_powl.S: Likewise.
77978         * sysdeps/i386/fpu/e_remainder.S: Likewise.
77979         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
77980         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
77981         * sysdeps/i386/fpu/e_scalb.S: Likewise.
77982         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
77983         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
77984         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
77985         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
77986         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
77987         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
77988         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
77989         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77990         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
77991         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
77992         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
77993         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
77994         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
77995         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
77996         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
77997         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
77998         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
77999         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78000         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
78001         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
78002         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78003         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
78004         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
78005         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
78006         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78007         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
78008         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
78009         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
78010         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
78011         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
78012         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
78013         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
78014         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
78015         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
78016         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
78017         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
78018         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
78019         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
78020         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
78021         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
78022         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
78023         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
78024         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
78025         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
78026         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
78027         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
78028         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
78029         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
78030         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
78031         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
78032         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
78033         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
78034         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
78035         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
78036         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
78037         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
78038         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
78039         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
78040         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
78041         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
78042         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
78043         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
78044         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
78045         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
78046         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
78047         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
78048         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
78049         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
78050         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
78051         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
78052         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
78053         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
78054         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
78055         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
78056         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
78057         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
78058         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
78059         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
78060         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
78061         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
78062         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
78063         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
78064         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
78065         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
78066         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
78067         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
78068         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
78069         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
78070         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
78071         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
78072         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
78073         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
78074         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
78075         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
78076         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
78077         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
78078         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
78079         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
78080         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
78081         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
78082         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
78083         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
78084         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
78085         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
78086         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
78087         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
78088         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
78089         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
78090         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
78091         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
78092         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
78093         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
78094         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
78095         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
78096         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
78097         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
78098         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
78099         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
78100         (__isnanf): Likewise.
78101         (__isinf_ns): Likewise.
78102         (__isinf_nsf): Likewise.
78103         (__finite): Likewise.
78104         (__finitef): Likewise.
78105         (__ieee754_sqrt): Define as macro.
78106         (__ieee754_sqrtf): Define as macro.
78107         (__ieee754_sqrtl): Define as macro.
78108         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
78109         inlined copy.
78110         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
78111         __FINITE_MATH_ONLY__ consistent.
78112         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
78113
78114 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
78115
78116         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
78117         of rawmemchr.
78118
78119         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
78120
78121 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
78122
78123         * po/ja.po: Update from translation team.
78124
78125 2011-10-08  Roland McGrath  <roland@hack.frob.com>
78126
78127         * locale/programs/locarchive.c (prepare_address_space): New function.
78128         (create_archive, enlarge_archive, open_archive): Use it.
78129
78130         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
78131         inside [SHARED], where it is used.
78132
78133         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
78134
78135         * nss/getent.c (netgroup_keys): Remove unused variable.
78136         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
78137
78138 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
78139
78140         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
78141         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
78142         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
78143         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
78144         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
78145         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
78146         * math/Makefile (libm-calls): Add s_isinf_ns.
78147         * math/divtc3.c: Use __isinf_nsl instead of isinf.
78148         * math/multc3.c: Likewise.
78149         * math/s_casin.c: Likewise.
78150         * math/s_casinf.c: Likewise.
78151         * math/s_casinl.c: Likewise.
78152         * math/s_ccos.c: Likewise.
78153         * math/s_ccosf.c: Likewise.
78154         * math/s_ccosl.c: Likewise.
78155         * math/s_ctan.c: Likewise.
78156         * math/s_ctanf.c: Likewise.
78157         * math/s_ctanh.c: Likewise.
78158         * math/s_ctanhf.c: Likewise.
78159         * math/s_ctanhl.c: Likewise.
78160         * math/s_ctanl.c: Likewise.
78161         * math/w_fmod.c: Likewise.
78162         * math/w_fmodf.c: Likewise.
78163         * math/w_fmodl.c: Likewise.
78164         * math/w_remainder.c: Likewise.
78165         * math/w_remainderf.c: Likewise.
78166         * math/w_remainderl.c: Likewise.
78167         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
78168         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
78169         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
78170         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
78171         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
78172         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
78173         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
78174         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
78175
78176         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
78177         of the number.
78178         * stdio-common/printf_fphex.c: Likewise.
78179         * stdio-common/printf_size.c: Likewise.
78180
78181         * math/e_exp10.c: Include math_private.h using <...> not "...".
78182         * math/e_exp10f.c: Likewise.
78183         * math/e_exp10l.c: Likewise.
78184         * math/e_exp2l.c: Likewise.
78185         * math/e_j0l.c: Likewise.
78186         * math/e_j1l.c: Likewise.
78187         * math/e_jnl.c: Likewise.
78188         * math/e_lgammal_r.c: Likewise.
78189         * math/e_rem_pio2l.c: Likewise.
78190         * math/e_scalb.c: Likewise.
78191         * math/e_scalbf.c: Likewise.
78192         * math/e_scalbl.c: Likewise.
78193         * math/k_cosl.c: Likewise.
78194         * math/k_sinl.c: Likewise.
78195         * math/k_tanl.c: Likewise.
78196         * math/s_cacoshf.c: Likewise.
78197         * math/s_catan.c: Likewise.
78198         * math/s_catanf.c: Likewise.
78199         * math/s_catanh.c: Likewise.
78200         * math/s_catanhf.c: Likewise.
78201         * math/s_catanhl.c: Likewise.
78202         * math/s_catanl.c: Likewise.
78203         * math/s_ccosh.c: Likewise.
78204         * math/s_ccoshf.c: Likewise.
78205         * math/s_ccoshl.c: Likewise.
78206         * math/s_cexp.c: Likewise.
78207         * math/s_cexpf.c: Likewise.
78208         * math/s_cexpl.c: Likewise.
78209         * math/s_clog.c: Likewise.
78210         * math/s_clog10.c: Likewise.
78211         * math/s_clog10f.c: Likewise.
78212         * math/s_clog10l.c: Likewise.
78213         * math/s_clogf.c: Likewise.
78214         * math/s_clogl.c: Likewise.
78215         * math/s_csin.c: Likewise.
78216         * math/s_csinf.c: Likewise.
78217         * math/s_csinh.c: Likewise.
78218         * math/s_csinhf.c: Likewise.
78219         * math/s_csinhl.c: Likewise.
78220         * math/s_csinl.c: Likewise.
78221         * math/s_csqrt.c: Likewise.
78222         * math/s_csqrtf.c: Likewise.
78223         * math/s_csqrtl.c: Likewise.
78224         * math/s_ctan.c: Likewise.
78225         * math/s_ctanf.c: Likewise.
78226         * math/s_ctanh.c: Likewise.
78227         * math/s_ctanhf.c: Likewise.
78228         * math/s_ctanhl.c: Likewise.
78229         * math/s_ctanl.c: Likewise.
78230         * math/s_ldexp.c: Likewise.
78231         * math/s_ldexpf.c: Likewise.
78232         * math/s_ldexpl.c: Likewise.
78233         * math/s_significand.c: Likewise.
78234         * math/s_significandf.c: Likewise.
78235         * math/s_significandl.c: Likewise.
78236         * math/w_acos.c: Likewise.
78237         * math/w_acosf.c: Likewise.
78238         * math/w_acosh.c: Likewise.
78239         * math/w_acoshf.c: Likewise.
78240         * math/w_acoshl.c: Likewise.
78241         * math/w_acosl.c: Likewise.
78242         * math/w_asin.c: Likewise.
78243         * math/w_asinf.c: Likewise.
78244         * math/w_asinl.c: Likewise.
78245         * math/w_atan2.c: Likewise.
78246         * math/w_atan2f.c: Likewise.
78247         * math/w_atan2l.c: Likewise.
78248         * math/w_atanh.c: Likewise.
78249         * math/w_atanhf.c: Likewise.
78250         * math/w_atanhl.c: Likewise.
78251         * math/w_cosh.c: Likewise.
78252         * math/w_coshf.c: Likewise.
78253         * math/w_coshl.c: Likewise.
78254         * math/w_dremf.c: Likewise.
78255         * math/w_exp10.c: Likewise.
78256         * math/w_exp10f.c: Likewise.
78257         * math/w_exp10l.c: Likewise.
78258         * math/w_exp2.c: Likewise.
78259         * math/w_exp2f.c: Likewise.
78260         * math/w_fmod.c: Likewise.
78261         * math/w_fmodf.c: Likewise.
78262         * math/w_fmodl.c: Likewise.
78263         * math/w_hypot.c: Likewise.
78264         * math/w_hypotf.c: Likewise.
78265         * math/w_hypotl.c: Likewise.
78266         * math/w_j0.c: Likewise.
78267         * math/w_j0f.c: Likewise.
78268         * math/w_j0l.c: Likewise.
78269         * math/w_j1.c: Likewise.
78270         * math/w_j1f.c: Likewise.
78271         * math/w_j1l.c: Likewise.
78272         * math/w_jn.c: Likewise.
78273         * math/w_jnf.c: Likewise.
78274         * math/w_jnl.c: Likewise.
78275         * math/w_lgamma.c: Likewise.
78276         * math/w_lgamma_r.c: Likewise.
78277         * math/w_lgammaf.c: Likewise.
78278         * math/w_lgammaf_r.c: Likewise.
78279         * math/w_lgammal.c: Likewise.
78280         * math/w_lgammal_r.c: Likewise.
78281         * math/w_log.c: Likewise.
78282         * math/w_log10.c: Likewise.
78283         * math/w_log10f.c: Likewise.
78284         * math/w_log10l.c: Likewise.
78285         * math/w_log2.c: Likewise.
78286         * math/w_log2f.c: Likewise.
78287         * math/w_log2l.c: Likewise.
78288         * math/w_logf.c: Likewise.
78289         * math/w_logl.c: Likewise.
78290         * math/w_pow.c: Likewise.
78291         * math/w_powf.c: Likewise.
78292         * math/w_powl.c: Likewise.
78293         * math/w_remainder.c: Likewise.
78294         * math/w_remainderf.c: Likewise.
78295         * math/w_remainderl.c: Likewise.
78296         * math/w_scalb.c: Likewise.
78297         * math/w_scalbf.c: Likewise.
78298         * math/w_scalbl.c: Likewise.
78299         * math/w_sinh.c: Likewise.
78300         * math/w_sinhf.c: Likewise.
78301         * math/w_sinhl.c: Likewise.
78302         * math/w_sqrt.c: Likewise.
78303         * math/w_sqrtf.c: Likewise.
78304         * math/w_sqrtl.c: Likewise.
78305         * math/w_tgamma.c: Likewise.
78306         * math/w_tgammaf.c: Likewise.
78307         * math/w_tgammal.c: Likewise.
78308
78309         * po/ja.po: Update from translation team.
78310
78311 2011-09-29  Andreas Jaeger  <aj@suse.de>
78312
78313         [BZ #13179]
78314         * sunrpc/netname.c (netname2host): Fix logic.
78315
78316         [BZ #6779]
78317         [BZ #6783]
78318         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
78319         correctly.
78320         * math/w_remainder.c (__remainder): Likewise.
78321         * math/w_remainderf.c (__remainderf): Likewise.
78322         * math/libm-test.inc (remainder_test): Add test cases.
78323
78324 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78325
78326         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
78327         sdiv_qrnnd.
78328
78329 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78330
78331         * string/test-memcmp.c: Avoid unncessary #defines.
78332         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
78333
78334 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78335
78336         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
78337         Use new sse2 version for core i3 - i7 as it's faster
78338         than sse42 version.
78339         (bit_Prefer_PMINUB_for_stringop): New.
78340         * sysdeps/x86_64/rawmemchr.S: Update.
78341         Replace with faster SSE2 version.
78342         * sysdeps/x86_64/memrchr.S: New file.
78343         * sysdeps/x86_64/memchr.S: Update.
78344         Replace with faster SSE2 version.
78345
78346 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
78347
78348         * elf/dl-load.c (lose): Add cast to avoid warning.
78349
78350 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78351
78352         * po/ca.po: Update from translation team.
78353
78354         * inet/getnetgrent_r.c: Hook up nscd.
78355         * nscd/Makefile (routines): Add nscd_netgroup.
78356         (nscd-modules): Add netgroupcache.
78357         (CFLAGS-netgroupcache.c): Define.
78358         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
78359         (cache_search): Add const to second parameter.
78360         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
78361         INNETGR.
78362         (dbs): Add netgrdb entry.
78363         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
78364         (verify_persistent_db): Handle netgrdb.
78365         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
78366         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
78367         GETFDNETGR.
78368         (netgroup_response_header): Define.
78369         (innetgroup_response_header): Define.
78370         (datahead): Add netgroup_response_header and innetgroup_response_header
78371         elements.
78372         * nscd/nscd.conf: Add entries for netgroup cache.
78373         * nscd/nscd.h (dbtype): Add netgrdb.
78374         (_PATH_NSCD_NETGROUP_DB): Define.
78375         (netgroup_iov_disabled): Declare.
78376         (xmalloc, xcalloc, xrealloc): Move declarations here.
78377         (cache_search): Adjust prototype.
78378         Add netgroup-related prototypes.
78379         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
78380         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
78381         (__nscd_innetgr): Declare.
78382         * nscd/selinux.c (perms): Use access_vector_t as element type and
78383         add netgroup-related initializers.
78384         * nscd/netgroupcache.c: New file.
78385         * nscd/nscd_netgroup.c: New file.
78386         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
78387         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
78388         For four parameters use innetgr.
78389         * nss/nss_files/files-init.c: Add definition and callback for netgr.
78390         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
78391         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
78392         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
78393
78394         * nscd/connections.c (register_traced_file): Don't register file
78395         for disabled databases.
78396
78397 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
78398
78399         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
78400
78401         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
78402         from tree and freeing node.
78403
78404 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
78405
78406         * nss/nsswitch.c (__nss_database_lookup): Handle
78407         nss_parse_service_list out of memory case.
78408
78409 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
78410
78411         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
78412         out of memory case.
78413
78414 2011-10-04  Andreas Schwab  <schwab@redhat.com>
78415
78416         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
78417         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
78418         pass it down.
78419         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
78420         elf_machine_rela, elf_machine_lazy_rel.
78421         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
78422         (ELF_DYNAMIC_DO_REL): Likewise.
78423         (ELF_DYNAMIC_DO_RELA): Likewise.
78424         (ELF_DYNAMIC_RELOCATE): Likewise.
78425         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
78426         to ELF_DYNAMIC_DO_REL.
78427         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
78428         (dl_main): In trace mode always set __RTLD_NOIFUNC.
78429         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
78430         elf_machine_rela.
78431         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
78432         skip_ifunc, don't call ifunc function if non-zero.
78433         (elf_machine_rela): Likewise.
78434         (elf_machine_lazy_rel): Likewise.
78435         (elf_machine_lazy_rela): Likewise.
78436         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
78437         (elf_machine_lazy_rel): Likewise.
78438         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
78439         Likewise.
78440         (elf_machine_lazy_rel): Likewise.
78441         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78442         Likewise.
78443         (elf_machine_lazy_rel): Likewise.
78444         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
78445         (elf_machine_lazy_rel): Likewise.
78446         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
78447         (elf_machine_lazy_rel): Likewise.
78448         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
78449         (elf_machine_lazy_rel): Likewise.
78450         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
78451         (elf_machine_lazy_rel): Likewise.
78452         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
78453         (elf_machine_lazy_rel): Likewise.
78454         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
78455         (elf_machine_lazy_rel): Likewise.
78456
78457 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
78458
78459         * nss/nss_files/files-init.c (_nss_files_init): Use static
78460         initialization for all the *_traced_file variables.
78461
78462 2011-09-28  Andreas Schwab  <schwab@redhat.com>
78463
78464         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78465
78466 2011-09-27  Roland McGrath  <roland@hack.frob.com>
78467
78468         [BZ #13226]
78469         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
78470
78471 2011-09-27  Andreas Schwab  <schwab@redhat.com>
78472
78473         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
78474         Reread the line before reparsing it.
78475
78476 2011-09-26  Andreas Schwab  <schwab@redhat.com>
78477
78478         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
78479
78480 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
78481             Maxim Kuvyrkov  <maxim@codesourcery.com>
78482             Joseph Myers  <joseph@codesourcery.com>
78483
78484         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
78485         if needed for __stack_chk_guard.
78486
78487 2011-09-19  Roland McGrath  <roland@hack.frob.com>
78488
78489         * sysdeps/posix/spawni.c (script_execute): Always define it.
78490         It will be optimized away if unused.
78491         (maybe_script_execute): New function.
78492         (__spawni): Call it.
78493
78494         * Makerules: Don't include tls.make.
78495         (config-tls): Always set to thread.
78496         * tls.make.c: File removed.
78497
78498 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
78499
78500         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
78501         * config.make.in (CPPFLAGS-config): New substituted variable.
78502
78503 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78504
78505         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
78506
78507         [BZ #13192]
78508         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
78509         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
78510
78511 2011-09-15  Roland McGrath  <roland@hack.frob.com>
78512
78513         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
78514         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
78515         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
78516         (CALL_FAIL): Likewise.
78517         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
78518         (CALL_FAIL): Macro removed.
78519         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
78520
78521 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78522
78523         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
78524         for __FINITE_MATH_ONLY__ == 1.
78525
78526 2011-09-15  Andreas Schwab  <schwab@redhat.com>
78527
78528         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
78529         __ieee754_sqrt instead of sqrt.
78530         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
78531         __ieee754_sqrtf instead of sqrtf.
78532         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
78533         __floorf instead of floorf.
78534         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
78535         __floorf, __truncf instead of floorf, truncf.
78536
78537 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
78538
78539         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
78540
78541         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
78542         __extern_always_inline.
78543         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
78544         32-bit.
78545
78546 2011-09-14  Andreas Schwab  <schwab@redhat.com>
78547
78548         * elf/rtld.c (dl_main): Also relocate in dependency order when
78549         doing symbol dependency testing.
78550
78551 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
78552
78553         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78554         Always define `refsym'.
78555
78556 2011-09-13  Andreas Schwab  <schwab@redhat.com>
78557
78558         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
78559         (__FD_ELT): Renamed from __FDELT.
78560         * misc/bits/select2.h (__FD_ELT): Likewise.
78561         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
78562         __FD_MASK instead of __FDELT, __FDMASK.
78563         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78564         Likewise.
78565         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78566         Likewise.
78567
78568         * elf/Makefile (gen-ldd): Fix pattern.
78569
78570         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
78571         (init_tls): Likewise.
78572
78573 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
78574
78575         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
78576
78577 2011-09-12  Andreas Schwab  <schwab@redhat.com>
78578
78579         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
78580         `struct cmsghdr *' instead of `void *'.
78581         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
78582         Likewise.
78583
78584 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
78585
78586         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
78587         if non-absolute.
78588         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
78589         ldd_rewrite_script.
78590
78591 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
78592
78593         * configure.in: Remove --with-tls option.
78594         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
78595         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
78596         out in case it is missing.
78597         * sysdeps/ia64/elf/configure.in: Likewise.
78598         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
78599         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
78600         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
78601         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
78602         * sysdeps/sh/elf/configure.in: Likewise.
78603         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
78604         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
78605         * sysdeps/x86_64/elf/configure.in: Likewise.
78606         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
78607         * sysdeps/mach/hurd/tls.h: Likewise.
78608
78609         [BZ #13067]
78610         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
78611
78612         [BZ #13090]
78613         * configure.in: Fix use of AC_INIT.
78614
78615         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
78616
78617 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
78618
78619         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
78620         __set_errno.
78621         * malloc/hooks.c: Likewise.
78622
78623         [BZ #11929]
78624         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
78625         variables statically.
78626         (narenas): Initialize.
78627         (list_lock): Initialize.
78628         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
78629         initializtion of main_arena and list_lock.  Small cleanups.
78630         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
78631         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
78632         Add initializers to main_arena and mp_.
78633         (malloc_state): Remove pagesize member.  Change all users to use
78634         GLRO(dl_pagesize).
78635
78636         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
78637         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
78638         is always initialized.
78639
78640         * malloc/malloc.c: Removed unused configurations and dead code.
78641         * malloc/arena.c: Likewise.
78642         * malloc/hooks.c: Likewise.
78643         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
78644
78645         * include/tls.h: Removed.  USE___THREAD must always be defined.
78646         * bits/libc-tsd.h: Don't handle !USE___THREAD.
78647         * elf/dl-libc.c: Likewise.
78648         * elf/dl-tsd.c: Likewise.
78649         * include/errno.h: Likewise.
78650         * include/netdb.h: Likewise.
78651         * include/resolv.h: Likewise.
78652         * inet/herrno-loc.c: Likewise.
78653         * inet/herrno.c: Likewise.
78654         * malloc/arena.c: Likewise.
78655         * malloc/hooks.c: Likewise.
78656         * malloc/malloc.c: Likewise.
78657         * resolv/res-state.c: Likewise.
78658         * resolv/res_libc.c: Likewise.
78659         * sysdeps/i386/dl-machine.h: Likewise.
78660         * sysdeps/ia64/dl-machine.h: Likewise.
78661         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
78662         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
78663         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
78664         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
78665         * sysdeps/sh/dl-machine.h: Likewise.
78666         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
78667         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
78668         * sysdeps/unix/i386/sysdep.S: Likewise.
78669         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
78670         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
78671         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
78672         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
78673         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
78674         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
78675         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
78676         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
78677         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
78678         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
78679         * sysdeps/unix/x86_64/sysdep.S: Likewise.
78680         * sysdeps/x86_64/dl-machine.h: Likewise.
78681         * tls.make.c: Likewise.
78682
78683         * configure.in: Remove --with-__thread option.  Make tests for
78684         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
78685         tls_model attribute fail if no support is available.  Remove
78686         USE_IN_LIBIO.
78687         * Makeconfig: Adjust for dropped configure option.  All features are
78688         now mandatory.
78689         * Makerules: Likewise.
78690         * Versions.def: Likewise.
78691         * argp/argp-fmtstream.c: Likewise.
78692         * argp/argp-fmtstream.h: Likewise.
78693         * argp/argp-help.c: Likewise.
78694         * assert/assert.c: Likewise.
78695         * config.h.in: Likewise.
78696         * config.make.in: Likewise.
78697         * configure: Likewise.
78698         * configure.in: Likewise.
78699         * csu/Versions: Likewise.
78700         * csu/init.c: Likewise.
78701         * elf/tst-audit2.c: Likewise.
78702         * elf/tst-tls10.c: Likewise.
78703         * elf/tst-tls10.h: Likewise.
78704         * elf/tst-tls11.c: Likewise.
78705         * elf/tst-tls12.c: Likewise.
78706         * elf/tst-tls14.c: Likewise.
78707         * elf/tst-tlsmod11.c: Likewise.
78708         * elf/tst-tlsmod12.c: Likewise.
78709         * elf/tst-tlsmod13.c: Likewise.
78710         * elf/tst-tlsmod13a.c: Likewise.
78711         * elf/tst-tlsmod14a.c: Likewise.
78712         * elf/tst-tlsmod15b.c: Likewise.
78713         * elf/tst-tlsmod16a.c: Likewise.
78714         * elf/tst-tlsmod16b.c: Likewise.
78715         * elf/tst-tlsmod7.c: Likewise.
78716         * elf/tst-tlsmod8.c: Likewise.
78717         * elf/tst-tlsmod9.c: Likewise.
78718         * gmon/gmon.c: Likewise.
78719         * grp/fgetgrent_r.c: Likewise.
78720         * grp/putgrent.c: Likewise.
78721         * hurd/fopenport.c: Likewise.
78722         * include/libc-symbols.h: Likewise.
78723         * include/tls.h: Likewise.
78724         * intl/gettextP.h: Likewise.
78725         * intl/loadinfo.h: Likewise.
78726         * locale/global-locale.c: Likewise.
78727         * locale/localeinfo.h: Likewise.
78728         * mach/devstream.c: Likewise.
78729         * malloc/arena.c: Likewise.
78730         * malloc/set-freeres.c: Likewise.
78731         * misc/err.c: Likewise.
78732         * misc/getttyent.c: Likewise.
78733         * misc/mntent_r.c: Likewise.
78734         * posix/getopt.c: Likewise.
78735         * posix/wordexp.c: Likewise.
78736         * pwd/fgetpwent_r.c: Likewise.
78737         * resolv/Versions: Likewise.
78738         * resolv/res_hconf.c: Likewise.
78739         * shadow/fgetspent_r.c: Likewise.
78740         * shadow/putspent.c: Likewise.
78741         * stdio-common/printf_fphex.c: Likewise.
78742         * stdio-common/tmpfile.c: Likewise.
78743         * stdlib/abort.c: Likewise.
78744         * stdlib/fmtmsg.c: Likewise.
78745         * sunrpc/auth_unix.c: Likewise.
78746         * sunrpc/clnt_perr.c: Likewise.
78747         * sunrpc/clnt_tcp.c: Likewise.
78748         * sunrpc/clnt_udp.c: Likewise.
78749         * sunrpc/clnt_unix.c: Likewise.
78750         * sunrpc/openchild.c: Likewise.
78751         * sunrpc/svc_simple.c: Likewise.
78752         * sunrpc/svc_tcp.c: Likewise.
78753         * sunrpc/svc_udp.c: Likewise.
78754         * sunrpc/svc_unix.c: Likewise.
78755         * sunrpc/xdr.c: Likewise.
78756         * sunrpc/xdr_array.c: Likewise.
78757         * sunrpc/xdr_rec.c: Likewise.
78758         * sunrpc/xdr_ref.c: Likewise.
78759         * sunrpc/xdr_stdio.c: Likewise.
78760
78761 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
78762
78763         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78764
78765 2011-07-03  Andreas Jaeger  <aj@suse.de>
78766
78767         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
78768         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
78769         regenerate with gen-libm-tests.pl.
78770
78771 2010-05-12  Petr Baudis  <pasky@suse.cz>
78772
78773         [BZ #11589]
78774         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
78775         around j0() zero points by switching to j1().
78776         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
78777         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
78778         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
78779         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
78780
78781 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
78782
78783         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
78784         instead of 0.
78785         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
78786         instead of 0.
78787         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
78788         Patch in part by Pavel Roskin <proski@gnu.org>.
78789
78790         [BZ #13138]
78791         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
78792         realloc.
78793         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
78794         Free memory block if necessary.
78795
78796         [BZ #12847]
78797         * libio/genops.c (INTDEF): For string streams the _lock pointer can
78798         be NULL.  Don't lock in this case.
78799
78800 2011-09-09  Roland McGrath  <roland@hack.frob.com>
78801
78802         * elf/elf.h (ELFOSABI_GNU): New macro.
78803         (ELFOSABI_LINUX): Define to that.
78804
78805 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
78806
78807         * string/strncat.c (strncat): Undef the symbol in case it has been
78808         defined in bits/string.h.
78809
78810 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
78811
78812         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
78813
78814         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
78815         link map.
78816
78817 2011-08-17  Andreas Jaeger  <aj@suse.de>
78818
78819         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
78820
78821 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
78822             Ian Lance Taylor  <iant@google.com>
78823
78824         * math/libm-test.inc (lround_test): New testcase.
78825         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
78826
78827 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
78828
78829         * Makefile: Remove support for automatic cvs check-ins.
78830         * Makerules: Likewise.
78831         * config.make.in: Likewise.
78832         * configure.in: Likewise.
78833         * intl/Makefile: Likewise.
78834         * locale/Makefile: Likewise.
78835         * po/Makefile: Likewise.
78836         * posix/Makefile: Likewise.
78837         * sysdeps/gnu/Makefile: Likewise.
78838         * sysdeps/mach/hurd/Makefile: Likewise.
78839         * sysdeps/sparc/sparc32/Makefile: Likewise.
78840
78841         [BZ #13118]
78842         * posix/Makefile (bug-regex32-ENV): Define.
78843         Patch by John Stanley <jpsinthemix@verizon.net>.
78844
78845         * misc/Makefile (headers): Add bits/select2.h.
78846         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
78847         * misc/bits/select2.h: New file.
78848         * include/bits/select2.h: New file.
78849         * debug/Makefile (routines): Add fdelt_chk.
78850         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
78851         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
78852         FD_ISSET.
78853         * debug/fdelt_chk.c: New file.
78854
78855         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
78856         * wcsmbs/test-wmemcmp.c: Likewise.
78857         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
78858         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
78859
78860 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78861
78862         * string/Makefile (strop-tests): Add memcmp.
78863         * string/test-wmemcmp.c: New file.
78864         * string/test-memcmp.c: Add wmemcmp support.
78865
78866 2011-09-08  Roland McGrath  <roland@hack.frob.com>
78867
78868         [BZ #13153]
78869         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
78870         2011-07-19 change.
78871
78872         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
78873         garbage value in a __mach_port_mod_refs call in the cases of the
78874         task-self and thread-self ports.
78875
78876 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
78877
78878         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
78879
78880 2011-09-08  Andreas Schwab  <schwab@redhat.com>
78881
78882         * elf/dl-load.c (lose): Check for non-null L.
78883
78884 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
78885
78886         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
78887
78888         * elf/dl-libc.c (dlerror_run): Pass back error code from
78889         dl_catch_error.
78890
78891         [BZ #13123]
78892         * elf/dl-load.c (lose): Free l_origin if it is valid.
78893
78894         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
78895         names.
78896         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
78897         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
78898         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
78899         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
78900         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
78901         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
78902
78903 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78904
78905         * sysdeps/powerpc/fpu/e_hypot.c: New file.
78906         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
78907         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
78908         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
78909         * sysdeps/powerpc/fpu/k_cosf.c: New file.
78910         * sysdeps/powerpc/fpu/k_sinf.c: New file.
78911         * sysdeps/powerpc/fpu/s_cosf.c: New file.
78912         * sysdeps/powerpc/fpu/s_sinf.c: New file.
78913         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
78914         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
78915
78916 2011-08-15  Alan Modra  <amodra@gmail.com>
78917
78918         [BZ #13092]
78919         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
78920         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
78921         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
78922         ppc_mcount to static-only-routines.
78923         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
78924         __mcount_internal.
78925         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
78926         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
78927
78928 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
78929
78930         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
78931         for finite and infinity parameters.
78932
78933 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
78934
78935         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
78936         and add nop instructions for throughput optimization.
78937         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
78938
78939 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
78940
78941         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
78942         aligned copy for power7 with vector-scalar instructions.
78943         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
78944
78945 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
78946
78947         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
78948         AVX check.
78949
78950 2011-09-07  Andreas Schwab  <schwab@redhat.com>
78951
78952         [BZ #13144]
78953         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
78954         last change.
78955
78956 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
78957
78958         * sysdeps/unix/sysv/linux/x86_64/init-first.c
78959         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
78960         syscall wrapper around clock_gettime in __vdso_clock_gettime.
78961         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
78962         clock_gettime.
78963
78964 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
78965
78966         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
78967         Forgot to demangle the pointer.
78968
78969         * sysdeps/i386/sysdep.h: Define atom_text_section.
78970         * sysdeps/x86_64/sysdep.h: Likewise.
78971         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
78972         section with atom_text_section.
78973         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
78974         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
78975         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
78976         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
78977         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
78978
78979         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
78980         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
78981         already be defined.  Change to take two parameters and don't assign
78982         result to variable.  Adjust all users.
78983         Define INTERNAL_GETTIME if not already defined.
78984         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
78985         call.
78986         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
78987         HAVE_CLOCK_GETTIME_VSYSCALL.
78988         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
78989
78990         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
78991         gettimeofday vsyscall, just use time.
78992
78993 2011-09-06  Andreas Schwab  <schwab@redhat.com>
78994
78995         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
78996         <errno.h>.
78997
78998 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
78999
79000         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
79001         syscall on x86-64.
79002         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
79003         syscall.
79004         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
79005         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
79006         syscall if possible.
79007
79008 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79009
79010         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
79011         e_ident.  Don't pass to find_mapsXX.
79012         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
79013
79014 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79015
79016         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79017         strchr-sse2-no-bsf strrchr-sse2-no-bsf
79018         * sysdeps/x86_64/multiarch/strchr.S: Update.
79019         Check bit_slow_BSF bit.
79020         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
79021         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
79022         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
79023
79024 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79025
79026         [BZ #13134]
79027         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
79028         before glibc 2.15.
79029         (tryshell): Define.
79030         (__spawni): Change last parameter to be flag.  Test
79031         SPAWN_XFLAGS_USE_PATH flag to use path or not.
79032         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
79033         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
79034         * posix/spawni.c: Likewise.
79035         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
79036         * posix/spawnp.c: Likewise.  Change normal version to use
79037         SPAWN_XFLAGS_USE_PATH.
79038         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
79039         SPAWN_XFLAGS_TRY_SHELL.
79040
79041         [BZ #13150]
79042         * posix/glob.h: Remove gcc 1.x support.
79043
79044         [BZ #13068]
79045         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
79046
79047 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79048
79049         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79050         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
79051         strrchr-sse2-bsf
79052         * sysdeps/i386/i686/multiarch/strchr.S: New file.
79053         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
79054         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
79055         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
79056         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
79057         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
79058
79059 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79060
79061         * sysdeps/x86_64/wcscmp.S: New file.
79062
79063         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
79064         wcscmp-c wcscmp-sse2
79065         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
79066         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
79067         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
79068         * wcsmbs/wcscmp.c: Allow renaming.
79069
79070 2011-09-05  David S. Miller  <davem@davemloft.net>
79071
79072         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
79073         stack slot, rather than the struct return pointer slot.
79074         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
79075         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
79076         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
79077         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
79078
79079 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79080
79081         * po/ja.po: Update from translation team.
79082
79083         [BZ #13144]
79084         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
79085         kernel in 64-bit binaries.
79086
79087 2011-09-01  David S. Miller  <davem@davemloft.net>
79088
79089         * elf/elf.h (HWCAP_SPARC_*): Move to..
79090         * sysdeps/sparc/sysdep.h: this new file and add new values.
79091         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
79092         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
79093         _DL_HWCAP_COUNT to 24.
79094         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
79095         entries.
79096         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
79097         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
79098         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
79099         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
79100         instead of magic constants.
79101         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
79102
79103 2011-08-31  David S. Miller  <davem@davemloft.net>
79104
79105         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
79106         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
79107         Reimplement to do errno handling inline.
79108         (SYSCALL_ERROR_HANDLER): New macro.
79109         (__SYSCALL_STRING): Do not do errno handling in asm.
79110         (__CLONE_SYSCALL_STRING): Delete.
79111         (__INTERNAL_SYSCALL_STRING): Delete.
79112         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
79113         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
79114         (PSEUDO): Reimplement to do errno handling inline.
79115         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
79116         (SYSCALL_ERROR_HANDLER): New macro.
79117         (__SYSCALL_STRING): Do not do errno handling in asm.
79118         (__CLONE_SYSCALL_STRING): Delete.
79119         (__INTERNAL_SYSCALL_STRING): Delete.
79120         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
79121         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
79122         i386.
79123         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
79124         (inline_syscall*): Add 'err' argument.
79125         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
79126         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
79127         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
79128         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
79129
79130         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
79131         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
79132
79133 2011-08-30  Andreas Schwab  <schwab@redhat.com>
79134
79135         * elf/rtld.c (dl_main): Relocate objects in dependency order.
79136
79137 2011-08-29  Jiri Olsa <jolsa@redhat.com>
79138
79139         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
79140         directive.
79141
79142 2011-08-24  David S. Miller  <davem@davemloft.net>
79143
79144         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
79145
79146 2011-08-24  Andreas Schwab  <schwab@redhat.com>
79147
79148         * elf/Makefile: Add rules to build and run unload8 test.
79149         * elf/unload8.c: New file.
79150         * elf/unload8mod1.c: New file.
79151         * elf/unload8mod1x.c: New file.
79152         * elf/unload8mod2.c: New file.
79153         * elf/unload8mod3.c: New file.
79154
79155         * elf/dl-close.c (_dl_close_worker): Reset private search list if
79156         it wasn't used.
79157
79158 2011-08-23  David S. Miller  <davem@davemloft.net>
79159
79160         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
79161         subtract stack bias.
79162         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
79163         %sp not %fp in calculations.
79164         (_JMPBUF_UNWINDS_ADJ): Likewise.
79165
79166         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
79167         (aio_suspend): Call it to force an exception region around the
79168         AIO_MISC_WAIT() invocation.
79169
79170 2011-08-23  Andreas Schwab  <schwab@redhat.com>
79171
79172         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
79173         backslash.
79174
79175 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
79176
79177         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
79178         protection macro.
79179         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
79180         and <dl-machine.h>.
79181         (Elf64_FuncDesc): Remove.
79182
79183 2011-08-22  David S. Miller  <davem@davemloft.net>
79184
79185         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
79186         sigaltstack check, add missing cfi directives.
79187         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
79188         missing cfi directives, and sigaltstack handling.
79189
79190 2011-08-16  Andreas Schwab  <schwab@redhat.com>
79191
79192         [BZ #11724]
79193         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
79194         object is seen twice.
79195         * elf/dl-fini.c (_dl_sort_fini): Likewise.
79196
79197         * elf/Makefile (distribute): Add tst-initorder2.c.
79198         (tests): Add tst-initorder2.
79199         (modules-names): Add tst-initorder2a tst-initorder2b
79200         tst-initorder2c tst-initorder2d.  Add rules to build them.
79201         ($(objpfx)tst-initorder2.out): New rule.
79202         * elf/tst-initorder2.c: New file.
79203         * elf/tst-initorder2.exp: New file.
79204
79205 2011-08-22  Andreas Schwab  <schwab@redhat.com>
79206
79207         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
79208
79209         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
79210         dependencies back to end of function.
79211
79212         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
79213         $(elfobjdir)/ld.so.
79214
79215 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
79216
79217         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
79218         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
79219         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
79220         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
79221         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
79222         of __vdso_gettimeofday.
79223         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
79224         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
79225         attribute_hidden.
79226         (_libc_vdso_platform_setup): Remove initialization of
79227         __vdso_gettimeofday and __vdso_time.
79228
79229 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79230
79231         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
79232         and fgetc_unlocked.
79233         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
79234         getc_unlocked.
79235
79236         * elf/dl-open.c (add_to_global): Report additions to the global scope
79237         for LD_DEBUG=scopes.
79238         (dl_open_worker): Also print scope of newly loaded dependencies.
79239         (_dl_show_scope): Indicate if there is no scope.
79240
79241         [BZ #13114]
79242         * stdio-common/Makefile (tests): Add bug24.
79243         * stdio-common/bug24.c: New file.
79244
79245 2011-08-19  Andreas Jaeger  <aj@suse.de>
79246
79247         [BZ #13114]
79248         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
79249         non-existant file when using close-on-exec mode.
79250
79251 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79252
79253         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
79254         the very first instruction.
79255
79256         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
79257         the CFI state in the end.
79258         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
79259         inclusion of dl-trampoline.h.
79260         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
79261
79262 2011-08-19  Andreas Schwab  <schwab@redhat.com>
79263
79264         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
79265         expectations for long double.
79266
79267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
79268         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
79269
79270 2011-08-14  David S. Miller  <davem@davemloft.net>
79271
79272         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
79273         artificual limit depends upon the system page size.
79274
79275 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79276
79277         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
79278         * resolv/Makefile: Define CFLAGS-libresolv.
79279
79280 2011-08-17  Andreas Schwab  <schwab@redhat.com>
79281
79282         * nss/makedb.c (compute_tables): Make variables used in nested
79283         function static.
79284
79285 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79286
79287         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
79288         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
79289         if buffer was too small.
79290
79291         * elf/pldd.c (main): Attach to all threads in the process.
79292         Rewrite /proc handling to use *at functions.
79293
79294 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
79295
79296         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
79297         specifies first scope to show.
79298         (dl_open_worker): Update callers.  Move printing scope of new
79299         object to before the relocation.
79300         * elf/rtld.c (dl_main): Update _dl_show_scope call.
79301         * sysdeps/generic/ldsodefs.h: Update declaration.
79302
79303         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
79304         string for the scope number.
79305
79306 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
79307
79308         * nscd/servicescache.c (cache_addserv): Make sure written is always
79309         initialized.
79310
79311 2011-08-14  Roland McGrath  <roland@hack.frob.com>
79312
79313         * sysdeps/i386/i486/bits/atomic.h
79314         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
79315         statement expression, so as to suppress "set but not used" warning.
79316         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
79317
79318         * string/strncat.c (STRNCAT): Use prototype definition.
79319
79320         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
79321         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
79322         -Iprograms here.
79323         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
79324         (localedef-modules): Add localedef.
79325         (locale-modules): Add locale.
79326
79327         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
79328         * elf/rtld.c (dl_main): Invert order of assignment in last change,
79329         to avoid a warning.
79330
79331 2011-08-14  David S. Miller  <davem@davemloft.net>
79332
79333         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
79334         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
79335
79336 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
79337
79338         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
79339         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
79340         * elf/rtld.c (dl_main): Set l_name of vDSO.
79341         Call _dl_show_scope when DL_DEBUG_SCOPES.
79342         (process_dl_debug): Recognize scopes flag and also set it for all.
79343         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
79344         Declare _dl_show_scope.
79345
79346         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
79347         (do_dlopen): Pass caller_dlopen to dl_open.
79348         (__libc_dlopen_mode): Initialize caller_dlopen.
79349
79350         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
79351         of libc.  Make tolower call locale-independent.  Optimize a bit by
79352         using isdigit instead of isalnum.
79353         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
79354
79355 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
79356
79357         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
79358         was a dependency or dynamically loaded.
79359
79360 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
79361
79362         * intl/l10nflist.c: Allow architecture-specific pop function.
79363         * sysdeps/x86_64/l10nflist.c: New file.
79364
79365         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
79366         classification.
79367
79368 2011-08-10  Andreas Schwab  <schwab@redhat.com>
79369
79370         * include/dirent.h: Add libc_hidden_proto for scandirat and
79371         scandirat64.  Don't declare __scandirat64.
79372         * dirent/scandirat.c: Add libc_hidden_def.
79373         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
79374         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
79375
79376 2011-08-10  David S. Miller  <davem@davemloft.net>
79377
79378         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
79379         enum.
79380         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79381         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79382         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79383
79384 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
79385
79386         * Versions.def [libc]: Add GLIBC_2.15.
79387         * dirent/Makefile (routines): Add scandirat and scandirat64.
79388         * dirent/Versions [libc]: Export scandirat and scandirat64 for
79389         GLIBC_2.15.
79390         * dirent/dirent.h: Declare scandirat and scandirat64.
79391         * dirent/scandirat.c: New file.
79392         * dirent/scandirat64.c: New file.
79393         * sysdeps/wordsize-64/scandirat.c: New file.
79394         * sysdeps/wordsize-64/scandirat64.c: New file.
79395         * dirent/opendir.c: Define opendirat.
79396         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
79397         using scandirat.
79398         * dirent/scandir64.c: Adjust for scandir.c change.
79399         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
79400         __scandirat64, and __scandir_cancel_handler.
79401         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
79402         additional parameter and use openat instead of open (outside of ld.so).
79403         Add new __opendir as wrapper around __opendirat.
79404         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
79405         here without requiring old scandirat implementation.
79406
79407 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
79408
79409         * dirent/scandir.c (cancel_handler): Renamed to
79410         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
79411         defined.  Adjust users.
79412         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
79413         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
79414
79415 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
79416
79417         * string/test-string.h (IMPL): Use __STRING to expand name and then
79418         stringify it.
79419
79420         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
79421         of cleanups.
79422
79423 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79424
79425         * string/Makefile: Update.
79426         (strop-tests): Append strncat.
79427         * string/test-wcscmp.c: New file.
79428         New comprehensive test for wcscmp.
79429         * string/test-strcmp.c: Update.
79430         (WIDE): New define.
79431
79432 2011-07-22  Andreas Schwab  <schwab@redhat.com>
79433
79434         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
79435         line.
79436
79437 2011-07-26  Andreas Schwab  <schwab@redhat.com>
79438
79439         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
79440         encoding to ACE if AI_IDN.
79441
79442 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
79443
79444         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
79445         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
79446
79447 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79448
79449         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
79450         Fix overflow bug in strncat.
79451         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
79452
79453         * string/test-strncat.c: Update.
79454         Add new tests for checking overflow bugs.
79455
79456 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79457
79458         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79459         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
79460         * sysdeps/i386/i686/multiarch/strcat.S: New file.
79461         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
79462         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
79463         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
79464         * sysdeps/i386/i686/multiarch/strncat.S: New file.
79465         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
79466         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
79467
79468         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
79469         (USE_AS_STRCAT): Define.
79470         Add strcat and strncat support.
79471         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79472
79473 2011-07-25  Andreas Schwab  <schwab@redhat.com>
79474
79475         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
79476         __n bigger than INT_MAX+1.
79477         (__strncmp_g): Likewise.
79478
79479 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
79480
79481         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
79482         * libio/stido.h: Likewise.
79483
79484         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
79485         (AF_NFC): Define.
79486         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
79487         (AF_NFC): Define.
79488
79489         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
79490         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79491         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79492         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
79493         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79494
79495         [BZ #13021]
79496         * scripts/test-installation.pl: Don't expect libnss_test1 to be
79497         installed.
79498
79499         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
79500         typo.
79501         (_dl_x86_64_save_sse): Likewise.
79502
79503 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
79504
79505         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
79506         OSXSAVE.
79507         (_dl_x86_64_save_sse): Likewise.
79508
79509         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
79510
79511         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
79512
79513 2011-07-21  Andreas Schwab  <schwab@redhat.com>
79514
79515         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
79516         change.
79517         (_dl_x86_64_save_sse): Use correct AVX check.
79518
79519 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79520
79521         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
79522         bug in strncpy/strncat.
79523         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
79524
79525 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
79526
79527         * string/tester.c (test_strcat): Add tests for different alignments
79528         of source and destination.
79529         (test_strncat): Likewise.
79530
79531 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79532
79533         [BZ #12852]
79534         * posix/glob.c (glob): Check passed in values before using them in
79535         expressions to avoid some overflows.
79536         (glob_in_dir): Likewise.
79537
79538         [BZ #13007]
79539         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
79540         check for AVX enablement so that we don't crash with old kernels and
79541         new hardware.
79542         * elf/tst-audit4.c: Add same checks here.
79543         * elf/tst-audit6.c: Likewise.
79544
79545         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
79546
79547 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
79548
79549         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
79550
79551 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79552
79553         * po/cs.po: Update from translation team.
79554         * po/bg.po: Likewise.
79555
79556 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
79557
79558         * misc/sys/cdefs.h: Add support for const attribute.
79559         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
79560         to gnu_dev_{major,minor,makedev} functions.
79561
79562 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
79563
79564         * intl/dcigettext.c (get_output_charset): Add missing bracket.
79565
79566 2011-07-20  Andreas Schwab  <schwab@redhat.com>
79567
79568         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
79569         strlen results.
79570
79571 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79572
79573         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
79574         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
79575         register in order to avoid conflicts with the soft frame pointer
79576         being held in r11 when necessary.
79577         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
79578         (INTERNAL_VSYSCALL_NCS): Likewise.
79579
79580 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
79581
79582         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
79583         * elf/dl-fini.c (_dl_fini): Adjust caller.
79584         * elf/dl-close.c (_dl_close_worker): Likewise.
79585         * sysdeps/generic/ldsodefs.h: Adjust declaration.
79586
79587 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
79588
79589         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
79590         "aux_cache->nlibs < 0".
79591
79592         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
79593         in the reload-count case.
79594
79595 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79596
79597         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79598         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
79599         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
79600         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
79601         * sysdeps/x86_64/multiarch/strcat.S: New file.
79602         * sysdeps/x86_64/multiarch/strncat.S: New file.
79603         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
79604         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
79605         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
79606         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
79607         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
79608         (USE_AS_STRCAT): Define.
79609         Add strcat and strncat support.
79610         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79611         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
79612         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
79613         * string/strncat.c: Update.
79614         (USE_AS_STRNCAT): Define.
79615         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79616         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
79617         and i7.
79618         * sysdeps/x86_64/multiarch/init-arch.h
79619         (bit_Prefer_PMINUB_for_stringop): New.
79620         (index_Prefer_PMINUB_for_stringop): Likewise.
79621         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
79622         bit_Prefer_PMINUB_for_stringop.
79623
79624 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79625
79626         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
79627         buffer64.
79628         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
79629         of casting of buffer.
79630         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
79631         buffer32 and buffer64.
79632         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
79633         writes instead of casting of buffer.
79634         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
79635         buffer32.
79636         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
79637         casting of buffer.
79638
79639 2011-07-19  Andreas Schwab  <schwab@redhat.com>
79640
79641         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
79642
79643 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79644
79645         * nscd/nscd.c (termination_handler): Don't do anything for a database
79646         if it has not yet been initialized.
79647
79648 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
79649
79650         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
79651
79652 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
79653
79654         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
79655
79656 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
79657
79658         * po/nl.po: Update from translation team.
79659         * po/sv.po: Likewise.
79660
79661 2011-07-16  Roland McGrath  <roland@hack.frob.com>
79662
79663         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
79664         now disallowed by GCC.
79665
79666         * configure.in (use-default-link): Default to yes if a test -shared
79667         link meets our qualifications.
79668         * configure: Regenerated.
79669
79670         * config.make.in (output-format): New variable.
79671         * configure.in: Check for ld --print-output-format support.
79672         * configure: Regenerated.
79673         * Makerules ($(common-objpfx)format.lds)
79674         [$(output-format) != unknown]: Just use $(output-format),
79675         instead of the linker-script munging.
79676
79677 2011-07-14  Roland McGrath  <roland@hack.frob.com>
79678
79679         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
79680         of $(common-objpfx)shlib.lds.
79681         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
79682
79683         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
79684         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
79685
79686         * configure.in (-z relro check): Adjust test code to add a large
79687         writable data section after it.
79688         * configure: Regenerated.
79689
79690 2011-07-11  Roland McGrath  <roland@hack.frob.com>
79691
79692         * configure.in (-z relro check): Fix test code to make the variable
79693         truly const.
79694         * configure: Regenerated.
79695
79696 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
79697
79698         * nscd/nscd.h (struct traced_file): Define.
79699         (struct database_dyn): Remove inotify_descr, reset_res, and filename
79700         elements.  Add traced_files.
79701         (inotify_fd): Declare.
79702         (register_traced_file): Declare.
79703         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
79704         (inotify_fd): Export.
79705         (resolv_conf_descr): Remove.
79706         (nscd_init): Move inotify descriptor creation to main.
79707         Don't register files for notification here.
79708         (register_traced_file): New function.
79709         (invalidate_cache): Don't use reset_res to determine whether to call
79710         res_init, go through the list of registered files.
79711         (main_loop_poll): The inotify descriptors are now stored in the
79712         structures for the traced files.
79713         (main_loop_epoll): Likewise.
79714         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
79715         to __nss_disable_nscd.
79716         * nscd/cache.c (prune_cache): There is no single inotify descriptor
79717         for a database anymore.  Check the records for all the registered
79718         files instead.
79719         * nss/Makefile (libnss_files-routines): Add files-init.
79720         (libnss_db-routines): Add db-init.
79721         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
79722         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
79723         * nss/nss_db/db-init.c: New file.
79724         * nss/nss_files/files-init.c: New file.
79725         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
79726         __nss_lookup_function.
79727         (__nss_lookup_function): Call nss_load_library.
79728         (nss_load_all_libraries): New function.
79729         (__nss_disable_nscd): Take parameter with callback function for files
79730         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
79731         used for the cached services.
79732         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
79733         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
79734         options for features to all the files in nscd.
79735
79736         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
79737
79738 2011-07-10  Roland McGrath  <roland@hack.frob.com>
79739
79740         * csu/elf-init.c (__libc_csu_init): Comment typo.
79741
79742 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
79743
79744         * po/pl.po: Update from translation team.
79745         * po/ja.po: Likewise.
79746         * po/ru.po: Likewise.
79747         * po/ko.po: Likewise.
79748         * po/fr.po: Likewise.
79749
79750 2011-07-09  Roland McGrath  <roland@hack.frob.com>
79751
79752         * configure.in (.ctors/.dtors header and trailer check):
79753         Use an empirical test on a built program.
79754         * configure: Regenerated.
79755
79756         * configure.in (-z relro check): Use an empirical test on a built DSO.
79757         Detect, but do not require, on ia64.
79758         * configure: Regenerated.
79759
79760         * configure.in (READELF): Find it with AC_CHECK_TOOL.
79761         Update tests that use readelf to use $READELF instead.
79762         * configure: Regenerated.
79763
79764 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
79765
79766         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
79767         if the result is not used.
79768
79769 2011-07-05  Andreas Jaeger  <aj@suse.de>
79770
79771         [BZ#9696]
79772         * stdlib/tst-strtod.c: Add testcase.
79773
79774 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
79775
79776         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
79777         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
79778         The latter has a higher limit.  Take additional parameter to pass to
79779         the new function.
79780         (__pathconf): Pass file to __statfs_link_max.
79781         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
79782         __statfs_link_max.
79783         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
79784         __statfs_link_max.
79785
79786         [BZ #12868]
79787         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
79788         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
79789         Handle Lustre.
79790         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
79791         (__statfs_filesize_max): Likewise.
79792         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
79793
79794 2011-07-05  Andreas Jaeger  <aj@suse.de>
79795
79796         * resolv/res_comp.c (dn_skipname): Remove unused variable.
79797
79798 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
79799
79800         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
79801         `status' variable.
79802         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
79803         Likewise.
79804
79805 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
79806
79807         * Makefile (strop-tests): Add strncat.
79808         * string/test-strncat.c: New file.
79809
79810 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
79811
79812         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
79813
79814 2011-06-21  Andreas Jaeger  <aj@suse.de>
79815
79816         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
79817         Copy rule from iconvdata/Makefile.
79818
79819 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
79820
79821         [BZ #12922]
79822         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
79823         but no long options are defined, just return 'W'.
79824
79825 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
79826
79827         [BZ #9696]
79828         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
79829
79830 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
79831
79832         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
79833         netgroups to read.
79834         (innetgr): Likewise.
79835
79836 2011-07-05  Roland McGrath  <roland@hack.frob.com>
79837
79838         * config.make.in (install_root): Default to $(DESTDIR).
79839
79840 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
79841
79842         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
79843
79844 2011-07-02  Roland McGrath  <roland@hack.frob.com>
79845
79846         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
79847
79848         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
79849         containing directory rather than embedding absolute directory names.
79850
79851         * scripts/check-local-headers.sh: Rewritten using awk.
79852         Match by word, not by line.  Print error messages for matches.
79853         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
79854
79855         * Makerules [shlib-lds-flags empty]:
79856         ($(common-objpfx)libc_pic.opts): New target.
79857         ($(common-objpfx)libc_pic.os.clean): New target.
79858         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
79859
79860         * config.make.in (OBJCOPY): New variable.
79861         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
79862         * configure: Regenerated.
79863
79864         * config.make.in (use-default-link): New variable.
79865         * configure.in (use_default_link): Grok --with-default-link to set it.
79866         * configure: Regenerated.
79867         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
79868         (shlib-lds, shlib-lds-flags): Define to empty.
79869
79870         * Makerules (shlib-lds): New variable.
79871         (shlib-lds-flags): New variable.
79872         (build-shlib, build-moduile, build-module-asneeded): Use it.
79873         ($(common-objpfx)libc.so): Use $(shlib-lds).
79874         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
79875         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
79876
79877         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
79878         DT_FLAGS/DT_FLAGS_1 with zero flags.
79879
79880         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
79881         linker script munging.
79882
79883 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
79884
79885         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
79886         as 128-bit value.
79887         * crypt/sha512.c (sha512_process_block): Perform total addition using
79888         128-bit if possible.
79889         (__sha512_finish_ctx): Likewise.
79890         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
79891         as 64-bit value.
79892         * crypt/sha256.c (SWAP64): Define.
79893         (sha256_process_block): Perform total addition using 64-bit if
79894         possible.
79895         (__sha256_finish_ctx): Likewise.
79896
79897 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
79898
79899         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
79900         * nscd/initgrcache.c (addinitgroupsX): Likewise.
79901         * nscd/hstcache.c (cache_addhst): Likewise.
79902         * nscd/grpcache.c (cache_addgr): Likewise.
79903         * nscd/aicache.c (addhstaiX): Likewise.
79904         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
79905
79906 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
79907
79908         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
79909         * nscd/initgrcache.c (addinitgroupsX): Likewise.
79910         * nscd/hstcache.c (cache_addhst): Likewise.
79911         * nscd/grpcache.c (cache_addgr): Likewise.
79912         * nscd/aicache.c (addhstaiX): Likewise.
79913
79914 2011-07-01  Andreas Schwab  <schwab@redhat.com>
79915
79916         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
79917         domain only when needed.
79918
79919 2011-06-30  Andreas Schwab  <schwab@redhat.com>
79920
79921         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
79922         is always restored.
79923
79924 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
79925
79926         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
79927         are re-adding the entry.
79928         * nscd/servicescache.c (cache_addserv): Likewise.
79929
79930 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
79931
79932         * sysdeps/generic/dl-irel.h: fix protection against multiple
79933         inclusions.
79934         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
79935
79936 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
79937
79938         [BZ #12935]
79939         * malloc/memusage.sh: Fix quoting in message.
79940         * debug/xtrace.sh: Likewise.
79941
79942         * configure.in: Remove support for --experimental-malloc option, make
79943         it the default.
79944         * config.make.in: Likewise.
79945         * malloc/Makefile: Likewise.
79946
79947 2011-06-27  Andreas Schwab  <schwab@redhat.com>
79948
79949         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
79950         two-byte characters.
79951
79952 2011-06-27  Roland McGrath  <roland@hack.frob.com>
79953
79954         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
79955         AC_CACHE_CHECK invocation.
79956         * configure: Regenerated.
79957
79958         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
79959
79960 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
79961
79962         [BZ #12350]
79963         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
79964         bit from old_res_options.
79965
79966         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
79967
79968         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
79969         value type for setfct.
79970
79971 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
79972
79973         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
79974         __gettimeofday instead of gettimeofday.
79975
79976 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
79977
79978         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
79979
79980 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
79981
79982         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
79983
79984         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
79985         info.
79986
79987 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
79988
79989         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79990         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
79991         strcpy-sse2-unaligned strncpy-sse2-unaligned
79992         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
79993         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
79994         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
79995         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
79996         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
79997         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
79998         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
79999         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
80000         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
80001         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
80002         (STRCPY): Support SSE2 and SSSE3 versions.
80003
80004 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
80005
80006         [BZ #12874]
80007         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
80008         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
80009         kernels which artificially limit size of requests.
80010
80011 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80012
80013         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80014         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80015         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
80016         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
80017         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
80018         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
80019         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
80020         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
80021         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
80022         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
80023         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
80024         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
80025         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
80026         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
80027         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
80028         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80029         Enable unaligned load optimization for Intel Core i3, i5 and i7
80030         processors.
80031         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
80032         Define.
80033         (index_Fast_Unaligned_Load): Define.
80034         (HAS_FAST_UNALIGNED_LOAD): Define.
80035
80036 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
80037
80038         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
80039
80040 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80041
80042         [BZ #12907]
80043         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
80044         until it is clear that the information is realy needed.
80045         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
80046
80047 2011-06-22  Andreas Schwab  <schwab@redhat.com>
80048
80049         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
80050
80051 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80052
80053         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80054         /sys/devices/system/cpu/online if it is usable.
80055
80056         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
80057         reading the information from the /proc filesystem to once a second.
80058
80059 2011-06-21  Andreas Jaeger  <aj@suse.de>
80060
80061         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
80062         NULL after inclusion of kernel headers.
80063
80064 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
80065
80066         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
80067         calls to internal_setent.
80068
80069         [BZ #12885]
80070         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
80071         addresses using gethostbyname4_r ignore IPv4 addresses.
80072
80073         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
80074         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
80075
80076         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
80077
80078 2011-06-20  David S. Miller  <davem@davemloft.net>
80079
80080         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
80081         inclusions.
80082         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
80083
80084         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
80085         (elf_irel): Use it.
80086         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
80087         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
80088         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
80089         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
80090         * sysdeps/x86_64/dl-irel.h: Likewise.
80091
80092         * elf/dl-runtime.c: Use elf_ifunc_invoke.
80093         * elf/dl-sym.c: Likewise.
80094
80095 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80096
80097         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
80098         need to dereference resplen2.
80099
80100 2011-06-14  Andreas Schwab  <schwab@redhat.com>
80101
80102         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
80103
80104 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80105
80106         * Makeconfig: Define vardbdir and inst_vardbdir.
80107         * nss/Makefile: Add rules to install db-Makefile.
80108
80109         * nss/nss_db/db-XXX.c: Cleanup.
80110
80111         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
80112         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
80113         GLIBC_PRIVATE.
80114         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
80115         * nss/makedb.c: Implement -g option to specify that value strings
80116         are generated and should not be added to table iterated over for
80117         get*ent calls.
80118         * nss/nss_db/db-initgroups.c: New file.
80119
80120         * nss/getent.c: Add support for initgroups lookups through getgrouplist
80121         interface.
80122
80123         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
80124         (internal_getgrouplist): Adjust to name change.
80125         Update use_initgroups_entry if this is not the first call.
80126         * nss/databases.def: Add initgroups entry.
80127
80128         * nss/makedb.c (compute_tables): Check result of multiple hash table
80129         sizes to minimize maximum chain length.
80130
80131 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
80132
80133         * Versions.def: Add entry for libnss_db.
80134         * shlib-versions: Likewise.
80135         * nss/Makefile: Add rules to build libnss_db.
80136         * nss/Versions: Add libnss_db information.  Organize libnss_files
80137         entries better.
80138         * nss/db-Makefile: Add gshadow support.  Change rules for the new
80139         makedb progra.  Some minor improvements to generate smaller files.
80140         * nss/nss_db/nss_db.h: Move NSS database header data structures to
80141         here from...
80142         * nss/makedb.c: ...here.
80143         Improve database format to be smaller and require less memory at
80144         runtime.
80145         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
80146         db anymore.
80147         * nss/nss_db/db-netgrp.c: Likewise.
80148         * nss/nss_db/db-open.c: Likewise.
80149         * nss/nss_files/flies-XXX.x: Adjust comments.
80150         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
80151         * nss/nss_files/files-grp.c: Likewise.
80152         * nss/nss_files/files-hosts.c: Likewise.
80153         * nss/nss_files/files-network.c: Likewise.
80154         * nss/nss_files/files-proto.c: Likewise.
80155         * nss/nss_files/files-pwd.c: Likewise.
80156         * nss/nss_files/files-rpc.c: Likewise.
80157         * nss/nss_files/files-service.c: Likewise.
80158         * nss/nss_files/files-sgrp.c: Likewise.
80159         * nss/nss_files/files-spwd.c: Likewise.
80160         * nss/nss_db/db-alias.c: Removed.
80161         * nss/nss_db/dummy-db.h: Removed.
80162
80163 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
80164
80165         * nss/makedb.c: Rewritten to not use database library.
80166         * nss/Makefile: Update to build new makedb program.
80167
80168 2011-06-14  Andreas Jaeger  <aj@suse.de>
80169
80170         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
80171         memset declaration.
80172
80173 2011-06-10  Andreas Schwab  <schwab@redhat.com>
80174
80175         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
80176         tmpbuf.
80177
80178 2011-06-10  Roland McGrath  <roland@hack.frob.com>
80179
80180         * Makerules (shlib.lds): Fail if the linker script comes out empty.
80181         * elf/Makefile ($(objpfx)ld.so): Likewise.
80182
80183         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
80184         Don't list ld.so twice in dependencies.
80185
80186         * posix/bug-regex31.c: Include <stdlib.h>.
80187
80188         * nscd/hstcache.c (cache_addhst): Remove unused variable.
80189
80190         * nis/nss_compat/compat-spwd.c
80191         (getspent_next_nss_netgr): Remove unused variable.
80192         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
80193
80194         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
80195         nonmembers" output to use the right array.
80196
80197         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
80198
80199         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
80200
80201         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
80202         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
80203         * catgets/gencat.c (read_input_file): Likewise.
80204         * locale/programs/locarchive.c (enlarge_archive): Likewise.
80205
80206         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
80207         variable definition inside #if's controlling its use.
80208
80209         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
80210
80211         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
80212
80213         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
80214
80215         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
80216         unreachable code.
80217
80218         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
80219
80220         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
80221         * configure: Regenerated.
80222
80223         * Makerules: Revert last change.
80224         * elf/Makefile: Likewise.
80225
80226 2011-06-09  Roland McGrath  <roland@hack.frob.com>
80227
80228         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
80229         * elf/Makefile ($(objpfx)librtld.os): Likewise.
80230         (reloc-link): Likewise.
80231
80232 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
80233
80234         * elf/Makefile: Add rules to build pldd.
80235         * elf/pldd.c: New file.
80236         * elf/pldd-xx.c: New file.
80237
80238 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
80239
80240         * version.h: Update for 2.15 development version.
80241
80242 2011-06-07  David S. Miller  <davem@davemloft.net>
80243
80244         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
80245         ifuncs.
80246         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
80247         elf_machine_lazy_rel): Likewise.
80248         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
80249         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
80250         elf_machine_lazy_rel): Likewise.
80251         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
80252         dl_hwcap via passed in argument.
80253         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
80254         Likewise.
80255
80256 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80257
80258         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
80259
80260 2011-06-06  Roland McGrath  <roland@hack.frob.com>
80261
80262         [BZ #12849]
80263         * manual/fdl-1.1.texi: New file, verbatim from:
80264         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
80265         * manual/lgpl-2.1.texi: New file, verbatim from:
80266         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
80267         * manual/Makefile (licenses): New variable, list those new file names.
80268         (texis): Use it.
80269         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
80270
80271         * manual/fdl.texi: File removed.
80272         * manual/lesser.texi: File removed.
80273         * manual/libc.texinfo (Copying, Documentation License):
80274         Use new @include file names, put @appendix directive before @include.
80275
80276 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
80277
80278         [BZ #12841]
80279         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
80280         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
80281         (mq_open): Add __NTH.
80282
80283 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
80284
80285         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80286         Assume Intel Core i3/i5/i7 processor if AVX is available.
80287
80288 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80289
80290         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80291         typo.
80292
80293 2011-05-31  Andreas Schwab  <schwab@redhat.com>
80294
80295         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
80296         memory.  Use alloca_account.  Fix memory leak when retrying.
80297
80298 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80299
80300         * version.h (RELEASE): Bump for 2.14 release.
80301         * include/features.h (__GLIBC_MINOR__): Bump to 14.
80302
80303         * config.make.in (RANLIB): Remove entry.
80304
80305 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
80306
80307         * po/Makefile (po-sed-cmd): Add ksh to extensions.
80308         (libc.pot): Work around missing support for .ksh extension in xgettext.
80309
80310         [BZ #12684]
80311         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
80312         if both request failed.
80313         (send_dg): In case of server errors clear resplen or *resplen2.
80314
80315         [BZ #12454]
80316         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
80317         when there are multiple maps.
80318         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
80319         (_dl_fini): Remove test here.
80320
80321         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
80322
80323 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
80324
80325         [BZ #12350]
80326         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
80327         bit from old_res_options.
80328         (gaih_inet): Likewise.
80329
80330         [BZ #11099]
80331         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
80332         as signed.
80333
80334         * resolv/res_init.c (res_setoptions): Make the code more compact.
80335
80336         [BZ #11558]
80337         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
80338         set RES_USEVC.
80339
80340         [BZ #11634]
80341         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
80342
80343         * malloc/malloc.h: Mark malloc hook variables as deprecated.
80344
80345         [BZ #11781]
80346         * malloc/malloc.h: Declare malloc hook variables as volatile.
80347
80348         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
80349         in last patch.
80350
80351         [BZ #11799]
80352         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
80353         raise in the comment.
80354         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
80355         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
80356         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
80357
80358 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
80359
80360         [BZ #12811]
80361         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
80362         grow the buffers more if it already has to be sufficient.
80363         (build_wcs_upper_buffer): Likewise.
80364         * posix/regexec.c (check_matching): Likewise.
80365         (clean_state_log_if_needed): Likewise.
80366         (extend_buffers): Don't enlarge buffers beyond size of the input
80367         buffer.
80368         Patches mostly by Emil Wojak <emil@wojak.eu>.
80369         * posix/bug-regex32.c: New file.
80370         * posix/Makefile (tests): Add bug-regex32.
80371
80372         * locale/findlocale.c (_nl_find_locale): Return right away if
80373         _nl_explode_name failed.
80374         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
80375
80376         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
80377
80378         * debug/xtrace.sh: Unify messages.
80379         * malloc/memusage.sh: Likewise.
80380
80381         [BZ #12813]
80382         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
80383         time symbol from vDSO.  Substitute with vsyscall if not available.
80384         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
80385         __vdso_time.
80386
80387         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
80388         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
80389         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
80390         Add sendmmsg and internal_sendmmsg.
80391         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
80392         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
80393         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
80394
80395         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
80396         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
80397         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
80398
80399 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
80400
80401         [BZ #12813]
80402         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
80403         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
80404         available.
80405         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
80406         __vdso_getcpu.
80407
80408         [BZ #12814]
80409         * iconvdata/Makefile (tests): Add bug-iconv9.
80410         * iconvdata/bug-iconv9.c: New file.
80411
80412 2011-05-27  Andreas Schwab  <schwab@redhat.com>
80413
80414         [BZ #12814]
80415         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
80416
80417 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
80418
80419         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80420         (struct user_regs_struct): Change intcs field back to cs.
80421
80422 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
80423
80424         * po/ja.po: Update from translation team.
80425
80426 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
80427
80428         [BZ #12795]
80429         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
80430         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
80431
80432 2011-05-20  Andreas Schwab  <schwab@redhat.com>
80433
80434         * stdlib/longlong.h: Update from GCC.
80435
80436 2011-05-23  Andreas Schwab  <schwab@redhat.com>
80437
80438         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
80439         parameter name.
80440         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
80441         Add parameter name.
80442         (__sysconf): Pass it down.
80443
80444 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
80445
80446         [BZ #12671]
80447         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
80448         some situations.
80449         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
80450         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
80451         add in in __libc_use_alloca calls.  Adjust callers.
80452         (glob): Use malloc in some situations.
80453
80454         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
80455         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
80456         pltexit.
80457
80458 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
80459
80460         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
80461         and CLOCK_BOOTTIME_ALARM.
80462
80463         [BZ #12782]
80464         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
80465         is returned.
80466
80467         * string/_strerror.c (__strerror_r): Print negative errors as signed
80468         numbers.
80469
80470         [BZ #12777]
80471         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
80472         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
80473         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
80474
80475         * configure.in: Fix typo in redirection and correct removal of test
80476         files in two cases.
80477
80478         [BZ #12788]
80479         * locale/setlocale.c (new_composite_name): Fix test to check for
80480         identical name of all categories.
80481
80482         [BZ #12792]
80483         * libio/filedoalloc.c (local_isatty): New function.
80484         (_IO_file_doallocate): Use local_isatty.
80485         * stdio-common/perror.c (perror): In case a new stream is used
80486         forward the stream error.
80487         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
80488         error flag.
80489
80490 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
80491
80492         [BZ #11884]
80493         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
80494         alloca.
80495         * include/alloca.h (extend_alloca_account): Define.
80496
80497         [BZ #11857]
80498         * posix/regex.h: Fix comments with documentation of user-accessible
80499         fields after compilation and describe correct free'ing of pattern
80500         after re_compile_pattern.
80501         Patch by Reuben Thomas <rrt@sc3d.org>.
80502
80503 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
80504
80505         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
80506         and -mno-altivec to prevent the compiler from using Altivec and/or
80507         VSX instructions when the corresponding registers are not available.
80508
80509 2011-05-19  Andreas Schwab  <schwab@redhat.com>
80510
80511         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
80512
80513 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
80514
80515         * libio/freopen.c (freopen): Use __dup2, not dup2.
80516         * libio/freopen64.c (freopen64): Likewise.
80517
80518 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
80519
80520         [BZ #12775]
80521         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
80522         * math/Makefile (tests): Add test-powl.
80523         (CFLAGS-test-powl.c): Define.
80524         * math/test-powl.c: New file.
80525
80526 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
80527
80528         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
80529
80530 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
80531
80532         [BZ #11837]
80533         * iconvdata/gb18030.c: Update to GB18020-2005.
80534
80535 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
80536
80537         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
80538         RE_SYNTAX_POSIX_AWK): Update to match recent development.
80539         Patch by Aharon Robbins <arnold@skeeve.com>.
80540
80541         [BZ #11892]
80542         * stdlib/putenv.c (putenv): Don't always create copy of the variable
80543         on the stack.
80544
80545         [BZ #11895]
80546         * misc/pselect.c (__pselect): Handle timeout value errors hidden
80547         through underflows.
80548
80549         [BZ #12766]
80550         * misc/error.c (error_at_line): Ensure file_name and old_file_name
80551         point to strings before performing equality test for error_one_per_line
80552         mode.
80553
80554         [BZ #11697]
80555         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
80556
80557         [BZ #11820]
80558         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80559         (struct user_fpregs_struct): Avoid __uint*_t types.
80560
80561         [BZ #6420]
80562         * malloc/mtrace.c (tr_where): Add additional parameter to point to
80563         symbol info.  Use it instead of calling _dl_addr locally.
80564         (lock_and_info): New function.
80565         (tr_freehook): Call lock_and_info and pass symbol info as additional
80566         parameter to tr_where.
80567         (tr_mallochook): Likewise.
80568         (tr_reallochook): Likewise.
80569         (tr_memalignhook): Likewise.
80570
80571         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
80572         used and couldn't be at all thread-safe.
80573
80574 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
80575
80576         * libio/freopen.c (freopen): Don't close old file descriptor
80577         before the new one is opened.  Instead dup the new file descriptor
80578         to the old one after the new stream is created.
80579         * libio/freopen64.c (freopen64): Likewise.
80580         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
80581         * libio/fileops.c (_IO_new_file_close_it): Handle new
80582         _IO_FLAGS2_NOCLOSE flag.
80583         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
80584         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
80585         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
80586         _IO_FLAGS2_NOCLOSE flag.
80587         * include/unistd.h: Add hidden_proto for dup3.
80588         Define __have_dup3.
80589         * io/dup3.c: Define hidden symbol.
80590         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
80591
80592         [BZ #7101]
80593         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
80594         when an incomplete long option is used.
80595         * posix/tst-getopt_long1.c: New file.
80596         * posix/Makefile (tests): Add tst-getopt_long1.
80597
80598         [BZ #10138]
80599         * scripts/config.guess: Update from autoconf-2.68.
80600         * scripts/config.sub: Likewise.
80601
80602         [BZ #10157]
80603         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
80604         tests into ...
80605         (has_cpuclock): ...this.  New function.
80606         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
80607         macro here based on has_cpuclock code.
80608
80609         [BZ #10149]
80610         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80611         First byte (not low byte) is now always NUL.
80612         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
80613
80614         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80615         Use non-cancelable interfaces.
80616
80617         [BZ #9809]
80618         * locale/iso-639.def: Add entry for Sorani.
80619
80620         [BZ #11901]
80621         * include/stdlib.h: Move include protection to the right place.
80622         Define abort_msg_s.  Declare __abort_msg with it.
80623         * stdlib/abort.c (__abort_msg): Adjust type.
80624         * assert/assert.c (__assert_fail_base): New function.  Majority
80625         of code from __assert_fail.  Allocate memory for __abort_msg with
80626         mmap.
80627         (__assert_fail): Now call __assert_fail_base.
80628         * assert/assert-perr.c: Remove bulk of implementation.  Use
80629         __assert_fail_base.
80630         * include/assert.hL Declare __assert_fail_base.
80631         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
80632         mmap.
80633         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
80634
80635 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
80636
80637         [BZ #11952]
80638         [BZ #12453]
80639         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
80640         until all modules are registered in the DTV.
80641         * elf/Makefile: Add rules to build and run tst-tls19.
80642         * elf/tst-tls19.c: New file.
80643         * elf/tst-tls19mod1.c: New file.
80644         * elf/tst-tls19mod2.c: New file.
80645         * elf/tst-tls19mod3.c: New file.
80646         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
80647
80648         [BZ #12083]
80649         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
80650         correctly.
80651
80652         [BZ #12601]
80653         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
80654         two-byte sequence errors.
80655         * iconvdata/Makefile (tests): Add bug-iconv8.
80656         * iconvdata/bug-iconv8.c: New file.
80657
80658         [BZ #12626]
80659         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
80660         buf2 definition.
80661
80662         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
80663
80664         [BZ #12432]
80665         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
80666         (dummy_getcfa): New function.
80667         (init): Get _Unwind_GetCFA address, use dummy if not found.
80668         (backtrace_helper): In recursion check, also check whether CFA changes.
80669         (__backtrace): Completely initialize arg.
80670
80671         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
80672         storing incomplete byte sequence in state object.  Avoid testing for
80673         guaranteed too small input if we know there is enough data available.
80674
80675 2011-05-11  Andreas Schwab  <schwab@redhat.com>
80676
80677         * Makeconfig (+link-pie): Indent.
80678         * Rules (binaries-pie): Define if $(have-fpie) and
80679         $(build-shared).
80680         (binaries-shared): Also filter out $(binaries-pie).
80681         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
80682         * nscd/Makefile (others-pie): Add nscd.
80683         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
80684         ($(objpfx)nscd): Remove command override.
80685         * login/Makefile (others-pie): Add pt_chown.
80686         ($(objpfx)pt_chown): Remove command override.
80687         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
80688         remove command overrides.
80689
80690 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
80691
80692         * libio/tst_putwc.c: Fix error messages.
80693
80694         [BZ #12724]
80695         * libio/fileops.c (_IO_new_file_close_it): Always flush when
80696         currently writing and seek to current position when not.
80697         * libio/Makefile (tests): Add bug-fclose1.
80698         * libio/bug-fclose1.c: New file.
80699
80700 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
80701
80702         [BZ #12511]
80703         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
80704         don't set DF_1_NODELETE here.
80705         (do_lookup_x): When entering new entry test for copy relocation
80706         and if necessary set DF_1_NODELETE flag.
80707         * elf/tst-unique4.cc: New file.
80708         * elf/tst-unique4.h: New file.
80709         * elf/tst-unique4lib.cc: New file.
80710         * elf/Makefile: Add rules to build and run tst-unique4.
80711         Patch by Piotr Bury <pbury@goahead.com>.
80712
80713 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
80714
80715         [BZ #12052]
80716         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
80717
80718         [BZ #12625]
80719         * misc/mntent_r.c (addmntent): Flush the stream after the output
80720
80721         [BZ #12393]
80722         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
80723         (is_trusted_path_normalize): Skip initial colon.  Append slash
80724         to empty buffer.  Duplicate is_trusted_path code but allow
80725         constructed patch to be prefix.
80726         (is_dst): Allow $ORIGIN followed by /.
80727         (_dl_dst_substitute): Correct clearing of check_for_trusted.
80728         Correct testing of result of is_trusted_path_normalize
80729         (decompose_rpath): Fix warning.
80730
80731 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
80732
80733         [BZ #11257]
80734         * grp/initgroups.c (internal_getgrouplist): When we found the service
80735         list through the initgroups entry in nsswitch.conf do not always
80736         continue on a successful lookup.  Don't always use the
80737         __nss_group_database value if it is set.
80738         * nss/nsswitch.conf (initgroups): Change action for successful db
80739         lookup to continue for compatibility.
80740
80741 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
80742
80743         [BZ #11532]
80744         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
80745         and CP774 modules.
80746         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
80747         and CP774 modules.
80748         * iconvdata/tst-tables.sh: Likewise.
80749         * iconvdata/cp770.c: New file.
80750         * iconvdata/cp771.c: New file.
80751         * iconvdata/cp772.c: New file.
80752         * iconvdata/cp773.c: New file.
80753         * iconvdata/cp774.c: New file.
80754         * iconvdata/testdata/CP770: New file.
80755         * iconvdata/testdata/CP770..UTF8: New file.
80756         * iconvdata/testdata/CP771: New file.
80757         * iconvdata/testdata/CP771..UTF8: New file.
80758         * iconvdata/testdata/CP772: New file.
80759         * iconvdata/testdata/CP772..UTF8: New file.
80760         * iconvdata/testdata/CP773: New file.
80761         * iconvdata/testdata/CP773..UTF8: New file.
80762         * iconvdata/testdata/CP774: New file.
80763         * iconvdata/testdata/CP774..UTF8: New file.
80764
80765         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
80766         END CHARMAP line.
80767         * iconvdata/gen-8bit-gap.sh: Likewise.
80768         * iconvdata/gen-8bit.sh: Likewise.
80769
80770         * locale/iso-639.def: Add ary entry.
80771
80772         [BZ #11258]
80773         * locale/C-translit.h.in: Add U20A1 transliteration.
80774
80775         [BZ #12178]
80776         * locale/iso-639.def: Add wae entry.
80777         Patch by Kevin Bortis <bortis@translate-wae.ch>.
80778
80779         [BZ #12545]
80780         * locale/programs/localedef.c (construct_output_path): Use ssize_t
80781         for n.
80782
80783         [BZ #12711]
80784         * locale/C-translit.h.in: Add entry for U20B9.
80785         Patch by pravin.d.s@gmail.com.
80786
80787 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
80788
80789         [BZ #12713]
80790         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
80791         ENAMETOOLONG use generic getcwd.
80792         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
80793         in rtld.  Use *stat64.
80794         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
80795         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
80796         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
80797         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
80798         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
80799         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
80800         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
80801         __fstatat64 macros.
80802         * include/dirent.h: Add libc_hidden_proto for rewinddir.
80803         * dirent/rewinddir.c: Add libc_hidden_def.
80804         * sysdeps/mach/hurd/rewinddir.c: Likewise.
80805         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
80806
80807         * include/dirent.h (__alloc_dir): Add flags parameter.
80808         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
80809         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
80810         __alloc_dir.
80811         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
80812         from fdopendir if O_CLOEXEC is already set.
80813
80814 2011-03-15  Alan Modra  <amodra@gmail.com>
80815
80816         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
80817         l_tls_firstbyte_offset non-zero.  Save padding offset in
80818         l_tls_firstbyte_offset for later use.
80819         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
80820         freeing static tls block.
80821
80822 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
80823
80824         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
80825         where #ifdef was intended.  The intent is to prevent ARG_MAX from
80826         being defined by the kernel headers.
80827
80828 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
80829
80830         [BZ #12734]
80831         * resolv/resolv.h: Define RES_NOTLDQUERY.
80832         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
80833         no-tld-query and set RES_NOTLDQUERY.
80834         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
80835         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
80836         modern BIND to search name as TLD unless forbidden.
80837
80838 2011-05-07  Petr Baudis  <pasky@suse.cz>
80839             Ulrich Drepper  <drepper@gmail.com>
80840
80841         [BZ #12393]
80842         * elf/dl-load.c (fillin_rpath): Move trusted path check...
80843         (is_trusted_path): ...to here.
80844         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
80845         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
80846         using is_trusted_path_normalize() in setuid scripts.
80847
80848 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
80849
80850         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
80851         __BEGIN/__END_DECLS.
80852
80853 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
80854
80855         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
80856         NSS_STATUS_NOTFOUND if no record was found.
80857
80858 2011-05-05  Andreas Schwab  <schwab@redhat.com>
80859
80860         * sunrpc/Makefile (headers): Add rpc/netdb.h.
80861         (headers-not-in-tirpc): Remove rpc/netdb.h
80862         * resolv/netdb.h: Revert last change.
80863
80864 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
80865
80866         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
80867         circular dependency between libgcc.a and libc.a.
80868
80869 2011-05-05  Andreas Schwab  <schwab@redhat.com>
80870
80871         * resolv/netdb.h: Don't include <rpc/netdb.h>.
80872         * nis/Makefile: Don't install rpcsvc/*.
80873         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
80874         instead of <rpc/types.h>.
80875         (MAXHOSTNAMELEN): Define.
80876
80877 2011-05-03  Andreas Schwab  <schwab@redhat.com>
80878
80879         * elf/ldconfig.c (add_dir): Don't crash on empty path.
80880
80881 2011-04-28  Maciej Babinski  <mbabinski@google.com>
80882
80883         [BZ #12714]
80884         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
80885         gethostbyname4_r when IPv6 results are possible.
80886
80887 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
80888
80889         [BZ #12723]
80890         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
80891         _PC_PIPE_BUF handling.
80892
80893 2011-04-30  Bruno Haible  <bruno@clisp.org>
80894
80895         [BZ #12717]
80896         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
80897         * resolv/netdb.h (getnameinfo): Change type of flags parameter
80898         to 'int'.
80899         * inet/getnameinfo.c (getnameinfo): Likewise.
80900
80901 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
80902
80903         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
80904         to groups setting in database lookup.
80905         * nss/nsswitch.conf: Add initgroups entry.
80906
80907 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
80908
80909         [BZ #12685]
80910         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
80911         mode string.
80912         Patch by Eric Blake <eblake@redhat.com>.
80913
80914 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
80915
80916         * sunrpc/Makefile (need-export-routines): Add svc_run.
80917         (routines): Remove svc_run.
80918         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
80919         * sunrpc/clnt_perr.c (clnt_perrno): Export.
80920         * sunrpc/svc_run.c (svc_run): Likewise.
80921         * sunrpc/svc_udp.c (svcudp_create): Likewise.
80922
80923 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
80924
80925         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
80926         problem in reallocation in last patch.
80927
80928 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
80929
80930         * sunrpc/Makefile: Move inclusion of Rules.
80931
80932 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
80933
80934         * nss/nss_files/files-initgroups.c: New file.
80935         * nss/Makefile (libnss_files-routines): Add files-initgroups.
80936         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
80937         _nss_files_initgroups_dyn.
80938
80939 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
80940
80941         * elf/elf.h (R_ARM_IRELATIVE): Define.
80942
80943 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
80944
80945         * po/ru.po: Update from translation team.
80946
80947 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
80948
80949         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
80950         dependencies.
80951
80952 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
80953
80954         [BZ #12653]
80955         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
80956         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
80957         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
80958         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
80959         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
80960
80961 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
80962
80963         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
80964         differing bytes.
80965         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
80966         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
80967         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
80968
80969 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
80970
80971         [BZ #12420]
80972         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
80973         storing it.
80974         * stdlib/bug-getcontext.c: New file.
80975         * stdlib/Makefile: Add rules to build and run bug-getcontext.
80976
80977 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80978
80979         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
80980         instructions into .machine "z9-109".
80981         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
80982         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
80983
80984 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80985
80986         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
80987         between environment variables and auxiliary vector.
80988
80989 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
80990
80991         * Makefile: Add rules to build linkobj/libc.so.
80992         * include/libc-symbols.h: Define libc_hidden_nolink.
80993         * include/rpc/auth.h: Mark functions which are to be hidden.
80994         * include/rpc/auth_des.h: Likewise.
80995         * include/rpc/auth_unix.h: Likewise.
80996         * include/rpc/clnt.h: Likewise.
80997         * include/rpc/des_crypt.h: Likewise.
80998         * include/rpc/key_prot.h: Likewise.
80999         * include/rpc/pmap_clnt.h: Likewise.
81000         * include/rpc/pmap_prot.h: Likewise.
81001         * include/rpc/pmap_rmt.h: Likewise.
81002         * include/rpc/rpc_msg.h: Likewise.
81003         * include/rpc/svc.h: Likewise.
81004         * include/rpc/svc_auth.h: Likewise.
81005         * include/rpc/xdr.h: Likewise.
81006         * nis/Makefile: Link all DSOs against linkobj/libc.so.
81007         * nss/Makefile: Likewise.
81008         * sunrpc/Makefile: Don't install headers.  Build library with normal
81009         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
81010         * sunrpc/auth_des.c: Hide exported symbols by default, export some
81011         for the compat linking library.  Remove use of INTDEF/INTUSE.
81012         * sunrpc/auth_none.c: Likewise.
81013         * sunrpc/auth_unix.c: Likewise.
81014         * sunrpc/authdes_prot.c: Likewise.
81015         * sunrpc/authuxprot.c: Likewise.
81016         * sunrpc/clnt_gen.c: Likewise.
81017         * sunrpc/clnt_perr.c: Likewise.
81018         * sunrpc/clnt_raw.c: Likewise.
81019         * sunrpc/clnt_simp.c: Likewise.
81020         * sunrpc/clnt_tcp.c: Likewise.
81021         * sunrpc/clnt_udp.c: Likewise.
81022         * sunrpc/clnt_unix.c: Likewise.
81023         * sunrpc/des_crypt.c: Likewise.
81024         * sunrpc/des_soft.c: Likewise.
81025         * sunrpc/get_myaddr.c: Likewise.
81026         * sunrpc/key_call.c: Likewise.
81027         * sunrpc/key_prot.c: Likewise.
81028         * sunrpc/netname.c: Likewise.
81029         * sunrpc/pm_getmaps.c: Likewise.
81030         * sunrpc/pm_getport.c: Likewise.
81031         * sunrpc/pmap_clnt.c: Likewise.
81032         * sunrpc/pmap_prot.c: Likewise.
81033         * sunrpc/pmap_prot2.c: Likewise.
81034         * sunrpc/pmap_rmt.c: Likewise.
81035         * sunrpc/publickey.c: Likewise.
81036         * sunrpc/rpc_cmsg.c: Likewise.
81037         * sunrpc/rpc_common.c: Likewise.
81038         * sunrpc/rpc_dtable.c: Likewise.
81039         * sunrpc/rpc_prot.c: Likewise.
81040         * sunrpc/rpc_thread.c: Likewise.
81041         * sunrpc/rtime.c: Likewise.
81042         * sunrpc/svc.c: Likewise.
81043         * sunrpc/svc_auth.c: Likewise.
81044         * sunrpc/svc_authux.c: Likewise.
81045         * sunrpc/svc_raw.c: Likewise.
81046         * sunrpc/svc_run.c: Likewise.
81047         * sunrpc/svc_simple.c: Likewise.
81048         * sunrpc/svc_tcp.c: Likewise.
81049         * sunrpc/svc_udp.c: Likewise.
81050         * sunrpc/svc_unix.c: Likewise.
81051         * sunrpc/svcauth_des.c: Likewise.
81052         * sunrpc/xcrypt.c: Likewise.
81053         * sunrpc/xdr.c: Likewise.
81054         * sunrpc/xdr_array.c: Likewise.
81055         * sunrpc/xdr_float.c: Likewise.
81056         * sunrpc/xdr_intXX_t.c: Likewise.
81057         * sunrpc/xdr_mem.c: Likewise.
81058         * sunrpc/xdr_rec.c: Likewise.
81059         * sunrpc/xdr_ref.c: Likewise.
81060         * sunrpc/xdr_sizeof.c: Likewise.
81061         * sunrpc/xdr_stdio.c: Likewise.
81062
81063 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
81064
81065         [BZ #12650]
81066         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
81067         * sysdeps/ia64/dl-tls.h: Likewise.
81068         * sysdeps/powerpc/dl-tls.h: Likewise.
81069         * sysdeps/s390/dl-tls.h: Likewise.
81070         * sysdeps/sh/dl-tls.h: Likewise.
81071         * sysdeps/sparc/dl-tls.h: Likewise.
81072         * sysdeps/x86_64/dl-tls.h: Likewise.
81073         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
81074
81075 2011-03-14  Andreas Schwab  <schwab@redhat.com>
81076
81077         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
81078         rpath element also skip the following colon.
81079         (expand_dynamic_string_token): Add is_path parameter and pass
81080         down to DL_DST_REQUIRED and _dl_dst_substitute.
81081         (decompose_rpath): Call expand_dynamic_string_token with
81082         non-zero is_path.  Ignore empty rpaths.
81083         (_dl_map_object_from_fd): Call expand_dynamic_string_token
81084         with zero is_path.
81085
81086 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
81087
81088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
81089         Make cancelable.
81090
81091 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
81092
81093         [BZ #12655]
81094         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
81095         Patch by Filipe David Manana <fdmanana@apache.org>.
81096
81097 2011-04-07  Andreas Schwab  <schwab@redhat.com>
81098
81099         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
81100         Maintain aligned stack.
81101         (CHECK_RSP): Remove unused macro.
81102
81103 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
81104
81105         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
81106         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
81107
81108 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
81109
81110         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
81111
81112         * include/features.h: Mention __USE_XOPEN2K8 in comment.
81113
81114 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
81115
81116         [BZ #12518]
81117         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
81118         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
81119         * sysdeps/x86_64/memmove.c: New file.
81120         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
81121         (memcpy): Renamed to ...
81122         (__new_memcpy): This.
81123         (memcpy): Provide GLIBC_2_14 memcpy.
81124         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
81125         (memcpy): Provide GLIBC_2_2_5 memcpy.
81126
81127 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81128
81129         [BZ #12631]
81130         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
81131
81132 2011-03-30  Andreas Schwab  <schwab@redhat.com>
81133
81134         * misc/syncfs.c: New file.
81135         * misc/Makefile (routines): Add syncfs.
81136         * posix/unistd.h: Declare syncfs.
81137         * sysdeps/unix/syscalls.list: Add syncfs.
81138
81139 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81140
81141         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
81142         open_by_handle_at.
81143         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
81144         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81145         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81146         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81147         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81148         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
81149         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81150
81151 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81152
81153         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
81154         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81155         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
81156         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81157         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81158         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81159         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81160
81161         * io/Makefile: Compile fallocate.c, fallocate64.c, and
81162         sync_file_range.c with -fexceptions.
81163         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
81164         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
81165         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
81166         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
81167         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
81168         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
81169         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
81170         sync_file_range as cancellation point
81171         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
81172         now a wrapper around __call_sync_file_range with cancellation handling.
81173         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
81174         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
81175         function name to __call_sync_file_range.
81176         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
81177         Add call_sync_file_range.
81178
81179 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81180
81181         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81182         bits/timex.h.
81183
81184 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81185
81186         * iconv/iconv.h: Fix typo in comment.
81187         * io/fcntl.h: Likewise.
81188         * libio/stdio.h: Likewise.
81189         * posix/spawn.h: Likewise.
81190         * posix/unistd.h: Likewise.
81191         * stdlib/stdlib.h: Likewise.
81192         * time/time.h: Likewise.
81193         * wcsmbs/wchar.h: Likewise.
81194
81195         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
81196         open_by_handle): Add.
81197         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
81198         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
81199         Augment a few comments.
81200         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81201         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81202         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81203         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81204         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81205         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
81206         open_by_handle.
81207
81208         * io/fcntl.h (AT_EMPTY_PATH): Define.
81209
81210 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
81211
81212         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
81213         * sysdeps/unix/sysv/linux/bits/time.h: New file.
81214         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
81215         to...
81216         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
81217         * Versions.def: Add GLIBC_2.14.
81218         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
81219         Export.
81220
81221 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
81222
81223         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
81224         round counter.
81225         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81226
81227 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
81228
81229         [BZ #12597]
81230         * string/test-strncmp.c (do_page_test): New function.
81231         (check2): Likewise.
81232         (test_main): Call check2.
81233         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
81234
81235 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
81236
81237         [BZ #12587]
81238         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
81239         Handle cache information in CPU leaf 4.
81240         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81241
81242 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
81243
81244         [BZ #12583]
81245         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
81246         character representation.
81247         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
81248
81249 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
81250
81251         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
81252         END(__isnan) to END(__isnanf) to match function entry point/label
81253         EALIGN(__isnanf,...).
81254
81255 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
81256
81257         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
81258
81259 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
81260
81261         [BZ #12510]
81262         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
81263         copy from the symbol referenced in the relocation to initialize the
81264         used variable.
81265         Patch by Piotr Bury <pbury@goahead.com>.
81266         * elf/Makefile: Add rules to build and tst-unique3.
81267         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
81268         * elf/tst-unique3.cc: New file.
81269         * elf/tst-unique3.h: New file.
81270         * elf/tst-unique3lib.cc: New file.
81271         * elf/tst-unique3lib2.cc: New file.
81272
81273         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
81274
81275 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
81276
81277         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
81278         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
81279         to _start.
81280
81281 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
81282
81283         * elf/dl-load.c (_dl_map_object): If we are looking for the first
81284         to-be-loaded object along a path to loader is ld.so.
81285
81286 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81287             Ulrich Drepper  <drepper@gmail.com>
81288
81289         * sysdeps/x86_64/memset.S: After aligning destination, code
81290         branches to different locations depending on the value of
81291         misalignment, when multiarch is enabled. Fix this.
81292
81293 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81294
81295         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
81296         Set _x86_64_preferred_memory_instruction for AMD processsors.
81297         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81298         Set bit_Prefer_SSE_for_memop for AMD processors.
81299
81300 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
81301
81302         * libio/fmemopen.c (fmemopen): Optimize a bit.
81303
81304 2011-03-03  Andreas Schwab  <schwab@redhat.com>
81305
81306         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
81307
81308 2011-03-03  Roland McGrath  <roland@redhat.com>
81309
81310         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
81311
81312 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
81313
81314         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
81315         __bzero_ultra1 instead of __memset_ultra1.
81316
81317 2011-02-23  Andreas Schwab  <schwab@redhat.com>
81318             Ulrich Drepper  <drepper@gmail.com>
81319
81320         [BZ #12509]
81321         * include/link.h (struct link_map): Add l_orig_initfini.
81322         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
81323         returning unsuccessfully.
81324         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
81325         close of a file loaded at startup, restore the original l_initfini
81326         list.
81327         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
81328         list, store the pointer.
81329         * elf/Makefile ($(objpfx)noload-mem): New rule.
81330         (noload-ENV): Define.
81331         (tests): Add $(objpfx)noload-mem.
81332         * elf/noload.c: Include <memcheck.h>.
81333         (main): Call mtrace.  Close all opened handles.
81334
81335 2011-02-17  Andreas Schwab  <schwab@redhat.com>
81336
81337         [BZ #12454]
81338         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
81339         dependencies are missing.
81340
81341 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81342
81343         Fix __if_freereq crash: Unlike the generic version which uses free,
81344         Hurd needs munmap.
81345         * sysdeps/mach/hurd/ifreq.h: New file.
81346
81347 2011-01-27  Petr Baudis  <pasky@suse.cz>
81348             Ulrich Drepper  <drepper@gmail.com>
81349
81350         [BZ 12445]#
81351         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
81352         to extend_alloca().
81353         * stdio-common/bug23.c: New file.
81354         * stdio-common/Makefile (tests): Add bug23.
81355
81356 2010-09-28  Andreas Schwab  <schwab@redhat.com>
81357             Ulrich Drepper  <drepper@gmail.com>
81358
81359         [BZ #12489]
81360         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
81361         before performing relro protection.  At old place add assertion
81362         to make sure nothing changed.
81363
81364 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
81365             Glauber de Oliveira Costa  <glommer@gmail.com>
81366
81367         * elf/elf.h: Add new ARM TLS relocs.
81368
81369 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
81370
81371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
81372         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
81373         cast from r3.
81374         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
81375         'tests' variable.
81376         * sysdeps/wordsize-64/tst-writev.c: New file.
81377
81378 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
81379
81380         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
81381         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
81382         insns in _dl_start to prevent a TOC reference before relocs are
81383         resolved.
81384
81385 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
81386
81387         [BZ #12469]
81388         * Makeconfig: Remove RANLIB definition.
81389         * Makerules: Don't use RANLIB.
81390         * aclocal.m4: Remove ranlib test.
81391         * configure.in: No need to check for ranlib.
81392         * elf/rtld-Rules: Don't use RANLIB.
81393
81394 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81395
81396         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
81397         protection macro.
81398         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
81399         inclusion protection macro.
81400
81401         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
81402         SIGRTMIN and SIGRTMAX and print information in that case only when
81403         SIGRTMIN is defined.
81404
81405 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
81406
81407         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
81408         arginfo fn returning -1.
81409
81410         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
81411         and thousands string is zero terminated.
81412
81413 2011-02-03  Andreas Schwab  <schwab@redhat.com>
81414
81415         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
81416         sysdeps/unix/sysv/linux/bits/socket.h.
81417
81418 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81419
81420         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
81421         (__CPU_COUNT): Remove old macros.
81422         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
81423         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
81424         (__CPU_ALLOC, __CPU_FREE): Add macros.
81425         (__sched_cpualloc, __sched_cpufree): Add declarations.
81426
81427 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
81428
81429         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
81430         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
81431         * nscd/aicache.c (addhstaiX): Return timeout of added value.
81432         (readdhstai): Return value of addhstaiX call.
81433         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
81434         (addgrbyX): Return value returned by cache_addgr.
81435         (readdgrbyname): Return value returned by addgrbyX.
81436         (readdgrbygid): Likewise.
81437         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
81438         (addpwbyX): Return value returned by cache_addpw.
81439         (readdpwbyname): Return value returned by addhstbyX.
81440         (readdpwbyuid): Likewise.
81441         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
81442         (addservbyX): Return value returned by cache_addserv.
81443         (readdservbyname): Return value returned by addservbyX:
81444         (readdservbyport): Likewise.
81445         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
81446         (addhstbyX): Return value returned by cache_addhst.
81447         (readdhstbyname): Return value returned by addhstbyX.
81448         (readdhstbyaddr): Likewise.
81449         (readdhstbynamev6): Likewise.
81450         (readdhstbyaddrv6): Likewise.
81451         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
81452         (readdinitgroups): Return value returned by addinitgroupsX.
81453         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
81454         (prune_cache): Keep track of timeout value of re-added entries.
81455         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
81456         * nscd/nscd.h: Adjust prototypes of readd* functions.
81457
81458 2011-02-04  Roland McGrath  <roland@redhat.com>
81459
81460         * nis/nis_server.c (nis_servstate): Use the right name for 0.
81461         (nis_stats): Likewise.
81462         * nis/nis_modify.c (nis_modify): Likewise.
81463         * nis/nis_remove.c (nis_remove): Likewise.
81464         * nis/nis_add.c (nis_add): Likewise.
81465
81466         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
81467
81468         * posix/fnmatch_loop.c: Add some consts.
81469
81470         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
81471
81472 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
81473
81474         [BZ #12460]
81475         * config.make.in (config-cflags-novzeroupper): Define.
81476         * configure.in: Substitute libc_cv_cc_novzeroupper.
81477         * elf/Makefile (AVX-CFLAGS): Define.
81478         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
81479         (CFLAGS-tst-auditmod4a.c): Likewise.
81480         (CFLAGS-tst-auditmod4b.c): Likewise.
81481         (CFLAGS-tst-auditmod6b.c): Likewise.
81482         (CFLAGS-tst-auditmod6c.c): Likewise.
81483         (CFLAGS-tst-auditmod7b.c): Likewise.
81484         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
81485
81486 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
81487
81488         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
81489         function to the callback.
81490         Patch partly by Jiri Olsa <jolsa@redhat.com>.
81491
81492 2011-02-02  Andreas Schwab  <schwab@redhat.com>
81493
81494         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
81495         of errno.
81496
81497 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
81498
81499         [BZ #11724]
81500         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
81501         of constructors.
81502         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
81503         of destructors.
81504         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
81505
81506         [BZ #11724]
81507         * elf/Makefile: Add rules to build and run new test.
81508         * elf/tst-initorder.c: New file.
81509         * elf/tst-initorder.exp: New file.
81510         * elf/tst-initordera1.c: New file.
81511         * elf/tst-initordera2.c: New file.
81512         * elf/tst-initordera3.c: New file.
81513         * elf/tst-initordera4.c: New file.
81514         * elf/tst-initorderb1.c: New file.
81515         * elf/tst-initorderb2.c: New file.
81516         * elf/tst-order-a1.c: New file.
81517         * elf/tst-order-a2.c: New file.
81518         * elf/tst-order-a3.c: New file.
81519         * elf/tst-order-a4.c: New file.
81520         * elf/tst-order-b1.c: New file.
81521         * elf/tst-order-b2.c: New file.
81522         * elf/tst-order-main.c: New file.
81523         New test case by George Gensure <werkt0@gmail.com>.
81524
81525 2010-10-01  Andreas Schwab  <schwab@redhat.com>
81526
81527         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
81528         decoding ACE if AI_CANONIDN.
81529
81530 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
81531
81532         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
81533
81534 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
81535
81536         * version.h (RELEASE): Bump for 2.13 release.
81537         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
81538
81539         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
81540
81541         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
81542         MADV_NOHUGEPAGE.
81543         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
81544         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
81545         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
81546         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
81547         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
81548         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
81549
81550         * posix/getconf.c: Update copyright year.
81551         * catgets/gencat.c: Likewise.
81552         * csu/version.c: Likewise.
81553         * debug/catchsegv.sh: Likewise.
81554         * debug/xtrace.sh: Likewise.
81555         * elf/ldconfig.c: Likewise.
81556         * elf/ldd.bash.in: Likewise.
81557         * elf/sprof.c (print_version): Likewise.
81558         * iconv/iconv_prog.c: Likewise.
81559         * iconv/iconvconfig.c: Likewise.
81560         * locale/programs/locale.c: Likewise.
81561         * locale/programs/localedef.c: Likewise.
81562         * malloc/memusage.sh: Likewise.
81563         * malloc/mtrace.pl: Likewise.
81564         * nscd/nscd.c (print_version): Likewise.
81565         * nss/getent.c: Likewise.
81566
81567         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
81568         PF_CAIF, and PF_ALG.
81569         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
81570
81571 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
81572
81573         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
81574         (modules-names): Use them.
81575         (ifunc-test-modules, ifunc-pie-tests): Define.
81576         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
81577         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
81578         (test-extras): Likewise.
81579         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
81580         $(compile-command.c).
81581         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
81582         (all-built-dso): Define.
81583         (check-textrel.out, check-execstack.out): Depend on it.
81584
81585         * configure.in: Don't override --enable-multi-arch.
81586
81587 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
81588
81589         [BZ #6812]
81590         * nscd/hstcache.c (tryagain): Define.
81591         (cache_addhst): Return tryagain not notfound for temporary errors.
81592         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
81593         failed.
81594
81595 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
81596
81597         [BZ #10563]
81598         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
81599         to make the syscall.
81600         * sysdeps/unix/sysv/linux/setgroups.c: New file.
81601
81602         [BZ #12378]
81603         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
81604         and fall back to matching as normal character if the string ends before
81605         the matching ']' is found.  This is what POSIX requires.
81606         * posix/testfnm.c: Adjust test result.
81607         * posix/globtest.sh: Adjust test result.  Add new test.
81608         * posix/tst-fnmatch.input: Likewise.
81609         * posix/tst-fnmatch2.c: Add new test.
81610
81611 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
81612
81613         * elf/Makefile (check-execstack): Revert last change.  Depend on
81614         check-execstack.h.
81615         (check-execstack.h): New target.
81616         (generated): Add check-execstack.h.
81617         * elf/check-execstack.c: Include "check-execstack.h".
81618         (main): Revert last change.
81619         (handle_file): Return zero if GNU_STACK is absent and
81620         DEFAULT_STACK_PERMS doesn't include PF_X.
81621
81622 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
81623
81624         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
81625         in child fails because the descriptor is already closed.
81626         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
81627         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
81628         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
81629
81630         [BZ #12397]
81631         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
81632         syscall.
81633
81634         [BZ #10484]
81635         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
81636         temporary buffer used to handle multi lookups locally.
81637         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
81638
81639 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
81640
81641         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
81642         loader is ld.so.
81643
81644 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
81645
81646         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
81647         alignment for SSE2.
81648
81649 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
81650
81651         [BZ #12394]
81652         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
81653         characters.  When rounding increased number of integer digits recompute
81654         number of groups.
81655         * stdio-common/tst-grouping.c: New file.
81656         * stdio-common/Makefile: Add rules to build and run tst-grouping.
81657
81658 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
81659
81660         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
81661         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
81662
81663         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
81664         void.
81665         * bits/select.h: Likewise.
81666
81667 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
81668
81669         * po/ja.po: Update from translation team.
81670
81671 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
81672
81673         [BZ #11155]
81674         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
81675         implementation just like for lxstat, fxstatat, et al.
81676
81677 2010-12-27  Jim Meyering  <meyering@redhat.com>
81678
81679         [BZ #12348]
81680         * posix/regexec.c (build_trtable): Return failure indication upon
81681         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
81682
81683 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
81684
81685         [BZ #12201]
81686         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
81687         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
81688         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
81689         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
81690
81691         [BZ #12207]
81692         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
81693
81694         [BZ #12204]
81695         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
81696         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
81697
81698 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
81699
81700         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
81701         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
81702         script has SORT_BY_INIT_PRIORITY.
81703         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
81704         NO_CTORS_DTORS_SECTIONS is defined.
81705         * elf/soinit.c: Likewise.
81706         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
81707         NO_CTORS_DTORS_SECTIONS is defined.
81708         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
81709         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
81710         * sysdeps/sh/init-first.c: Likewise.
81711         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
81712
81713 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
81714
81715         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
81716         always use the slow path.
81717
81718 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
81719
81720         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
81721         similar rule which adds the sysdep directories to the header search in
81722         order to pick up the correct platform stackinfo.h.
81723         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
81724         perform test if it is, otherwise return successfully without testing.
81725         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
81726         DEFAULT_STACK_PERMS define in stackinfo.h.
81727         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
81728         defined in stackinfo.h.
81729         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
81730         DEFAULT_STACK_PERMS defined in stackinfo.h.
81731         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
81732         * sysdeps/ia64/stackinfo.h: Likewise.
81733         * sysdeps/s390/stackinfo.h: Likewise.
81734         * sysdeps/sh/stackinfo.h: Likewise.
81735         * sysdeps/sparc/stackinfo.h: Likewise.
81736         * sysdeps/x86_64/stackinfo.h: Likewise.
81737         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
81738         PF_X for powerpc64.  Retain PF_X for powerpc32.
81739
81740 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
81741
81742         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
81743         accurately.
81744         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
81745         GETDENTS_64BIT_ALIGNED.
81746
81747 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
81748
81749         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
81750
81751 2010-12-10  Andreas Schwab  <schwab@redhat.com>
81752
81753         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
81754         _GNU_SOURCE.
81755
81756         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
81757         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
81758         Remove __restrict.
81759         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
81760         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
81761
81762 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
81763
81764         [BZ #11655]
81765         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
81766         are initialized.
81767
81768 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
81769
81770         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
81771
81772 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
81773
81774         * po/it.po: Update from translation team.
81775
81776 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
81777
81778         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
81779         unused codes.
81780
81781 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
81782
81783         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
81784
81785 2010-11-24  Andreas Schwab  <schwab@redhat.com>
81786
81787         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
81788         specially.
81789         (gaih_getanswer_slice): Likewise.
81790
81791 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
81792
81793         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
81794
81795 2010-05-31  Petr Baudis  <pasky@suse.cz>
81796
81797         [BZ #11149]
81798         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
81799         silently even in the chroot mode.
81800
81801 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
81802
81803         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
81804         last patch a bit.  Pretty printing
81805
81806 2010-05-31  Petr Baudis <pasky@suse.cz>
81807
81808         [BZ #10085]
81809         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
81810         initialization of skip_initgroups_dyn.
81811
81812 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
81813
81814         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
81815         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
81816
81817 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
81818
81819         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
81820
81821 2010-11-11  Andreas Schwab  <schwab@redhat.com>
81822
81823         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
81824         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
81825         (tst-fnmatch-ENV): Set MALLOC_TRACE.
81826         ($(objpfx)tst-fnmatch-mem): New rule.
81827         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
81828         * posix/tst-fnmatch.c (main): Call mtrace.
81829
81830 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
81831
81832         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81833         Support Intel processor model 6 and model 0x2c.
81834
81835 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
81836
81837         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
81838           signed comparison.
81839
81840 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
81841
81842         [BZ #12205]
81843         * string/test-strncasecmp.c (check_result): New function.
81844         (do_one_test): Use it.
81845         (check1): New function.
81846         (test_main): Use it.
81847         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
81848         Support strcasecmp and strncasecmp.
81849
81850 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
81851
81852         [BZ #12194]
81853         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
81854         * sysdeps/x86_64/bits/byteswap.h: Likewise.
81855
81856 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
81857
81858         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
81859         IFUNC support.
81860         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
81861         memset-x86-64.
81862         * sysdeps/x86_64/multiarch/bzero.S: New file.
81863         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
81864         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
81865         * sysdeps/x86_64/multiarch/memset.S: New file.
81866         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
81867         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81868         Set bit_Prefer_SSE_for_memop for Intel processors.
81869         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
81870         Define.
81871         (index_Prefer_SSE_for_memop): Define.
81872         (HAS_PREFER_SSE_FOR_MEMOP): Define.
81873
81874 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
81875
81876         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
81877         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
81878
81879 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
81880
81881         [BZ #12191]
81882         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
81883         (__x86_64_raw_data_cache_size_half): Likewise.
81884         (__x86_64_raw_shared_cache_size): Likewise.
81885         (__x86_64_raw_shared_cache_size_half): Likewise.
81886
81887         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
81888         (__x86_64_raw_data_cache_size_half): Likewise.
81889         (__x86_64_raw_shared_cache_size): Likewise.
81890         (__x86_64_raw_shared_cache_size_half): Likewise.
81891         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
81892         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
81893         and __x86_64_raw_shared_cache_size_half.  Round
81894         __x86_64_data_cache_size_half, __x86_64_data_cache_size
81895         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
81896         to multiple of 256 bytes.
81897
81898 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
81899
81900         [BZ #12167]
81901         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
81902         of inacessible symlinks.  Verify result of symlink before returning it.
81903         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
81904         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
81905
81906 2010-10-28  Erich Ritz  <erichritz@gmail.com>
81907
81908         * math/math.h (isinf): Fix typo in comment.
81909
81910 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
81911
81912         * po/da.po: Update from translation team.
81913
81914 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
81915
81916         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
81917         is added to the list.
81918
81919 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81920             Ulrich Drepper  <drepper@gmail.com>
81921
81922         * elf/dl-object.c (_dl_new_object): Don't append the new object to
81923         the global list here.  Move code to...
81924         (_dl_add_to_namespace_list): ...here.  New function.
81925         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
81926         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
81927         * elf/dl-load.c (lose): Don't remove the element from the list.
81928         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
81929         (_dl_map_object): Likewise.
81930
81931 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
81932
81933         [BZ #12159]
81934         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
81935         into all bytes of SSE register.
81936         Patch by Richard Li <richardpku@gmail.com>.
81937
81938 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
81939
81940         [BZ #12140]
81941         * malloc/malloc.c (_int_free): Fill correct number of bytes when
81942         perturbing.
81943
81944 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
81945
81946         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
81947         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
81948         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
81949         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
81950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
81951         submachine.
81952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
81953
81954 2010-10-22  Andreas Schwab  <schwab@redhat.com>
81955
81956         * include/dlfcn.h (__RTLD_SECURE): Define.
81957         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
81958         mode & __RTLD_SECURE instead.
81959         (open_path): Rename preloaded parameter to secure.
81960         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
81961         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
81962         * elf/dl-deps.c (openaux): Likewise.
81963         * elf/rtld.c (struct map_args): Remove is_preloaded.
81964         (map_doit): Don't use it.
81965         (dl_main): Likewise.
81966         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
81967         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
81968
81969 2010-09-09  Andreas Schwab  <schwab@redhat.com>
81970
81971         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
81972         (sysd-rules-targets): Remove duplicates.
81973         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
81974         rtld-%.$o dependency.
81975
81976 2010-10-18  Andreas Schwab  <schwab@redhat.com>
81977
81978         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
81979         _dl_map_object do it.
81980
81981 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
81982
81983         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
81984         fast fma builtins, define the macros in the C99 standard.
81985         (FP_FAST_FMAF): Likewise.
81986         (FP_FAST_FMAL): Likewise.
81987         * sysdeps/x86_64/bits/mathdef.h: Likewise.
81988
81989         * bits/mathdef.h: Update copyright year.
81990         * sysdeps/powerpc/bits/mathdef.h: Likewise.
81991
81992 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
81993
81994         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
81995         builtins, define the macros in the C99 standard.
81996         (FP_FAST_FMAF): Likewise.
81997         (FP_FAST_FMAL): Likewise.
81998         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
81999         multiply/add.
82000         (FP_FAST_FMAF): Likewise.
82001
82002 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
82003
82004         [BZ #3268]
82005         * math/libm-test.inc (fma_test): Some new testcases.
82006         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
82007         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
82008         y and infinite z.  Do multiplication by C already in long double.
82009         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
82010         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
82011         y and infinite z.  Do bitwise or of inexact bit into u.d.
82012         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
82013         * sysdeps/i386/fpu/s_fmaf.S: Removed.
82014         * sysdeps/i386/fpu/s_fma.S: Removed.
82015         * sysdeps/i386/fpu/s_fmal.S: Removed.
82016
82017 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
82018
82019         [BZ #3268]
82020         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
82021         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
82022         computation is not scheduled after fetestexcept.  Fix value
82023         of minimum denormal long double.
82024
82025 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
82026
82027         [BZ #3268]
82028         * math/libm-test.inc (fma_test): Add some more tests.
82029         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
82030         correctly.
82031
82032 2010-10-15  Andreas Schwab  <schwab@redhat.com>
82033
82034         * scripts/data/localplt-s390-linux-gnu.data: New file.
82035         * scripts/data/localplt-s390x-linux-gnu.data: New file.
82036
82037 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
82038
82039         [BZ #3268]
82040         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
82041         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
82042         instead of dbl-64.
82043         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
82044         inlines.
82045         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
82046         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
82047         if one of x and y is very large and the other is subnormal.
82048         * sysdeps/s390/fpu/s_fmaf.c: New file.
82049         * sysdeps/s390/fpu/s_fma.c: New file.
82050         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
82051         * sysdeps/powerpc/fpu/s_fma.S: New file.
82052         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
82053         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
82054         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
82055
82056 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
82057
82058         [BZ #3268]
82059         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
82060         fma tests.
82061         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
82062         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
82063         * sysdeps/i386/i686/multiarch/s_fma.c: Include
82064         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
82065         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
82066         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
82067         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
82068
82069 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
82070
82071         [BZ #12078]
82072         * posix/regcomp.c (parse_branch): One more memory leak plugged.
82073         * posix/bug-regex31.input: Add test case.
82074
82075 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82076
82077         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
82078         * posix/bug-regex31.input: New file.
82079
82080         [BZ #12078]
82081         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
82082         (parse_sub_exp): Fix last change, use postorder.
82083
82084         * posix/bug-regex31.c: New file.
82085         * posix/Makefile: Add rules to build and run bug-regex31.
82086
82087         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
82088
82089         [BZ #12078]
82090         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
82091
82092         [BZ #12108]
82093         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
82094         to have entries in sys_siglist.
82095
82096         [BZ #12093]
82097         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
82098         be NULL.
82099
82100 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
82101
82102         [BZ #3268]
82103         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
82104         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
82105         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
82106         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
82107         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
82108         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
82109         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
82110         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
82111         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
82112         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
82113         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
82114         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
82115         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
82116         * math/ftestexcept.c (fetestexcept): Likewise.
82117         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
82118         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
82119         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
82120         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
82121         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
82122         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
82123         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
82124
82125 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82126
82127         [BZ #12107]
82128         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
82129         newline.
82130
82131 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
82132
82133         * string/bug-strstr1.c: New file.
82134         * string/Makefile: Add rules to build and run bug-strstr1.
82135
82136 2010-10-05  Eric Blake  <eblake@redhat.com>
82137
82138         [BZ #12092]
82139         * string/str-two-way.h (two_way_long_needle): Always clear memory
82140         when skipping input due to the shift table.
82141
82142 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
82143
82144         [BZ #12005]
82145         * malloc/mcheck.c: Handle large requests.
82146
82147         [BZ #12077]
82148         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
82149         for strncmp and strncasecmp.
82150         * string/stratcliff.c: Add tests for strcmp and strncmp.
82151         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
82152
82153 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82154
82155         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
82156         __set_fpscr.
82157
82158 2010-09-30  Andreas Jaeger  <aj@suse.de>
82159
82160         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
82161         (CGROUP_SUPER_MAGIC): Define.
82162         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82163         Handle btrfs and cgroup file systems.
82164         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
82165         Likewise.
82166
82167 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
82168
82169         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
82170         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
82171
82172 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82173
82174         [BZ #12067]
82175         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
82176         trying to locate the ELF header.
82177
82178 2010-09-27  Andreas Schwab  <schwab@redhat.com>
82179
82180         [BZ #11611]
82181         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
82182         Mask out sign-bit copies when constructing f_fsid.
82183
82184 2010-09-24  Petr Baudis <pasky@suse.cz>
82185
82186         * debug/stack_chk_fail_local.c: Add missing licence exception.
82187         * debug/warning-nop.c: Likewise.
82188
82189 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
82190
82191         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
82192         implementing getdents64 using getdents syscall, set d_type if
82193         __ASSUME_GETDENTS32_D_TYPE.
82194
82195 2010-09-16  Andreas Schwab  <schwab@redhat.com>
82196
82197         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
82198         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
82199
82200 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
82201
82202         [BZ #12037]
82203         * posix/unistd.h: Undo change of feature selection for ftruncate from
82204         2010-01-11.
82205
82206 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
82207
82208         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
82209         detection.
82210
82211 2010-09-20  Andreas Schwab  <schwab@redhat.com>
82212
82213         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
82214         fanotify_mark.
82215         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82216
82217 2010-09-14  Andreas Schwab  <schwab@redhat.com>
82218
82219         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
82220         variables after CHECK_SP call.
82221         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
82222
82223 2010-09-13  Andreas Schwab  <schwab@redhat.com>
82224             Ulrich Drepper  <drepper@redhat.com>
82225
82226         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
82227         re-relocationg ld.so.
82228         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
82229         _dl_init_paths call.
82230         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
82231         here anymore.
82232
82233 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
82234
82235         * resolv/res_init.c (__res_vinit): Count the default server we added.
82236
82237 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
82238             Ulrich Drepper  <drepper@redhat.com>
82239
82240         [BZ #11968]
82241         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
82242         (____longjmp_chk): Use %ebx for saving value across system call.
82243         Add unwind info.
82244
82245 2010-09-06  Andreas Schwab  <schwab@redhat.com>
82246
82247         * manual/Makefile: Don't mix pattern rules with normal rules.
82248
82249 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
82250
82251         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
82252         operation.
82253         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
82254         * libio/iofopncook.c (_IO_cookie_init): Likewise.
82255         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
82256         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
82257         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
82258         Likewise.
82259
82260 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
82261
82262         [BZ #11979]
82263         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
82264         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
82265
82266 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
82267
82268         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
82269         * sysdeps/x86_64/addmul_1.S: Likewise.
82270         * sysdeps/x86_64/lshift.S: Likewise.
82271         * sysdeps/x86_64/mul_1.S: Likewise.
82272         * sysdeps/x86_64/rshift.S: Likewise.
82273         * sysdeps/x86_64/sub_n.S: Likewise.
82274         * sysdeps/x86_64/submul_1.S: Likewise.
82275
82276 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82277
82278         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
82279         Define __sched_param instead of SCHED_* and sched_param when
82280         <bits/sched.h> is included with __need_schedparam defined.
82281         * bits/sched.h [__need_schedparam]
82282         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
82283         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
82284         (__defined_schedparam): Define to 1.
82285         (__sched_param): New structure, identical to sched_param.
82286         (__need_schedparam): Undefine.
82287
82288 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
82289
82290         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
82291         (epoll_create1): Declare.
82292
82293         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
82294
82295 2010-08-31  Andreas Schwab  <schwab@redhat.com>
82296
82297         [BZ #7066]
82298         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
82299         shifting retval into place.
82300
82301 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
82302
82303         * nis/rpcsvc/nis.h: Update copyright notice.
82304         * nis/rpcsvc/nis.x: Likewise.
82305         * nis/rpcsvc/nis_callback.h: Likewise.
82306         * nis/rpcsvc/nis_callback.x: Likewise.
82307         * nis/rpcsvc/nis_object.x: Likewise.
82308         * nis/rpcsvc/nis_tags.h: Likewise.
82309         * nis/rpcsvc/yp.h: Likewise.
82310         * nis/rpcsvc/yp.x: Likewise.
82311         * nis/rpcsvc/ypupd.h: Likewise.
82312         * nis/yp_xdr.c: Likewise.
82313         * nis/ypupdate_xdr.c: Likewise.
82314
82315         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
82316         mainly the body of pmap_getport.  Add parameters to specify timeouts.
82317         (pmap_getport): Use __libc_rpc_getport.
82318         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
82319         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
82320         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
82321
82322 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
82323
82324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
82325         fanotify_mark.
82326
82327 2010-08-27  Roland McGrath  <roland@redhat.com>
82328
82329         * sysdeps/i386/i686/multiarch/Makefile
82330         (CFLAGS-varshift.c): New variable.
82331
82332 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
82333
82334         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
82335         * sysdeps/i386/i686/multiarch/varshift.c: New file.
82336
82337         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
82338
82339         * sysdeps/x86_64/strlen.S: Minimal code improvement.
82340
82341 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
82342
82343         * sysdeps/x86_64/strlen.S: Unroll the loop.
82344         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82345         strlen-sse2 strlen-sse2-bsf.
82346         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
82347         __strlen_no_bsf if bit_Slow_BSF is set.
82348         (__strlen_sse42): Removed.
82349         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
82350         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
82351
82352 2010-08-25  Roland McGrath  <roland@redhat.com>
82353
82354         * sysdeps/x86_64/multiarch/varshift.S: File removed.
82355         * sysdeps/x86_64/multiarch/varshift.c: New file.
82356         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
82357         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
82358         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
82359         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
82360
82361 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
82362
82363         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
82364         strlen-sse2 strlen-sse2-bsf.
82365         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
82366         __strlen_sse2_bsf if bit_Slow_BSF is unset.
82367         (__strlen_sse2): Removed.
82368         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
82369         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
82370         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
82371         bit_Slow_BSF for Atom.
82372         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
82373         (index_Slow_BSF): Define.
82374         (HAS_SLOW_BSF): Define.
82375
82376 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
82377
82378         [BZ #10851]
82379         * resolv/res_init.c (__res_vinit): When no server address at all
82380         is given default to loopback.
82381
82382 2010-08-24  Roland McGrath  <roland@redhat.com>
82383
82384         * configure.in: Remove config-name.h generation.
82385         * configure: Regenerated.
82386         * config-name.in: File removed.
82387         * scripts/config-uname.sh: New file.
82388         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
82389         ($(objdir)config-name.h): New target.
82390
82391         * sunrpc/rpc_parse.h: Avoid nested comment.
82392
82393 2010-08-24  Richard Henderson  <rth@redhat.com>
82394             Ulrich Drepper  <drepper@redhat.com>
82395             H.J. Lu  <hongjiu.lu@intel.com>
82396
82397         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
82398         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
82399         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
82400         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
82401         _mm_alignr_epi8 with _mm_loadu_si128.
82402         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
82403         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
82404         (__m128i_shift_right): Removed.
82405         * sysdeps/i386/i686/multiarch/varshift.h: New file.
82406         * sysdeps/i386/i686/multiarch/varshift.S: New file.
82407         * sysdeps/x86_64/multiarch/varshift.h: New file.
82408         * sysdeps/x86_64/multiarch/varshift.S: New file.
82409
82410 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
82411
82412         * configure.in: Move assembler checks to before sysdep dir checking.
82413
82414 2010-08-20  Petr Baudis  <pasky@suse.cz>
82415
82416         * LICENSES: Sync the sunrpc license.
82417
82418 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
82419
82420         * sunrpc/auth_des.c: Update copyright notice once again.
82421         * sunrpc/auth_none.c: Likewise.
82422         * sunrpc/auth_unix.c: Likewise.
82423         * sunrpc/authdes_prot.c: Likewise.
82424         * sunrpc/authuxprot.c: Likewise.
82425         * sunrpc/bindrsvprt.c: Likewise.
82426         * sunrpc/clnt_gen.c: Likewise.
82427         * sunrpc/clnt_perr.c: Likewise.
82428         * sunrpc/clnt_raw.c: Likewise.
82429         * sunrpc/clnt_simp.c: Likewise.
82430         * sunrpc/clnt_tcp.c: Likewise.
82431         * sunrpc/clnt_udp.c: Likewise.
82432         * sunrpc/clnt_unix.c: Likewise.
82433         * sunrpc/des_crypt.c: Likewise.
82434         * sunrpc/des_soft.c: Likewise.
82435         * sunrpc/get_myaddr.c: Likewise.
82436         * sunrpc/getrpcport.c: Likewise.
82437         * sunrpc/key_call.c: Likewise.
82438         * sunrpc/key_prot.c: Likewise.
82439         * sunrpc/openchild.c: Likewise.
82440         * sunrpc/pm_getmaps.c: Likewise.
82441         * sunrpc/pm_getport.c: Likewise.
82442         * sunrpc/pmap_clnt.c: Likewise.
82443         * sunrpc/pmap_prot.c: Likewise.
82444         * sunrpc/pmap_prot2.c: Likewise.
82445         * sunrpc/pmap_rmt.c: Likewise.
82446         * sunrpc/rpc/auth.h: Likewise.
82447         * sunrpc/rpc/auth_unix.h: Likewise.
82448         * sunrpc/rpc/clnt.h: Likewise.
82449         * sunrpc/rpc/des_crypt.h: Likewise.
82450         * sunrpc/rpc/key_prot.h: Likewise.
82451         * sunrpc/rpc/netdb.h: Likewise.
82452         * sunrpc/rpc/pmap_clnt.h: Likewise.
82453         * sunrpc/rpc/pmap_prot.h: Likewise.
82454         * sunrpc/rpc/pmap_rmt.h: Likewise.
82455         * sunrpc/rpc/rpc.h: Likewise.
82456         * sunrpc/rpc/rpc_des.h: Likewise.
82457         * sunrpc/rpc/rpc_msg.h: Likewise.
82458         * sunrpc/rpc/svc.h: Likewise.
82459         * sunrpc/rpc/svc_auth.h: Likewise.
82460         * sunrpc/rpc/types.h: Likewise.
82461         * sunrpc/rpc/xdr.h: Likewise.
82462         * sunrpc/rpc_clntout.c: Likewise.
82463         * sunrpc/rpc_cmsg.c: Likewise.
82464         * sunrpc/rpc_common.c: Likewise.
82465         * sunrpc/rpc_cout.c: Likewise.
82466         * sunrpc/rpc_dtable.c: Likewise.
82467         * sunrpc/rpc_hout.c: Likewise.
82468         * sunrpc/rpc_main.c: Likewise.
82469         * sunrpc/rpc_parse.c: Likewise.
82470         * sunrpc/rpc_parse.h: Likewise.
82471         * sunrpc/rpc_prot.c: Likewise.
82472         * sunrpc/rpc_sample.c: Likewise.
82473         * sunrpc/rpc_scan.c: Likewise.
82474         * sunrpc/rpc_scan.h: Likewise.
82475         * sunrpc/rpc_svcout.c: Likewise.
82476         * sunrpc/rpc_tblout.c: Likewise.
82477         * sunrpc/rpc_util.c: Likewise.
82478         * sunrpc/rpc_util.h: Likewise.
82479         * sunrpc/rpcinfo.c: Likewise.
82480         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
82481         * sunrpc/rpcsvc/key_prot.x: Likewise.
82482         * sunrpc/rpcsvc/klm_prot.x: Likewise.
82483         * sunrpc/rpcsvc/mount.x: Likewise.
82484         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
82485         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
82486         * sunrpc/rpcsvc/rex.x: Likewise.
82487         * sunrpc/rpcsvc/rstat.x: Likewise.
82488         * sunrpc/rpcsvc/rusers.x: Likewise.
82489         * sunrpc/rpcsvc/sm_inter.x: Likewise.
82490         * sunrpc/rpcsvc/spray.x: Likewise.
82491         * sunrpc/rpcsvc/yppasswd.x: Likewise.
82492         * sunrpc/rtime.c: Likewise.
82493         * sunrpc/svc.c: Likewise.
82494         * sunrpc/svc_auth.c: Likewise.
82495         * sunrpc/svc_authux.c: Likewise.
82496         * sunrpc/svc_raw.c: Likewise.
82497         * sunrpc/svc_run.c: Likewise.
82498         * sunrpc/svc_simple.c: Likewise.
82499         * sunrpc/svc_tcp.c: Likewise.
82500         * sunrpc/svc_udp.c: Likewise.
82501         * sunrpc/svc_unix.c: Likewise.
82502         * sunrpc/svcauth_des.c: Likewise.
82503         * sunrpc/xcrypt.c: Likewise.
82504         * sunrpc/xdr.c: Likewise.
82505         * sunrpc/xdr_array.c: Likewise.
82506         * sunrpc/xdr_float.c: Likewise.
82507         * sunrpc/xdr_mem.c: Likewise.
82508         * sunrpc/xdr_rec.c: Likewise.
82509         * sunrpc/xdr_ref.c: Likewise.
82510         * sunrpc/xdr_sizeof.c: Likewise.
82511         * sunrpc/xdr_stdio.c: Likewise.
82512
82513         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
82514         handling.
82515
82516 2010-08-19  Andreas Schwab  <schwab@redhat.com>
82517
82518         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
82519
82520 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
82521
82522         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
82523         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
82524         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
82525         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
82526         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
82527         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
82528         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
82529         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
82530         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
82531         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
82532         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
82533         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
82534         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
82535         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
82536
82537 2010-07-26  Anton Blanchard  <anton@samba.org>
82538
82539         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
82540         * malloc/arena.c (heap_trim): Likewise.
82541
82542 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
82543
82544         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
82545         here.  Not...
82546         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
82547         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
82548
82549 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
82550
82551         * sysdeps/i386/elf/Makefile: New file.
82552
82553 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82554
82555         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
82556         from fanotify_init.
82557         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
82558         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
82559
82560 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
82561
82562         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
82563         of strncasecmp_l.
82564         * sysdeps/multiarch/strcmp.S: Likewise.
82565
82566 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
82567
82568         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
82569         strncase_l-nonascii.
82570         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
82571         Add strncase_l-ssse3.
82572         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
82573         * sysdeps/x86_64/strcmp.S: Likewise.
82574         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
82575         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
82576         * sysdeps/x86_64/strncase.S: New file.
82577         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
82578         * sysdeps/x86_64/strncase_l.S: New file.
82579         * string/Makefile (strop-tests): Add strncasecmp.
82580         * string/test-strncasecmp.c: New file.
82581
82582         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
82583         warning.
82584
82585         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
82586         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
82587
82588 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82589
82590         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
82591
82592 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
82593
82594         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
82595         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
82596         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
82597
82598 2010-05-01  Alan Modra  <amodra@gmail.com>
82599
82600         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
82601         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
82602         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
82603         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
82604         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
82605         tidying.  Don't tail-call __sigjmp_save for static lib.
82606         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
82607         save location.
82608         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
82609         (CALL_MCOUNT): Add eh info, and nop after bl.
82610         (TAIL_CALL_SYSCALL_ERROR): New macro.
82611         (PSEUDO_RET): Use it.
82612         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
82613         Correct save location of integer regs and cr.
82614         (_dl_profile_resolve): Correct cr save location.  Delete nops
82615         after bl when SHARED.  Reduce cfi size a little by better
82616         placement of cfi directives.
82617         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
82618         make a stack frame.  Instead use parm save area as a temp.
82619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
82620         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
82621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
82622         Don't make a stack frame for parent, use parm save area.
82623         Increase child stack frame to 112 bytes.  Don't save unused reg,
82624         and adjust reg usage.  Set up cfi on error recovery and
82625         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
82626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
82627         (__makecontext): Add dummy nop after jump to exit.
82628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
82629         Use correct parm save area and cr save, reduce stack frame.
82630         Correct cfi for possible PSEUDO_RET frame setup.
82631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
82632         Branch to local label emitted by PSEUDO_RET rather than
82633         __syscall_error.
82634
82635 2010-08-12  Andreas Schwab  <schwab@redhat.com>
82636
82637         [BZ #11904]
82638         * locale/programs/locale.c (print_assignment): New function.
82639         (show_locale_vars): Use it.
82640
82641 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
82642
82643         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
82644         field.
82645         (struct statfs64): Likewise.
82646         (_STATFS_F_FLAGS): Define.
82647         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
82648         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82649         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
82650         (ST_VALID): Define locally.
82651         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
82652         __statvfs_getflags, use the provided value.
82653         * sysdeps/unix/sysv/linux/kernel-features.h: Define
82654         __ASSUME_STATFS_F_FLAGS.
82655
82656         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
82657
82658         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
82659         Add sys/fanotify.h.
82660         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
82661         fanotify_mask for GLIBC_2.13.
82662         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
82663         fanotify_init and fanotify_mark.
82664         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
82665         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
82666
82667         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
82668         Add prlimit.
82669         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
82670         prlimit64 for GLIBC_2.13.
82671         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
82672         prlimit64.
82673         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
82674         syscall.
82675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
82676         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82677         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
82678         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
82679         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
82680         add prlimit alias.
82681         * sysdeps/unix/sysv/linux/prlimit.c: New file.
82682
82683         [BZ #11903]
82684         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
82685         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
82686
82687         * nss/Makefile: Add rules to build and run tst-nss-test1.
82688         * shlib-versions: Add entry for libnss_test1.
82689         * nss/nss_test1.c: New file.
82690         * nss/tst-nss-test1.c: New file.
82691
82692         * nss/nsswitch.c (__nss_database_custom): Define new variable.
82693         (__nss_configure_lookup): Set appropriate entry in
82694         __nss_configure_lookup to true.
82695         * nss/nsswitch.h: Define enum with indeces of databases in
82696         databases and __nss_database_custom arrays.  Declare
82697         __nss_database_custom.
82698         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
82699         to avoid using nscd when custom rules are installed.
82700         * nss/getXXbyYY_r.c: Likewise.
82701         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
82702
82703         * nss/nss_files/files-parse.c: Whitespace fixes.
82704
82705 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
82706
82707         [BZ #11883]
82708         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
82709         * posix/fnmatch_loop.c: Likewise.
82710
82711 2010-07-17  Andi Kleen  <ak@linux.intel.com>
82712
82713         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
82714         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
82715         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
82716         * Versions.def [GLIBC_2.13]: Add.
82717
82718 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
82719
82720         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
82721         Also fail if tpwd after pwuid call is NULL.
82722
82723 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82724
82725         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
82726         when converting to ms.
82727
82728 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82729
82730         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
82731         EOPNOTSUPP errors with ENOTTY.
82732         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
82733         EOPNOTSUPP errors with ENOTTY.
82734
82735 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
82736
82737         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
82738         Add strcasecmp_l-ssse3.
82739         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
82740         strcasecmp.
82741         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
82742         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
82743         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
82744
82745 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
82746
82747         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
82748
82749         * string/Makefile (strop-tests): Add strcasecmp.
82750         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
82751         strcasecmp_l-nonascii.
82752         (gen-as-const-headers): Add locale-defines.sym.
82753         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
82754         * sysdeps/x86_64/strcasecmp.S: New file.
82755         * sysdeps/x86_64/strcasecmp_l.S: New file.
82756         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
82757         * sysdeps/x86_64/locale-defines.sym: New file.
82758         * string/test-strcasecmp.c: New file.
82759
82760         * string/test-strcasestr.c: Test both ends of the range of characters.
82761         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
82762
82763 2010-07-29  Roland McGrath  <roland@redhat.com>
82764
82765         [BZ #11856]
82766         * manual/locale.texi (Yes-or-No Questions): Fix example code.
82767
82768 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
82769
82770         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
82771         for ld.so.
82772
82773 2010-07-27  Andreas Schwab  <schwab@redhat.com>
82774
82775         * manual/memory.texi (Malloc Tunable Parameters): Document
82776         M_PERTURB.
82777
82778 2010-07-26  Roland McGrath  <roland@redhat.com>
82779
82780         [BZ #11840]
82781         * configure.in (-fgnu89-inline check): Set and substitute
82782         gnu89_inline, not libc_cv_gnu89_inline.
82783         * configure: Regenerated.
82784         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
82785
82786 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
82787
82788         * string/test-strnlen.c: New file.
82789         * string/Makefile (strop-tests): Add strnlen.
82790         * string/tester.c (test_strnlen): Add a few more test cases.
82791         * string/tst-strlen.c: Better error reporting.
82792
82793         * sysdeps/x86_64/strnlen.S: New file.
82794
82795 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
82796
82797         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
82798         lower-latency instructions.
82799
82800 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
82801
82802         * string/test-strcasestr.c: New file.
82803         * string/test-strstr.c: New file.
82804         * string/Makefile (strop-tests): Add strstr and strcasestr.
82805         * string/str-two-way.h: Don't undefine MAX.
82806         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
82807
82808 2010-07-21  Andreas Schwab  <schwab@redhat.com>
82809
82810         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
82811         strcasestr-nonascii.
82812         (CFLAGS-strcasestr-nonascii.c): Define.
82813         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
82814         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
82815         Remove unused attribute.
82816
82817 2010-07-20  Roland McGrath  <roland@redhat.com>
82818
82819         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
82820         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
82821         ld.so.cache was broken.  With it, there is no way to disable dsocaps
82822         like LD_HWCAP_MASK can disable hwcaps.
82823
82824 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
82825
82826         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
82827
82828 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
82829
82830         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
82831         call in strcasestr.
82832         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
82833         __strcasestr_sse42_nonascii.
82834         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
82835         strcasestr-nonascii.c.
82836         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
82837
82838 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
82839
82840         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
82841         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
82842         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
82843         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
82844
82845 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
82846
82847         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
82848         fcntl.
82849
82850 2010-07-06  Andreas Schwab  <schwab@redhat.com>
82851
82852         [BZ #11577]
82853         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
82854         dl_signal_cerror.
82855
82856 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
82857
82858         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
82859         _PC_PIPE_BUF using F_GETPIPE_SZ.
82860
82861 2010-07-05  Roland McGrath  <roland@redhat.com>
82862
82863         * manual/arith.texi (Rounding Functions): Fix rint description
82864         implicit in round description.
82865
82866 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
82867
82868         * elf/Makefile: Fix linking for a few tests to make recent linker
82869         happy.
82870
82871 2010-06-30  Andreas Schwab  <schwab@redhat.com>
82872
82873         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
82874         $(common-objpfx)libc_nonshared.a.
82875
82876 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
82877
82878         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
82879         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
82880         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
82881         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
82882         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
82883         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
82884         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
82885         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
82886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
82887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
82888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
82889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
82890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
82891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
82892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
82893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
82894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
82895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
82896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
82897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
82898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
82899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
82900         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
82901         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
82902         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
82903         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
82904         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
82905         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
82906         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
82907         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
82908         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
82909         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
82910         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
82911         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
82912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
82913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
82914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
82915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
82916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
82917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
82918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
82919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
82920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
82921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
82922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
82923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
82924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
82925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
82926
82927 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
82928
82929         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
82930         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
82931         * string/memmove.c (memmove): Renamed to ...
82932         (MEMMOVE): ...this.  Default to memmove.
82933         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
82934         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
82935         (END_CHK): Define.
82936         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82937         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
82938         mempcpy-ssse3-back memmove-ssse3-back.
82939         * sysdeps/x86_64/multiarch/bcopy.S: New file .
82940         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
82941         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
82942         * sysdeps/x86_64/multiarch/memcpy.S: New file.
82943         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
82944         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
82945         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
82946         * sysdeps/x86_64/multiarch/memmove.c: New file.
82947         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
82948         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
82949         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
82950         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
82951         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
82952         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
82953         Define.
82954         (index_Fast_Copy_Backward): Define.
82955         (HAS_ARCH_FEATURE): Define.
82956         (HAS_FAST_REP_STRING): Define.
82957         (HAS_FAST_COPY_BACKWARD): Define.
82958
82959 2010-06-21  Andreas Schwab  <schwab@redhat.com>
82960
82961         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
82962         Restore proper fallback handling.
82963
82964 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
82965
82966         [BZ #11701]
82967         * posix/group_member.c (__group_member): Correct checking loop.
82968
82969         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
82970         OOM in getpwuid_r correctly.  Return error number when the caller
82971         should return, otherwise -1.
82972         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
82973         call returning > 0 value.
82974         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
82975
82976 2010-06-07  Andreas Schwab  <schwab@redhat.com>
82977
82978         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
82979         libc_nonshared.a from targets in modules-names.
82980
82981 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
82982
82983         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
82984         requires it.
82985
82986 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
82987
82988         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
82989         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
82990         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
82991         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
82992
82993 2010-06-02  Andreas Schwab  <schwab@redhat.com>
82994
82995         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
82996
82997 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
82998
82999         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
83000         and F_GETPIPE_SZ.
83001         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
83002         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
83003         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
83004         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
83005         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
83006         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
83007
83008 2010-06-14  Roland McGrath  <roland@redhat.com>
83009
83010         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
83011
83012 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
83013
83014         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
83015         __REDIRECT followed by __THROW.
83016         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
83017         * posix/getopt.h (getopt): Likewise.
83018
83019 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83020
83021         * hurd/lookup-at.c (__file_name_lookup_at): Accept
83022         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
83023         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
83024         in AT_FLAGS.
83025         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
83026         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
83027
83028 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
83029
83030         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
83031
83032 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
83033
83034         [BZ #11640]
83035         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
83036         Properly check family and model.
83037
83038 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
83039
83040         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
83041
83042 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
83043
83044         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
83045
83046 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
83047
83048         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
83049         symbol reference.
83050
83051 2010-05-19  Andreas Schwab  <schwab@redhat.com>
83052
83053         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
83054         symbol reference.
83055
83056 2010-05-21  Andreas Schwab  <schwab@redhat.com>
83057
83058         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
83059         and internal_recvmmsg.
83060         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
83061         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
83062         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
83063         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
83064
83065         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
83066         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
83067         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
83068
83069 2010-05-20  Andreas Schwab  <schwab@redhat.com>
83070
83071         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
83072
83073 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
83074
83075         POWER7 optimizations.
83076         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
83077         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
83078
83079 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
83080
83081         * version.h: Update for 2.13 development version.
83082
83083 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
83084
83085         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
83086         exceptions.  Return 0.
83087
83088 2010-05-07  Roland McGrath  <roland@redhat.com>
83089
83090         * elf/ldconfig.c (main): Add a const.
83091
83092 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
83093
83094         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
83095         (args_options): Add no-idn option.
83096         (ahosts_keys_int): Add idn_flags to ai_flags.
83097         (parse_option): Handle 'i' option to clear idn_flags.
83098
83099         * malloc/malloc.c (_int_free): Possible race in the most recently
83100         added check.  Only act on the data if no current modification
83101         happened.
83102
83103 See ChangeLog.17 for earlier changes.